commit faeceefac3747c4e8194ad7f4d398fbcc8d567246544e01e102c243026526f56 Author: Todd R Date: Wed Sep 6 17:29:51 2017 +0000 - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Faker-0.8.3.tar.gz b/Faker-0.8.3.tar.gz new file mode 100644 index 0000000..2eece64 --- /dev/null +++ b/Faker-0.8.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79b0682d59c4c6961f10edcc9453563a278640e9ffcfee21427fea7a19972bf8 +size 631747 diff --git a/python-Faker.changes b/python-Faker.changes new file mode 100644 index 0000000..7ac31b9 --- /dev/null +++ b/python-Faker.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Sep 6 16:41:21 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-Faker.spec b/python-Faker.spec new file mode 100644 index 0000000..0c9ba5a --- /dev/null +++ b/python-Faker.spec @@ -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