Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=29
This commit is contained in:
parent
f62165d706
commit
0494d3a1e8
@ -23,14 +23,14 @@ Release: 0
|
|||||||
Summary: Python module for watching filesystems changes
|
Summary: Python module for watching filesystems changes
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/p/pyinotify/pyinotify-%{version}.tar.gz
|
||||||
Source1: pyinotify
|
Source1: pyinotify
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,8 +53,8 @@ notifications.
|
|||||||
%setup -q -n pyinotify-%{version}
|
%setup -q -n pyinotify-%{version}
|
||||||
# remove unwanted shebang
|
# remove unwanted shebang
|
||||||
sed -i '/^#!/ d' python2/pyinotify.py
|
sed -i '/^#!/ d' python2/pyinotify.py
|
||||||
sed -i "s|#!/usr/bin/env python|#!%__python2|" python2/examples/*py
|
sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py
|
||||||
sed -i "s|#!/usr/bin/env python|#!%__python3|" python3/examples/*py
|
sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -71,8 +71,8 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
|
|||||||
%python_uninstall_alternative pyinotify
|
%python_uninstall_alternative pyinotify
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc ACKS COPYING README.md
|
%doc ACKS README.md
|
||||||
%doc old/ChangeLog old/NEWS
|
%doc old/ChangeLog old/NEWS
|
||||||
%python2_only %doc python2/examples
|
%python2_only %doc python2/examples
|
||||||
%python3_only %doc python3/examples
|
%python3_only %doc python3/examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user