pyxml.spec revision 15361
12258N/A#
12258N/A# spec file for package pyxml
12258N/A#
12258N/A# includes module(s): pyxml
12258N/A#
12258N/A# Copyright (c) 2005 Sun Microsystems, Inc.
12258N/A# This file and all modifications and additions to the pristine
12258N/A# package are under the same license as the package itself.
12258N/A#
12258N/A# Owner: laca
12258N/A#
12258N/A%define pythonver 2.4
12258N/A
12258N/AName: pyxml
12258N/ALicense: CNRI Python License
12258N/AGroup: Development/Languages/Python
12258N/AVersion: 0.8.4
12258N/ARelease: 1
12258N/ADistribution: Java Desktop System
12258N/AVendor: Sun Microsystems, Inc.
12258N/ASummary: Python XML module
12258N/ASource: http://superb-west.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
12258N/AURL: http://pyxml.sourceforge.net/
12258N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12258N/ADocdir: %{_defaultdocdir}/doc
12258N/AAutoreqprov: off
12258N/APrereq: /sbin/ldconfig
12258N/ARequires: python >= %{pythonver}
12258N/ARequires: expat
12258N/ABuildRequires: python-devel >= %{pythonver}
12258N/ABuildRequires: expat
12258N/A
12258N/A%description
12258N/AA collection of tools useful for writing basic XML applications in Python,
12258N/Aalong with documentation and sample code.
12258N/AFeatures include (but are not limited to) SAX, DOM, the xmlproc validating
12258N/Aparser, an Expat interface.
12258N/A
12258N/A%prep
12258N/A%setup -q -n PyXML-%{version}
12258N/A
12258N/A%install
12258N/Apython setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
12258N/A
12258N/A# move to vendor-packages
12258N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
12258N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
12258N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
12258N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
12258N/A
12258N/A%clean
12258N/Arm -rf $RPM_BUILD_ROOT
12258N/A
12258N/A%files
12258N/A%defattr(-, root, root)
12258N/A%{_bindir}
12258N/A%{_libdir}/python?.?/vendor-packages
12258N/A
12258N/A%changelog
12258N/A* Mon Nov 17 2007 - jedy.wang@sun.com
12258N/A- Fix installation directory bug.
12258N/A* Thu Nov 01 2007 - brian.cameron@sun.com
12258N/A- Fix Source URL.
12258N/A* Thu Oct 27 2005 - laca@sun.com
12258N/A- initial version
12258N/A