SHA256
1
0
forked from pool/python-Faker

4 Commits

2 changed files with 37 additions and 4 deletions

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
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>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Apr 1 11:43:29 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the dist-info name case-insensitive.
-------------------------------------------------------------------
Tue Mar 25 02:33:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Mon Aug 5 11:02:21 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Faker
#
# 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,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Faker
Version: 26.1.0
@@ -35,10 +40,15 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
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}
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -62,6 +72,9 @@ sed -i -e 's:==:>=:g' setup.py
%python_clone -a %{buildroot}%{_bindir}/faker
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%pre
%python_libalternatives_reset_alternative faker
%post
%python_install_alternative faker
@@ -76,6 +89,6 @@ sed -i -e 's:==:>=:g' setup.py
%doc CHANGELOG.md README.rst
%python_alternative %{_bindir}/faker
%{python_sitelib}/faker
%{python_sitelib}/Faker-%{version}*-info
%{python_sitelib}/[fF]aker-%{version}.dist-info
%changelog