forked from pool/python-Faker
- Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=1
This commit is contained in:
commit
faeceefac3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
Faker-0.8.3.tar.gz
Normal file
3
Faker-0.8.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:79b0682d59c4c6961f10edcc9453563a278640e9ffcfee21427fea7a19972bf8
|
||||
size 631747
|
4
python-Faker.changes
Normal file
4
python-Faker.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 6 16:41:21 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Initial version
|
93
python-Faker.spec
Normal file
93
python-Faker.spec
Normal file
@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package python-Faker
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_with test
|
||||
Name: python-Faker
|
||||
Version: 0.8.3
|
||||
Release: 0
|
||||
Summary: Faker is a Python package that generates fake data for you
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/joke2k/faker
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module email_validator >= 1.0.2}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module python-dateutil >= 2.4}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: python-ipaddress
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
Requires: python-email_validator >= 1.0.2
|
||||
Requires: python-python-dateutil >= 2.4
|
||||
Requires: python-six
|
||||
%ifpython2
|
||||
Recommends: python-ipaddress
|
||||
Obsoletes: %{oldpython}-fake-factory < %{version}
|
||||
Provides: %{oldpython}-fake-factory = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Obsoletes: python3-fake-factory < %{version}
|
||||
Provides: python3-fake-factory = %{version}
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Faker is a Python package that generates fake data for you. Whether
|
||||
you need to bootstrap your database, create good-looking XML documents,
|
||||
fill-in your persistence to stress test it, or anonymize data taken from
|
||||
a production service, Faker is for you.
|
||||
|
||||
%prep
|
||||
%setup -q -n Faker-%{version}
|
||||
|
||||
%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
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG.rst LICENSE.txt README.rst
|
||||
%python_alternative %{_bindir}/faker
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user