forked from pool/python-Faker
- Update to 8.11.0 * Add ``nic_handle``. Thanks @pishchalnikov. - from version 8.10.3 * Remove potentially offensive surname in ``it_IT``. Thanks @lordgordon. - from version 8.10.2 * Return list instead of tuple in ``choices_distribution``. Thanks @svisser. - from version 8.10.1 * enable faker instances to be unpickled (#1480). Thanks @fcurella. - from version 8.10.0 * Add ``ar_AE`` (UAE) phone numbers. Thanks @sshishov. - from version 8.9.1 * Skip UnsupportedFeature's on the command line. Thanks @therefromhere. - from version 8.9.0 * Add RIPE ID. Thanks @pishchalnikov. - from version 8.8.2 * Avoid collision for ``date`` in ``datetime`` provider. Thanks @mattshin. - from version 8.8.1 * Fix ``left_digits`` ignored if ``min_value`` is given. Thanks @OJFord.q - from version 8.8.0 * Add ``iana_id``, IANA Registrar ID. Thanks @pishchalnikov. - from version 8.7.0 * Add tlds for ``th_TH`` internet provider. Thanks @bact. - from version 8.6.0 * Add ``aba()`` method to generate ABA routing numbers. Thanks @mstellon. - from version 8.5.1 * Fix deepcopy for Faker instances. - from version 8.5.0 * Add ``image`` provider. Thanks @n1ngu. - from version 8.4.0 * Add license plates and language names for ``he_IL`` locale. Thanks @AndreyRub. OBS-URL: https://build.opensuse.org/request/show/911578 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=57
84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-Faker
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%global skip_python2 1
|
|
Name: python-Faker
|
|
Version: 8.11.0
|
|
Release: 0
|
|
Summary: Python package that generates fake data
|
|
License: MIT
|
|
URL: https://github.com/joke2k/faker
|
|
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
|
|
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
|
|
BuildRequires: %{python_module freezegun}
|
|
BuildRequires: %{python_module pytest >= 6.0.1}
|
|
BuildRequires: %{python_module python-dateutil >= 2.4}
|
|
BuildRequires: %{python_module random2}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module text-unidecode >= 1.3}
|
|
BuildRequires: %{python_module validators >= 0.13.0}
|
|
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}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n Faker-%{version}
|
|
# Remove pre-existing bytecode files in the sdist
|
|
find . -name '*.py[co]' -delete
|
|
# do not hardcode versions
|
|
sed -i -e 's:==:>=:g' setup.py
|
|
|
|
%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
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc CHANGELOG.md README.rst
|
|
%python_alternative %{_bindir}/faker
|
|
%{python_sitelib}/faker
|
|
%{python_sitelib}/Faker-%{version}*-info
|
|
|
|
%changelog
|