15
0

Accepting request 1282803 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1282803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cppclean?expand=0&rev=6
This commit is contained in:
2025-06-04 18:30:04 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 7 deletions

View File

@@ -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>

View File

@@ -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