forked from pool/python-pyinotify
Accepting request 1256422 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1256422 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyinotify?expand=0&rev=20
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
python -m pyinotify "$@"
|
python3 -m pyinotify "$@"
|
||||||
|
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 26 11:57:29 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives, bsc#1240097
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
- Use python3 in pyinotify script
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 21 10:42:17 UTC 2025 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
|
Fri Mar 21 10:42:17 UTC 2025 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyinotify
|
Name: python-pyinotify
|
||||||
Version: 0.9.6
|
Version: 0.9.6
|
||||||
@@ -31,8 +36,13 @@ Source1: pyinotify
|
|||||||
Patch0: make_asyncore_support_optional.patch
|
Patch0: make_asyncore_support_optional.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -67,6 +77,10 @@ sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py
|
|||||||
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
|
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyinotify
|
%python_clone -a %{buildroot}%{_bindir}/pyinotify
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative pyinotify
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pyinotify
|
%python_install_alternative pyinotify
|
||||||
|
|
||||||
@@ -79,6 +93,8 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify
|
|||||||
%doc old/ChangeLog old/NEWS
|
%doc old/ChangeLog old/NEWS
|
||||||
%doc python3/examples
|
%doc python3/examples
|
||||||
%python_alternative %{_bindir}/pyinotify
|
%python_alternative %{_bindir}/pyinotify
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pyinotify.py
|
||||||
|
%{python_sitelib}/pyinotify-%{version}*.egg-info
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user