2017-09-06 19:29:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-Faker
|
|
|
|
#
|
2024-01-06 18:13:33 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-09-06 19:29:51 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:26:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-06 19:29:51 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-26 22:07:49 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-09-06 19:29:51 +02:00
|
|
|
Name: python-Faker
|
2024-06-11 10:06:47 +02:00
|
|
|
Version: 25.8.0
|
2017-09-06 19:29:51 +02:00
|
|
|
Release: 0
|
2019-03-17 16:32:11 +01:00
|
|
|
Summary: Python package that generates fake data
|
2017-09-06 19:29:51 +02:00
|
|
|
License: MIT
|
2018-12-04 18:13:13 +01:00
|
|
|
URL: https://github.com/joke2k/faker
|
2017-09-06 19:29:51 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
|
2019-07-24 13:35:38 +02:00
|
|
|
BuildRequires: %{python_module freezegun}
|
2023-05-04 21:13:09 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-05-16 16:08:56 +02:00
|
|
|
BuildRequires: %{python_module pytest >= 6.0.1}
|
2019-02-14 16:10:38 +01:00
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.4}
|
2019-09-24 11:03:46 +02:00
|
|
|
BuildRequires: %{python_module text-unidecode >= 1.3}
|
2019-07-24 13:35:38 +02:00
|
|
|
BuildRequires: %{python_module validators >= 0.13.0}
|
2023-05-04 21:13:09 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-12-04 18:13:13 +01:00
|
|
|
BuildRequires: fdupes
|
2017-09-06 19:29:51 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 18:13:13 +01:00
|
|
|
Requires: python-python-dateutil >= 2.4
|
2019-09-24 11:03:46 +02:00
|
|
|
Requires: python-text-unidecode >= 1.3
|
2018-12-04 18:13:13 +01:00
|
|
|
Requires(post): update-alternatives
|
2024-01-30 13:06:33 +01:00
|
|
|
Requires(postun): update-alternatives
|
2021-05-16 16:08:56 +02:00
|
|
|
Obsoletes: python3-fake-factory < %{version}-%{release}
|
|
|
|
Provides: python3-fake-factory = %{version}-%{release}
|
2020-03-16 11:33:05 +01:00
|
|
|
BuildArch: noarch
|
2017-09-06 19:29:51 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2017-09-11 17:41:19 +02:00
|
|
|
Faker is a Python package that generates fake data. It helps with
|
|
|
|
database bootstrapping, creating XML documents, persistence stress
|
|
|
|
testing, and data anonymization from production services.
|
2017-09-06 19:29:51 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Faker-%{version}
|
2019-03-10 12:05:14 +01:00
|
|
|
# Remove pre-existing bytecode files in the sdist
|
|
|
|
find . -name '*.py[co]' -delete
|
2019-03-14 15:34:55 +01:00
|
|
|
# do not hardcode versions
|
|
|
|
sed -i -e 's:==:>=:g' setup.py
|
2017-09-06 19:29:51 +02:00
|
|
|
|
|
|
|
%build
|
2023-05-04 21:13:09 +02:00
|
|
|
%pyproject_wheel
|
2017-09-06 19:29:51 +02:00
|
|
|
|
|
|
|
%install
|
2023-05-04 21:13:09 +02:00
|
|
|
%pyproject_install
|
2017-09-06 19:29:51 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/faker
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative faker
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative faker
|
|
|
|
|
|
|
|
%check
|
2019-03-14 15:34:55 +01:00
|
|
|
%pytest
|
2017-09-06 19:29:51 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 18:13:13 +01:00
|
|
|
%license LICENSE.txt
|
2021-01-06 05:56:08 +01:00
|
|
|
%doc CHANGELOG.md README.rst
|
2017-09-06 19:29:51 +02:00
|
|
|
%python_alternative %{_bindir}/faker
|
2021-05-16 16:08:56 +02:00
|
|
|
%{python_sitelib}/faker
|
|
|
|
%{python_sitelib}/Faker-%{version}*-info
|
2017-09-06 19:29:51 +02:00
|
|
|
|
|
|
|
%changelog
|