[python-gstreamer1] Disable Python 3 support - it's too buggy to ship
farnz
farnz at fedoraproject.org
Mon Mar 17 08:31:41 UTC 2014
commit 4be3a95e54ed4b5dcfddabceebf7390e37bf17a8
Author: Simon Farnsworth <simon at farnz.org.uk>
Date: Mon Mar 17 08:31:15 2014 +0000
Disable Python 3 support - it's too buggy to ship
- Correct faulty macro setting in Python 3 block - it broke Python 2 build
python-gstreamer1.spec | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/python-gstreamer1.spec b/python-gstreamer1.spec
index e8b3919..bec6890 100644
--- a/python-gstreamer1.spec
+++ b/python-gstreamer1.spec
@@ -5,13 +5,13 @@
#if 0%{?fedora} > 12
#global with_python3 1
#else
-#{!?__python2: %global __python2 /usr/bin/python2}
-#{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
#endif
Name: python-gstreamer1
Version: 1.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python bindings for GStreamer
Group: Development/Languages
@@ -63,10 +63,10 @@ cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%endif # with_python3
-find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
%build
-%configure
+%configure PYTHON=%{__python2}
make %{?_smp_mflags}
%if 0%{?with_python3}
@@ -98,6 +98,7 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
%changelog
* Mon Mar 17 2014 Simon Farnsworth <simon.farnsworth at onelan.co.uk> - 1.2.0-2
- Disable Python 3 support - it's too buggy to ship
+- Correct faulty macro setting in Python 3 block - it broke Python 2 build
* Sun Mar 16 2014 Simon Farnsworth <simon.farnsworth at onelan.co.uk> - 1.2.0-1
- Upstream release gstreamer-python-1.2.0
More information about the scm-commits
mailing list