[PyXML/f14/master] Fix to be able to build with python 2.7
Roman Rakus
rrakus at fedoraproject.org
Mon Aug 2 15:08:51 UTC 2010
commit b1818a695a092df9d4cd863bc5c2192479e099e7
Author: Roman Rakus <rrakus at redhat.com>
Date: Mon Aug 2 17:07:15 2010 +0200
Fix to be able to build with python 2.7
PyXML.spec | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/PyXML.spec b/PyXML.spec
index 1fa565a..3feed07 100644
--- a/PyXML.spec
+++ b/PyXML.spec
@@ -1,7 +1,7 @@
Summary: XML libraries for python
Name: PyXML
Version: 0.8.4
-Release: 24%{?dist}
+Release: 25%{?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
@@ -82,7 +82,7 @@ done
# Resolves 614911
pushd $RPM_BUILD_ROOT/%{python_sitearch}/_xmlplus/parsers
rm -rf pyexpat.so
-ln -s %{_libdir}/python2.6/lib-dynload/pyexpat.so pyexpat.so
+ln -s %{_libdir}/python?.?/lib-dynload/pyexpat.so pyexpat.so
popd
%clean
@@ -90,6 +90,10 @@ rm -rf $RPM_BUILD_ROOT
%check
cd test
+# Need to remove unittest.py. Since python 2.7 there is need
+# for SkipTest funcionality
+rm -rf unittest.py
+
PYTHONPATH=.. python regrtest.py -v
%files -f %{name}
@@ -102,6 +106,9 @@ PYTHONPATH=.. python regrtest.py -v
%{python_sitearch}/_xmlplus
%changelog
+* Mon Aug 02 2010 Roman Rakus <rrakus at redhat.com> - 0.8.4-25
+- Fix to be able to build with python 2.7
+
* Tue Jul 27 2010 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.8.4-24
- Again rebuild against python 2.7
More information about the scm-commits
mailing list