forked from pool/python-pdd
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdd?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 14:37:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 09:20:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
# pdd is not available for Python 2
|
||||
Name: python-pdd
|
||||
Version: 1.7
|
||||
@@ -29,12 +30,12 @@ BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-python-dateutil
|
||||
Requires: python-setuptools
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -63,11 +64,8 @@ mv pdd.py pdd
|
||||
chmod 755 pdd
|
||||
%pytest test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative pdd
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pdd
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative pdd
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md CHANGELOG
|
||||
|
Reference in New Issue
Block a user