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