15
0
forked from pool/python-pako

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pako?expand=0&rev=8
This commit is contained in:
2025-06-09 12:33:29 +00:00
committed by Git OBS Bridge
parent 11ccb3a256
commit c216f3f3f6
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 12:32:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 2 15:32:34 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-pako
Version: 0.3.1
Release: 0
@@ -27,11 +28,11 @@ Source: https://files.pythonhosted.org/packages/source/p/pako/pako-%{ver
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-appdirs
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -59,11 +60,8 @@ More on https://github.com/MycroftAI/pako
%python_clone -a %{buildroot}%{_bindir}/pako
rm -f %{buildroot}%{_prefix}/pako/LICENSE
%post
%python_install_alternative pako
%postun
%python_uninstall_alternative pako
%pre
%python_libalternatives_reset_alternative pako
%files %{python_files}
%license LICENSE