diff --git a/python-pyinotify.spec b/python-pyinotify.spec index 31374f9..c5077b8 100644 --- a/python-pyinotify.spec +++ b/python-pyinotify.spec @@ -23,14 +23,14 @@ Release: 0 Summary: Python module for watching filesystems changes License: MIT Group: Development/Libraries/Python -Url: http://github.com/seb-m/pyinotify +URL: http://github.com/seb-m/pyinotify Source: https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz Source1: pyinotify BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -53,8 +53,8 @@ notifications. %setup -q -n pyinotify-%{version} # remove unwanted shebang sed -i '/^#!/ d' python2/pyinotify.py -sed -i "s|#!/usr/bin/env python|#!%__python2|" python2/examples/*py -sed -i "s|#!/usr/bin/env python|#!%__python3|" python3/examples/*py +sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py +sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py %build %python_build @@ -71,8 +71,8 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify %python_uninstall_alternative pyinotify %files %{python_files} -%defattr(-,root,root) -%doc ACKS COPYING README.md +%license COPYING +%doc ACKS README.md %doc old/ChangeLog old/NEWS %python2_only %doc python2/examples %python3_only %doc python3/examples