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