Matej Cepl 2018-12-04 17:19:26 +00:00 committed by Git OBS Bridge
parent f62165d706
commit 0494d3a1e8

View File

@ -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