From e241e37fe91a72d6faa91277940838dcbf4fa70871ce69fb0408097c76561fa4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 22 Mar 2024 10:43:35 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Yapsy?expand=0&rev=16 --- python-Yapsy.changes | 5 +++++ python-Yapsy.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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