forked from pool/python-Faker
- Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=127
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 19 12:11:40 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 8 13:18:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Tue Jul 8 13:18:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Faker
|
Name: python-Faker
|
||||||
Version: 26.1.0
|
Version: 26.1.0
|
||||||
@@ -32,14 +36,19 @@ BuildRequires: %{python_module python-dateutil >= 2.4}
|
|||||||
BuildRequires: %{python_module text-unidecode >= 1.3}
|
BuildRequires: %{python_module text-unidecode >= 1.3}
|
||||||
BuildRequires: %{python_module validators >= 0.13.0}
|
BuildRequires: %{python_module validators >= 0.13.0}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Requires: python-python-dateutil >= 2.4
|
Requires: python-python-dateutil >= 2.4
|
||||||
Requires: python-text-unidecode >= 1.3
|
Requires: python-text-unidecode >= 1.3
|
||||||
Obsoletes: python3-fake-factory < %{version}-%{release}
|
Obsoletes: python3-fake-factory < %{version}-%{release}
|
||||||
Provides: python3-fake-factory = %{version}-%{release}
|
Provides: python3-fake-factory = %{version}-%{release}
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -66,6 +75,12 @@ sed -i -e 's:==:>=:g' setup.py
|
|||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative faker
|
%python_libalternatives_reset_alternative faker
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative faker
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative faker
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user