[python-django15] rebuild for python-3.4
Matthias Runge
mrunge at fedoraproject.org
Mon Jun 2 08:16:58 UTC 2014
commit 7afce0e2c71cf60208b8030634437e033b7c4c9e
Author: Matthias Runge <mrunge at redhat.com>
Date: Mon Jun 2 10:16:51 2014 +0200
rebuild for python-3.4
python-django15.spec | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/python-django15.spec b/python-django15.spec
index 340e8a3..f795ae0 100644
--- a/python-django15.spec
+++ b/python-django15.spec
@@ -5,6 +5,8 @@
%endif
%{!?__python2:%global __python2 %{__python}}
+%global with_python3 0
+
%global pkgname Django
# Tests requiring Internet connections are disabled by default
@@ -17,7 +19,7 @@
Name: python-django15
Version: 1.5.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A high-level Python Web framework
Group: Development/Languages
@@ -139,7 +141,7 @@ popd
%if 0%{?with_python3}
pushd %{py3dir}
mkdir -p %{buildroot}%{python3_sitelib}
-easy_install-3.3 -m --prefix %{buildroot}%{_usr} -Z dist/*.egg
+easy_install-3.4 -m --prefix %{buildroot}%{_usr} -Z dist/*.egg
mv %{buildroot}%{_bindir}/django-admin.py %{buildroot}%{_bindir}/python3-django1.5-admin
find %{buildroot}%{python3_sitelib} \
-name bin -prune \
@@ -165,8 +167,8 @@ cat djangojs.lang >> django.lang
%if 0%{?with_python3}
# When creating Python3 package, separate lang to Python 2 and Python 3 files
-grep py3.3 django.lang > python3-django.lang
-grep py2.7 django.lang > python2-django.lang
+grep -E 'py3.?' django.lang > python3-django.lang
+grep -E 'py2.7' django.lang > python2-django.lang
mv {python2-,}django.lang
%endif # with_python3
@@ -209,13 +211,15 @@ export LANG=en_US.utf8
cd tests
./runtests.py --settings=test_sqlite --verbosity=2
-%if 0%{?with_python3}
-pushd %{py3dir}
-export PYTHONPATH=%{py3dir}
-cd tests
-%{__python3} runtests.py --settings=test_sqlite --verbosity=2
-popd
-%endif # with_python3
+# some tests fail on py3.4
+# disabling for now
+#%if 0%{?with_python3}
+#pushd %{py3dir}
+#export PYTHONPATH=%{py3dir}
+#cd tests
+#%{__python3} runtests.py --settings=test_sqlite --verbosity=2
+#popd
+#%endif # with_python3
%files -f django.lang
@@ -623,6 +627,10 @@ popd
%changelog
+* Wed May 28 2014 Matthias Runge <mrunge at redhat.com> - 1.5.8-2
+- minor spec fixes to build against python 3.4
+- disable python3 for now, tests are failing
+
* Fri May 16 2014 Matthias Runge <mrunge at redhat.com> - 1.5.8-1
- update to 1.5.8 fixing CVE-2014-1418 (rhbz#1097935)
More information about the scm-commits
mailing list