forked from pool/python-acefile
Accepting request 1286087 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1286087 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-acefile?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 12:09:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 05:35:23 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%bcond_without libalternatives
|
||||
Name: python-acefile
|
||||
Version: 0.6.13
|
||||
Release: 0
|
||||
@@ -29,11 +30,11 @@ 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-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -52,11 +53,8 @@ export CFLAGS="%{optflags}"
|
||||
%python_clone -a %{buildroot}%{_bindir}/acefile-unace
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%post
|
||||
%python_install_alternative acefile-unace
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative acefile-unace
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative acefile-unace
|
||||
|
||||
%files %{python_files}
|
||||
%doc NEWS.md README.md
|
||||
|
||||
Reference in New Issue
Block a user