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