forked from pool/python-Yapsy
- Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Yapsy?expand=0&rev=16
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user