3b51829
%global pkgname faker
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}
81e1b51
Version:        0.7.10
44c41fc
Release:        1%{?dist}
1f1613d
Summary:        Faker is a Python package that generates fake data for you
3b51829
3b51829
License:        MIT
3c4428d
URL:            http://faker.readthedocs.io
1f1613d
Source:         https://github.com/joke2k/%{pkgname}/archive/v%{version}.tar.gz#/%{pkgname}-%{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}
1f1613d
Summary:        %{summary}
3b51829
%{?python_provide:%python_provide python2-%{pkgname}}
3b51829
Suggests:       %{name}-doc = %{version}-%{release}
44c41fc
Requires:       python2-dateutil
3b51829
3b51829
%description -n python2-%{pkgname}
3b51829
%{desc}
3b51829
3b51829
%package -n python3-%{pkgname}
1f1613d
Summary:        %{summary}
3b51829
%{?python_provide:%python_provide python3-%{pkgname}}
3b51829
Suggests:       %{name}-doc = %{version}-%{release}
44c41fc
Requires:       python3-dateutil
3b51829
3b51829
%description -n python3-%{pkgname}
3b51829
%{desc}
3b51829
3b51829
%package doc
1f1613d
Summary:        Documentation for %{name}
3b51829
3b51829
%description doc
1f1613d
Documentation for %{name}
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
3b51829
find . -type f -name '.buildinfo' -delete
3b51829
popd
3b51829
3b51829
%install
3b51829
%py2_install
3b51829
%py3_install
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}
1f1613d
%{python2_sitelib}/Faker-%{version}-py*.egg-info
3b51829
3b51829
%files -n python3-%{pkgname}
3b51829
%license LICENSE.txt
3b51829
%{_bindir}/faker
3b51829
%{python3_sitelib}/%{pkgname}
1f1613d
%{python3_sitelib}/Faker-%{version}-py*.egg-info
3b51829
3b51829
%files doc
b720751
%doc README.rst CHANGELOG.rst CONTRIBUTING.rst docs/_build/html
3b51829
3b51829
%changelog
81e1b51
* Wed Apr 05 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.7.10-1
81e1b51
- Version 0.7.10
81e1b51
- Remove huge man page
81e1b51
3c4428d
* Sun Feb 26 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.7.9-1
3c4428d
- Version 0.7.9
3c4428d
44c41fc
* Sun Feb 05 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.7.7-1
44c41fc
- Version 0.7.7
44c41fc
- Add dateutil dependency (RHBZ#1419285)
44c41fc
9696b9e
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.7.3-2
9696b9e
- Rebuild for Python 3.6
9696b9e
1f1613d
* Fri Dec 09 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 0.7.3-1
1f1613d
- Version 0.7.3
1f1613d
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