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