From ab7dfaa4c12bc8983d81e7163cfafdb24ff762f84ca35e0633a6443339dc3f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 08:30:50 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cyrtranslit?expand=0&rev=3 --- python-cyrtranslit.changes | 5 +++++ python-cyrtranslit.spec | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-cyrtranslit.changes b/python-cyrtranslit.changes index e65d44d..89f25b0 100644 --- a/python-cyrtranslit.changes +++ b/python-cyrtranslit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 08:28:39 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Wed Sep 18 19:17:06 UTC 2024 - Markéta Machová diff --git a/python-cyrtranslit.spec b/python-cyrtranslit.spec index 2de93c6..d4818d7 100644 --- a/python-cyrtranslit.spec +++ b/python-cyrtranslit.spec @@ -1,7 +1,7 @@ # # spec file for package python-cyrtranslit # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-cyrtranslit Version: 1.1.1 Release: 0 @@ -23,11 +24,13 @@ Summary: Bi-directional Cyrillic transliteration. License: MIT URL: https://github.com/opendatakosovo/cyrillic-transliteration Source: https://files.pythonhosted.org/packages/source/c/cyrtranslit/cyrtranslit-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts BuildArch: noarch %python_subpackages @@ -48,11 +51,8 @@ Bi-directional Cyrillic transliteration. Transliterate Cyrillic script to Latin %check # no unittests, just text files in cyrilic -%post -%python_install_alternative cyrtranslit - -%postun -%python_uninstall_alternative cyrtranslit +%pre +%python_libalternatives_reset_alternative cyrtranslit %files %{python_files} %doc README.md