forked from pool/python-confpy
Accepting request 1282801 from home:fstegmeier:branches:devel:languages:python
- Migration to libalternatives OBS-URL: https://build.opensuse.org/request/show/1282801 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-confpy?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 14:47:10 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- Migration to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 26 10:46:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-confpy
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
@@ -28,6 +29,8 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Suggests: python-Jinja2
|
||||
@@ -52,11 +55,9 @@ find . -name '*.pyc' -delete
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative confpy-generate
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative confpy-generate
|
||||
%pre
|
||||
# Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative confpy-generate
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user