15
0
forked from pool/python-Yapsy
2024-03-22 10:43:35 +00:00
committed by Git OBS Bridge
parent aad8854f65
commit e241e37fe9
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 22 10:43:29 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Thu Mar 21 09:44:18 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -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