diff --git a/python-Yapsy.changes b/python-Yapsy.changes index 36368fc..1bfe9a3 100644 --- a/python-Yapsy.changes +++ b/python-Yapsy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 22 10:43:29 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Thu Mar 21 09:44:18 UTC 2024 - Markéta Machová diff --git a/python-Yapsy.spec b/python-Yapsy.spec index 3ab3f9c..07364db 100644 --- a/python-Yapsy.spec +++ b/python-Yapsy.spec @@ -21,12 +21,14 @@ Version: 1.12.2 Release: 0 Summary: Yet another plugin system License: BSD-2-Clause -URL: http://yapsy.sourceforge.net +URL: https://yapsy.sourceforge.net Source: https://files.pythonhosted.org/packages/source/Y/Yapsy/Yapsy-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/tibonihoo/yapsy/pull/11 Replace Deprecated API's -Patch: replace-deprecated-apis.patch +Patch0: replace-deprecated-apis.patch BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Provides: python-yapsy @@ -46,11 +48,11 @@ needed to detect, load and keep track of several plugins. %autosetup -p1 -n Yapsy-%{version} %build -%python_build +%pyproject_wheel find yapsy/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';' %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,7 +60,7 @@ find yapsy/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python %files %{python_files} %{python_sitelib}/yapsy -%{python_sitelib}/Yapsy-%{version}*egg-info +%{python_sitelib}/Yapsy-%{version}*-info %doc CHANGELOG.txt README.txt %license LICENSE.txt