From 8647724c309cd922398d20d07c4aed3cffcbaaf09977d20b082871164db9aaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 13:18:33 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=125 --- python-Faker.changes | 5 +++++ python-Faker.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-Faker.changes b/python-Faker.changes index 6a58f2f..ce1b3a8 100644 --- a/python-Faker.changes +++ b/python-Faker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 13:18:02 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Apr 1 11:43:29 UTC 2025 - Markéta Machová diff --git a/python-Faker.spec b/python-Faker.spec index bdea814..6b1415b 100644 --- a/python-Faker.spec +++ b/python-Faker.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-Faker Version: 26.1.0 @@ -31,12 +32,12 @@ BuildRequires: %{python_module python-dateutil >= 2.4} BuildRequires: %{python_module text-unidecode >= 1.3} BuildRequires: %{python_module validators >= 0.13.0} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-python-dateutil >= 2.4 Requires: python-text-unidecode >= 1.3 -Requires(post): update-alternatives -Requires(postun): update-alternatives Obsoletes: python3-fake-factory < %{version}-%{release} Provides: python3-fake-factory = %{version}-%{release} BuildArch: noarch @@ -62,11 +63,8 @@ sed -i -e 's:==:>=:g' setup.py %python_clone -a %{buildroot}%{_bindir}/faker %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative faker - -%postun -%python_uninstall_alternative faker +%pre +%python_libalternatives_reset_alternative faker %check %pytest