[urlwatch] Converting stuff added

Fabian Affolter fab at fedoraproject.org
Thu Nov 17 16:16:04 UTC 2011


commit cbcabaeb25e8ce7afec0e473a96fa14e42c8056c
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date:   Thu Nov 17 17:15:44 2011 +0100

    Converting stuff added

 urlwatch.spec |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/urlwatch.spec b/urlwatch.spec
index 967758c..e99d4e4 100644
--- a/urlwatch.spec
+++ b/urlwatch.spec
@@ -43,7 +43,8 @@ Basic features
 %prep
 %setup -q
 %patch0 -p0 -b .xmmp
-
+# Convert sources to Python 3 as mentioned in the README
+2to3 -w "urlwatch lib/urlwatch/*.py examples/hooks.py.example setup.py"
 
 %build
 %{__python} setup.py build
@@ -52,7 +53,7 @@ Basic features
 %install
 rm -rf %{buildroot}
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
-#Fix exec permission for rpmlint
+# Fix exec permission for rpmlint
 chmod 0755 %{buildroot}%{python_sitelib}/%{name}/*txt.py
 chmod a+x %{buildroot}%{python_sitelib}/%{name}/handler.py
 


More information about the scm-commits mailing list