[python-dirq] - Enable python3 support with patch dirq-1.0.1-dist-tag.patch.

stevetraylen stevetraylen at fedoraproject.org
Mon Feb 13 23:43:12 UTC 2012


commit faa1c7de8e62c42ee1b5938c9dd30669496cc0e3
Author: Steve Traylen <steve.traylen at cern.ch>
Date:   Tue Feb 14 01:46:05 2012 +0100

    - Enable python3 support with patch dirq-1.0.1-dist-tag.patch.

 dirq-1.0.1-dist-tag.patch |    9 +++++++++
 python-dirq.spec          |   12 ++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/dirq-1.0.1-dist-tag.patch b/dirq-1.0.1-dist-tag.patch
new file mode 100644
index 0000000..1c8c63b
--- /dev/null
+++ b/dirq-1.0.1-dist-tag.patch
@@ -0,0 +1,9 @@
+diff -uNr dirq-1.0.1.ORIG/setup.cfg dirq-1.0.1/setup.cfg
+--- dirq-1.0.1.ORIG/setup.cfg	2012-02-14 01:39:33.440000023 +0100
++++ dirq-1.0.1/setup.cfg	2012-02-14 01:39:49.890000021 +0100
+@@ -2,4 +2,4 @@
+ optimize=1
+ 
+ [bdist_rpm]
+-release=1%{?dist}
++release=1
diff --git a/python-dirq.spec b/python-dirq.spec
index bbb347a..8db23a6 100644
--- a/python-dirq.spec
+++ b/python-dirq.spec
@@ -12,10 +12,10 @@
 
 # python3 support not possible at the moment.
 # http://code.google.com/p/dirq/issues/detail?id=1
-#%%if %%{?fedora}%%{!?fedora:0} >= 13
-#%%global altpython python3
-#%%global __altpython %%{_bindir}/python3
-#%%endif 
+%if %{?fedora}%{!?fedora:0} >= 13
+%global altpython python3
+%global __altpython %{_bindir}/python3
+%endif 
 
 %if %{?altpython:1}%{!?altpython:0}
 %{!?altpydir: %global altpydir %{_builddir}/%{altpython}-%{name}-%{version}-%{release}}
@@ -31,6 +31,8 @@ Group:          Development/Languages
 License:        ASL 2.0
 URL:            http://code.google.com/p/dirq/
 Source0:        http://dirq.googlecode.com/files/dirq-%{version}.tar.gz
+# http://code.google.com/p/dirq/issues/detail?id=1#c1
+Patch0:         dirq-1.0.1-dist-tag.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -73,6 +75,7 @@ module Directory::Queue.
 
 %prep
 %setup -q -n dirq-%{version}
+%patch0 -p1
 chmod 644 examples/dirq_simple.py \
           examples/dirqset_simple.py
 sed -i '1s|#!%{_bindir}/env python|#!%{_bindir}/python|' \
@@ -155,6 +158,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Tue Feb 14 2012 Steve Traylen <steve.traylen at cern.ch> - 1.0.1-1
 - Update to 1.0.1.
+- Enable python3 support with patch dirq-1.0.1-dist-tag.patch.
 
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.5-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list