From fce1bcbb979236334de38b6eb6280d4236710abf5d7cc52477e1825224066129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 27 Jun 2025 15:07:09 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-parser?expand=0&rev=8 --- python-pyproject-parser.changes | 5 ++++ python-pyproject-parser.spec | 41 +++++++++++++++++---------------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/python-pyproject-parser.changes b/python-pyproject-parser.changes index b788192..18e858d 100644 --- a/python-pyproject-parser.changes +++ b/python-pyproject-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 27 15:03:31 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu May 15 04:31:53 UTC 2025 - Steve Kowalik diff --git a/python-pyproject-parser.spec b/python-pyproject-parser.spec index 27ee1e4..1d10eca 100644 --- a/python-pyproject-parser.spec +++ b/python-pyproject-parser.spec @@ -25,6 +25,7 @@ %bcond_with test %endif %{?sle15_python_module_pythons} +%bcond_without libalternatives Name: python-pyproject-parser%{psuffix} Version: 0.13.0 Release: 0 @@ -34,7 +35,24 @@ URL: https://github.com/repo-helper/pyproject-parser Source: https://github.com/repo-helper/pyproject-parser/archive/refs/tags/v%{version}.tar.gz#/pyproject-parser-%{version}.tar.gz BuildRequires: %{python_module hatch-requirements-txt} BuildRequires: %{python_module pip} +BuildRequires: alts +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts +Requires: python-apeye-core >= 1.0.0 +Requires: python-attrs >= 20.3.0 +Requires: python-dom-toml >= 2.0.0 +Requires: python-domdf-python-tools >= 2.8.0 +Requires: python-natsort >= 7.1.1 +Requires: python-packaging >= 20.9 +Requires: python-shippinglabel >= 1.0.0 +Requires: python-typing-extensions >= 3.7.4.3 +Suggests: python-click >= 7.1.2 +Suggests: python-consolekit >= 1.4.1 +Suggests: python-docutils >= 0.16 +Suggests: python-readme-renderer >= 27.0 +Suggests: python-sdjson >= 0.3.1 +BuildArch: noarch # SECTION test requirements %if %{with test} BuildRequires: %{python_module coincidence} @@ -47,21 +65,6 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module sdjson} %endif # /SECTION -BuildRequires: fdupes -Requires: python-apeye-core >= 1.0.0 -Requires: python-attrs >= 20.3.0 -Requires: python-dom-toml >= 2.0.0 -Requires: python-domdf-python-tools >= 2.8.0 -Requires: python-natsort >= 7.1.1 -Requires: python-packaging >= 20.9 -Requires: python-shippinglabel >= 1.0.0 -Requires: python-typing-extensions >= 3.7.4.3 -Suggests: python-consolekit >= 1.4.1 -Suggests: python-click >= 7.1.2 -Suggests: python-docutils >= 0.16 -Suggests: python-readme-renderer >= 27.0 -Suggests: python-sdjson >= 0.3.1 -BuildArch: noarch %python_subpackages %description @@ -80,13 +83,11 @@ Parser for 'pyproject.toml' %python_clone -a %{buildroot}%{_bindir}/check-pyproject %python_clone -a %{buildroot}%{_bindir}/pyproject-fmt %python_clone -a %{buildroot}%{_bindir}/pyproject-info +%python_group_libalternatives pyproject-parser check-pyproject pyproject-fmt pyproject-info %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative pyproject-parser check-pyproject pyproject-fmt pyproject-info - -%postun -%python_uninstall_alternative pyproject-parser +%pre +%python_libalternatives_reset_alternative pyproject-parser %endif %check