2017-09-06 19:29:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-Faker
|
|
|
|
#
|
2023-02-01 21:32:00 +01:00
|
|
|
# Copyright (c) 2023 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
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-05-16 16:08:56 +02:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2020-02-28 22:25:40 +01:00
|
|
|
%global skip_python2 1
|
2017-09-06 19:29:51 +02:00
|
|
|
Name: python-Faker
|
2023-02-16 22:06:57 +01:00
|
|
|
Version: 17.0.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-02-14 16:10:38 +01:00
|
|
|
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
|
2019-07-24 13:35:38 +02:00
|
|
|
BuildRequires: %{python_module freezegun}
|
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-07-24 13:35:38 +02:00
|
|
|
BuildRequires: %{python_module random2}
|
2017-09-06 19:29:51 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
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}
|
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
|
2021-05-16 16:08:56 +02:00
|
|
|
Requires(postun):update-alternatives
|
|
|
|
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
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%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
|