Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > ed7e1137a5163d22f4c2fc16fafada19 > files > 5

PyXML-0.8.4-6.el5.src.rpm

%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}

Summary: XML libraries for python.
Name: PyXML
Version: 0.8.4
Release: 6%{?dist}
Source: http://prdownloads.sourceforge.net/pyxml/PyXML-%{version}.tar.gz
Patch0: PyXML-0.7.1-intern.patch
Patch1: PyXML-0.8.4-cvs20041111-python2.4-backport.patch
Patch2: PyXML-memmove.patch

License: Apacheish
Group: Development/Libraries
Requires: python
URL: http://pyxml.sourceforge.net/
BuildRequires: python python-devel expat-devel python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot

%description
An XML package for Python.  The distribution contains a
validating XML parser, an implementation of the SAX and DOM
programming interfaces and an interface to the Expat parser.

%prep
%setup -q

%patch0 -p1 -b .intern
%patch1 -p1 -b .python2.4-backport
%patch2 -p1

%build
# build PyXML with system expat
# Make sure we don't use local one
rm -rf extensions/expat
for file in  $(find . -name '*.py')
do
  sed -i -e '1s#/usr/bin/env python#/usr/bin/python#' "$file"
done
CFLAGS="$RPM_OPT_FLAGS" python -c 'import setuptools; execfile("setup.py")' build  --with-xslt --with-libexpat=%{_usr}

%install
rm -fr $RPM_BUILD_ROOT
python -c 'import setuptools; execfile("setup.py")' install --root=$RPM_BUILD_ROOT --with-xslt --with-libexpat=%{_usr}

python -O /usr/%{_lib}/python%pyver/compileall.py $RPM_BUILD_ROOT/usr/%{_lib}/python%pyver/site-packages


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc LICENCE ANNOUNCE CREDITS README README.dom README.pyexpat README.sgmlop TODO doc/*
%{_bindir}/xmlproc_parse
%{_bindir}/xmlproc_val
%{_libdir}/python%pyver/site-packages/_xmlplus/
%{_libdir}/python%pyver/site-packages/*egg-info


%changelog
* Wed Oct 19 2011 Roman Rakus <rrakus@redhat.com> - 0.8.4-6
- Convert shebangs to /bin/python
  Resolves: #521307
- Include egg info
  Resolves: #472009

* Mon Nov 02 2009 Roman Rakus <rrakus@redhat.com> - 0.8.4-5
- Use system expat library. Fix buffer over-read
  Resolves: #531854

* Thu Jul 27 2006 Florian La Roche <laroche@redhat.com> - 0.8.4-4
- don't check memmove

* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-3.2.2
- rebump for build order issues during double-long bump

* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-3.2.1
- bump again for double-long bug on ppc(64)

* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-3.2
- rebuilt for new gcc4.1 snapshot and glibc changes

* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt

* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 0.8.4-3
- build with gcc-4

* Fri Feb 25 2005 Miloslav Trmac <mitr@redhat.com> - 0.8.4-2
- Rebuild, this should fix #149507

* Tue Nov 30 2004 Miloslav Trmac <mitr@redhat.com> - 0.8.4-1
- Update to PyXML-0.8.4

* Thu Nov 11 2004 Miloslav Trmac <mitr@redhat.com> - 0.8.4-0.cvs20041111.1
- Update to current CVS snapshot, Python 2.4b2 requires unreleased PyXML-0.8.4
- Backport xml.sax.saxutils fix from Python 2.4b2

* Mon Nov  8 2004 Jeremy Katz <katzj@redhat.com> - 0.8.3-7
- rebuild against python 2.4

* Wed Sep 29 2004 Miloslav Trmac <mitr@redhat.com> - 0.8.3-6
- Don't omit xml.xslt and xml.xpath (#133879)

* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Tue Jan 13 2004 Thomas Woerner <twoerner@redhat.com> 0.8.3-3
- removed lang tag: fixes #113268

* Mon Nov 17 2003 Tim Waugh <twaugh@redhat.com> 0.8.3-2
- Rebuild for Python 2.3.

* Sat Aug 02 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- update to 0.8.3

* Wed Jun 25 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- update to 0.8.2

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Thu Feb  6 2003 Mihai Ibanescu <misa@redhat.com> 0.7.1-9
- rebuilt against new python

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.7.1-7
- lib64'ize

* Thu Aug 29 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7.1-6
- Reenable expat. While most code works, some specify expat directly
  and fails. Fix #72698, but there is still broken code there (it just 
  goes on to other errors)

* Tue Aug 27 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7.1-5
- Disable expat support. Other parsers are included. Broken here, 
  broken in 0.8.0. This fixes #72698

* Fri Jun 28 2002 Trond Eivind Glomsrød <teg@redhat.com>
- A fix for the expatreader

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Fri May 10 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7.1-1
- 0.7.1

* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7-4
- Rebuild

* Mon Jan 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7-3
- Remove xpath, xslt - use the ones in 4Suite
- patch the build script, it's broken

* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Tue Jan  1 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.7-1
- PyXML 0.7

* Wed Dec  5 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.6.6-2
- Add .pyo files
- Don't hardcode python version

* Tue Sep 18 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.6.6-1
- 0.6.6
- Build for python 2.2

* Tue Jul 24 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Add python-devel to BuildRequires (#49820)

* Tue Jul 10 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Mark the locale-specific files as such

* Thu Jun  7 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Don't obsolete itself

* Mon May  7 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Initial build, it's no longer part of 4Suite