|
|
3b51829 |
%global pkgname faker
|
|
|
3b51829 |
%global sum Faker is a Python package that generates fake data for you
|
|
|
3b51829 |
%global desc Faker is a Python package that generates fake data for you. Whether you need \
|
|
|
3b51829 |
to bootstrap your database, create good-looking XML documents, fill-in your \
|
|
|
3b51829 |
persistence to stress test it, or anonymize data taken from a production \
|
|
|
3b51829 |
service, Faker is for you.
|
|
|
3b51829 |
|
|
|
3b51829 |
Name: python-%{pkgname}
|
|
|
9e59439 |
Version: 0.5.9
|
|
|
dd0e56e |
Release: 3%{?dist}
|
|
|
3b51829 |
Summary: %{sum}
|
|
|
3b51829 |
|
|
|
3b51829 |
License: MIT
|
|
|
3b51829 |
URL: http://www.joke2k.net/faker/
|
|
|
3b51829 |
Source: https://github.com/joke2k/%{pkgname}/archive/v%{version}.tar.gz
|
|
|
3b51829 |
|
|
|
3b51829 |
BuildArch: noarch
|
|
|
3b51829 |
BuildRequires: python2-devel
|
|
|
3b51829 |
BuildRequires: python3-devel
|
|
|
3b51829 |
BuildRequires: python-sphinx
|
|
|
b720751 |
BuildRequires: python-dateutil
|
|
|
b720751 |
BuildRequires: python-ipaddress
|
|
|
3b51829 |
|
|
|
3b51829 |
%description
|
|
|
3b51829 |
%{desc}
|
|
|
3b51829 |
|
|
|
3b51829 |
%package -n python2-%{pkgname}
|
|
|
3b51829 |
Summary: %{sum}
|
|
|
3b51829 |
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
|
3b51829 |
Suggests: %{name}-doc = %{version}-%{release}
|
|
|
3b51829 |
|
|
|
3b51829 |
%description -n python2-%{pkgname}
|
|
|
3b51829 |
%{desc}
|
|
|
3b51829 |
|
|
|
3b51829 |
%package -n python3-%{pkgname}
|
|
|
3b51829 |
Summary: %{sum}
|
|
|
3b51829 |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
|
3b51829 |
Suggests: %{name}-doc = %{version}-%{release}
|
|
|
3b51829 |
|
|
|
3b51829 |
%description -n python3-%{pkgname}
|
|
|
3b51829 |
%{desc}
|
|
|
3b51829 |
|
|
|
3b51829 |
%package doc
|
|
|
3b51829 |
Summary: Documentation for python-%{pkgname}
|
|
|
3b51829 |
|
|
|
3b51829 |
%description doc
|
|
|
3b51829 |
Documentation for python-%{pkgname}
|
|
|
3b51829 |
|
|
|
3b51829 |
%prep
|
|
|
3b51829 |
%autosetup -n %{pkgname}-%{version}
|
|
|
3b51829 |
|
|
|
3b51829 |
%build
|
|
|
3b51829 |
%py2_build
|
|
|
3b51829 |
%py3_build
|
|
|
3b51829 |
pushd docs
|
|
|
3b51829 |
PYTHONPATH='..' %make_build html
|
|
|
dd0e56e |
# Generation of man page not working for now
|
|
|
dd0e56e |
#PYTHONPATH='..' %%make_build man
|
|
|
3b51829 |
find . -type f -name '.buildinfo' -delete
|
|
|
3b51829 |
popd
|
|
|
3b51829 |
|
|
|
3b51829 |
%install
|
|
|
3b51829 |
%py2_install
|
|
|
3b51829 |
%py3_install
|
|
|
dd0e56e |
#install -D -m 0644 docs/_build/man/faker.1 %%{buildroot}%%{_mandir}/man1/faker.1
|
|
|
3b51829 |
|
|
|
3b51829 |
# Tests fail to run:
|
|
|
3b51829 |
# https://github.com/joke2k/faker/issues/292
|
|
|
3b51829 |
#%%check
|
|
|
3b51829 |
#%%{__python2} setup.py test
|
|
|
3b51829 |
#%%{__python3} setup.py test
|
|
|
3b51829 |
|
|
|
3b51829 |
%files -n python2-%{pkgname}
|
|
|
3b51829 |
%license LICENSE.txt
|
|
|
3b51829 |
%{python2_sitelib}/%{pkgname}
|
|
|
3b51829 |
%{python2_sitelib}/fake_factory-%{version}-py*.egg-info
|
|
|
3b51829 |
|
|
|
3b51829 |
%files -n python3-%{pkgname}
|
|
|
3b51829 |
%license LICENSE.txt
|
|
|
3b51829 |
%{_bindir}/faker
|
|
|
3b51829 |
%{python3_sitelib}/%{pkgname}
|
|
|
3b51829 |
%{python3_sitelib}/fake_factory-%{version}-py*.egg-info
|
|
|
dd0e56e |
#%%{_mandir}/man1/faker.1*
|
|
|
3b51829 |
|
|
|
3b51829 |
%files doc
|
|
|
b720751 |
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst docs/_build/html
|
|
|
3b51829 |
|
|
|
3b51829 |
%changelog
|
|
|
dd0e56e |
* Wed Jul 20 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.9-3
|
|
|
dd0e56e |
- Disable man page generation
|
|
|
dd0e56e |
|
|
|
d93e4ad |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-2
|
|
|
d93e4ad |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
d93e4ad |
|
|
|
9e59439 |
* Tue Jul 12 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.9-1
|
|
|
9e59439 |
- Version 0.5.9
|
|
|
9e59439 |
|
|
|
c87cad4 |
* Mon Jul 04 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.8-1
|
|
|
c87cad4 |
- Version 0.5.8
|
|
|
c87cad4 |
|
|
|
b720751 |
* Sun Mar 13 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.7-1
|
|
|
b720751 |
- Version 0.5.7
|
|
|
b720751 |
|
|
|
615fa22 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-8
|
|
|
615fa22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
615fa22 |
|
|
|
8f704f8 |
* Mon Nov 30 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-7
|
|
|
8f704f8 |
- Leave only python3 version of faker script
|
|
|
8f704f8 |
|
|
|
64f8402 |
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-6
|
|
|
64f8402 |
- link binary for different python versions
|
|
|
64f8402 |
|
|
|
73c638b |
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 0.5.3-5
|
|
|
73c638b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
73c638b |
|
|
|
3b51829 |
* Tue Nov 03 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-4
|
|
|
3b51829 |
- Move all doc files to the doc subpackage
|
|
|
3b51829 |
- Include the man page in the main packages
|
|
|
3b51829 |
|
|
|
3b51829 |
* Fri Oct 30 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-3
|
|
|
3b51829 |
- Add documentation
|
|
|
3b51829 |
|
|
|
3b51829 |
* Thu Oct 29 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-2
|
|
|
3b51829 |
- Add python provides and follow naming guidelines
|
|
|
3b51829 |
- Rename faker binary
|
|
|
3b51829 |
|
|
|
3b51829 |
* Fri Oct 23 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.5.3-1
|
|
|
3b51829 |
- Initial package
|