From 79b1b3e41274aaf3fa357701516bffea57f5e7f7026d2e29965ec6f8afe191d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 10:29:17 +0000 Subject: [PATCH] - convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lesscpy?expand=0&rev=30 --- python-lesscpy.changes | 5 +++++ python-lesscpy.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-lesscpy.changes b/python-lesscpy.changes index 3246084..49cd45a 100644 --- a/python-lesscpy.changes +++ b/python-lesscpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 10:28:23 UTC 2025 - Markéta Machová + +- convert to libalternatives + ------------------------------------------------------------------- Fri May 30 13:37:16 UTC 2025 - Markéta Machová diff --git a/python-lesscpy.spec b/python-lesscpy.spec index a3718b6..9428d53 100644 --- a/python-lesscpy.spec +++ b/python-lesscpy.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-lesscpy Version: 0.15.1 Release: 0 @@ -30,12 +31,12 @@ BuildRequires: %{python_module ply} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-ply Requires: python-setuptools -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -61,11 +62,9 @@ rm test/test_{bootstrap3,less,issues}.py %python_clone -a %{buildroot}%{_bindir}/lesscpy %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative lesscpy - -%postun -%python_uninstall_alternative lesscpy +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative lesscpy %check %pytest