forked from pool/python-pyinotify
		
	- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinotify?expand=0&rev=39
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Jun 11 05:49:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> | ||||||
|  |  | ||||||
|  | - Switch to pyproject macros. | ||||||
|  |  | ||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ||||||
| Wed Mar 26 11:57:29 UTC 2025 - Nico Krapp <nico.krapp@suse.com> | Wed Mar 26 11:57:29 UTC 2025 - Nico Krapp <nico.krapp@suse.com> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -34,7 +34,9 @@ Source:         https://files.pythonhosted.org/packages/source/p/pyinotify/pyino | |||||||
| Source1:        pyinotify | Source1:        pyinotify | ||||||
| # PATCH-FIX_UPSTREAM https://github.com/seb-m/pyinotify/pull/205 | # PATCH-FIX_UPSTREAM https://github.com/seb-m/pyinotify/pull/205 | ||||||
| Patch0:         make_asyncore_support_optional.patch | Patch0:         make_asyncore_support_optional.patch | ||||||
|  | BuildRequires:  %{python_module pip} | ||||||
| BuildRequires:  %{python_module setuptools} | BuildRequires:  %{python_module setuptools} | ||||||
|  | BuildRequires:  %{python_module wheel} | ||||||
| BuildRequires:  python-rpm-macros | BuildRequires:  python-rpm-macros | ||||||
| %if %{with libalternatives} | %if %{with libalternatives} | ||||||
| Requires:       alts | Requires:       alts | ||||||
| @@ -70,10 +72,10 @@ sed -i "s|#!%{_bindir}/env python|#!%__python2|" python2/examples/*py | |||||||
| sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py | sed -i "s|#!%{_bindir}/env python|#!%__python3|" python3/examples/*py | ||||||
|  |  | ||||||
| %build | %build | ||||||
| %python_build | %pyproject_wheel | ||||||
|  |  | ||||||
| %install | %install | ||||||
| %python_install | %pyproject_install | ||||||
| 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 | ||||||
|  |  | ||||||
| @@ -94,7 +96,7 @@ install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/pyinotify | |||||||
| %doc python3/examples | %doc python3/examples | ||||||
| %python_alternative %{_bindir}/pyinotify | %python_alternative %{_bindir}/pyinotify | ||||||
| %{python_sitelib}/pyinotify.py | %{python_sitelib}/pyinotify.py | ||||||
| %{python_sitelib}/pyinotify-%{version}*.egg-info | %pycache_only %{python_sitelib}/__pycache__/pyinotify.*.pyc | ||||||
| %pycache_only %{python_sitelib}/__pycache__ | %{python_sitelib}/pyinotify-%{version}.dist-info | ||||||
|  |  | ||||||
| %changelog | %changelog | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user