forked from pool/python-cppclean
Accepting request 1282799 from home:fstegmeier:branches:devel:languages:python
- fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282799 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cppclean?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 14:32:35 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- fix usage of libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 16 12:22:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-cppclean
|
||||
Version: 0.13
|
||||
Release: 0
|
||||
@@ -27,11 +28,11 @@ Source: https://github.com/myint/cppclean/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: bash
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -56,11 +57,9 @@ considerable extra compiles increasing the edit-compile-run cycle.
|
||||
%check
|
||||
%python_expand PYTHON=%{__$python} bash test.bash
|
||||
|
||||
%post
|
||||
%python_install_alternative cppclean
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cppclean
|
||||
%pre
|
||||
# Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative cppclean
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
||||
Reference in New Issue
Block a user