|
|
5d301de |
%{?python_enable_dependency_generator}
|
|
|
5d301de |
|
|
|
0976ec5 |
%global pypi_name geoip2
|
|
|
0976ec5 |
%global srcname GeoIP2-python
|
|
|
0976ec5 |
%global desc This package provides an API for the GeoIP2 web services.
|
|
|
0976ec5 |
%global test_data MaxMind-DB
|
|
|
bbbb31d |
%global test_data_rls f6ed981c23b0eb33d7c07568e2177236252afda6
|
|
|
0976ec5 |
|
|
|
0976ec5 |
Name: python-%{pypi_name}
|
|
|
22ef00d |
Version: 3.0.0
|
|
|
22ef00d |
Release: 1%{?dist}
|
|
|
0976ec5 |
Summary: MaxMind GeoIP2 API
|
|
|
0976ec5 |
|
|
|
0976ec5 |
License: ASL 2.0
|
|
|
5d301de |
URL: https://www.maxmind.com/
|
|
|
0976ec5 |
Source0: https://github.com/maxmind/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
0976ec5 |
Source1: https://github.com/maxmind/%{test_data}/archive/%{test_data_rls}/%{test_data}-%{test_data_rls}.tar.gz
|
|
|
0976ec5 |
|
|
|
0976ec5 |
BuildArch: noarch
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%description
|
|
|
0976ec5 |
%{desc}
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%package -n python3-%{pypi_name}
|
|
|
0976ec5 |
Summary: %{summary}
|
|
|
0976ec5 |
BuildRequires: python3-devel
|
|
|
5d301de |
BuildRequires: python3-setuptools
|
|
|
f75e7db |
BuildRequires: python3-requests
|
|
|
0976ec5 |
BuildRequires: python3-maxminddb
|
|
|
5d301de |
BuildRequires: python3-requests-mock
|
|
|
0976ec5 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%description -n python3-%{pypi_name}
|
|
|
0976ec5 |
%{desc}
|
|
|
0976ec5 |
|
|
|
bfa21dd |
%package doc
|
|
|
bfa21dd |
Summary: Documentation for %{name}
|
|
|
bfa21dd |
BuildRequires: %{_bindir}/sphinx-build
|
|
|
bfa21dd |
|
|
|
bfa21dd |
%description doc
|
|
|
bfa21dd |
This package provides the documentation for %{pypi_name}.
|
|
|
bfa21dd |
|
|
|
0976ec5 |
%prep
|
|
|
0976ec5 |
%autosetup -n %{srcname}-%{version} -a 1
|
|
|
0976ec5 |
rmdir tests/data
|
|
|
0976ec5 |
mv -f %{test_data}-%{test_data_rls} tests/data
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%build
|
|
|
0976ec5 |
%py3_build
|
|
|
0976ec5 |
sphinx-build -b html docs html
|
|
|
ba6f71e |
rm -rf html/.{buildinfo,doctrees}
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%install
|
|
|
0976ec5 |
%py3_install
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%check
|
|
|
0976ec5 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
|
|
|
0976ec5 |
|
|
|
0976ec5 |
%files -n python3-%{pypi_name}
|
|
|
0976ec5 |
%doc README.rst
|
|
|
0976ec5 |
%license LICENSE
|
|
|
0976ec5 |
%{python3_sitelib}/%{pypi_name}/
|
|
|
5d301de |
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
|
0976ec5 |
|
|
|
bfa21dd |
%files doc
|
|
|
bfa21dd |
%doc html/
|
|
|
bfa21dd |
%license LICENSE
|
|
|
bfa21dd |
|
|
|
0976ec5 |
%changelog
|
|
|
22ef00d |
* Wed Feb 05 2020 Lumír Balhar <lbalhar@redhat.com> - 3.0.0-1
|
|
|
22ef00d |
- New upstream version 3.0.0 (#1785833)
|
|
|
22ef00d |
|
|
|
4abf95c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-10
|
|
|
4abf95c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
4abf95c |
|
|
|
97abdd1 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.9.0-9
|
|
|
97abdd1 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
97abdd1 |
|
|
|
ea25ca2 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.9.0-8
|
|
|
ea25ca2 |
- Rebuilt for Python 3.8
|
|
|
ea25ca2 |
|
|
|
7d2f2ac |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-7
|
|
|
7d2f2ac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7d2f2ac |
|
|
|
4222eb1 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-6
|
|
|
4222eb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
4222eb1 |
|
|
|
5d301de |
* Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.9.0-5
|
|
|
5d301de |
- Drop python2 subpackage
|
|
|
5d301de |
|
|
|
7becf92 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-4
|
|
|
7becf92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
7becf92 |
|
|
|
f75e7db |
* Sat Jun 23 2018 Carl George <carl@george.computer> - 2.9.0-3
|
|
|
f75e7db |
- EPEL compatibility
|
|
|
f75e7db |
|
|
|
6711748 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.0-2
|
|
|
6711748 |
- Rebuilt for Python 3.7
|
|
|
6711748 |
|
|
|
7cae737 |
* Mon May 28 2018 Lumir Balhar <lbalhar@redhat.com> - 2.9.0-1
|
|
|
7cae737 |
- Update to 2.9.0
|
|
|
7cae737 |
|
|
|
c440b4f |
* Thu Apr 12 2018 Lumir Balhar <lbalhar@redhat.com> - 2.8.0-1
|
|
|
c440b4f |
- Update to 2.8.0
|
|
|
c440b4f |
|
|
|
2fb0d7b |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
|
|
|
2fb0d7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2fb0d7b |
|
|
|
bbbb31d |
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.7.0-1
|
|
|
bbbb31d |
- Update to 2.7.0
|
|
|
bbbb31d |
|
|
|
716d83b |
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.6.0-2
|
|
|
716d83b |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
716d83b |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
716d83b |
|
|
|
2209074 |
* Wed Nov 01 2017 Lumir Balhar <lbalhar@redhat.com> - 2.6.0-1
|
|
|
2209074 |
- New upstream version
|
|
|
2209074 |
|
|
|
69e370b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
|
|
69e370b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
69e370b |
|
|
|
9ccd886 |
* Wed May 10 2017 Lumir Balhar <lbalhar@redhat.com> - 2.5.0-1
|
|
|
9ccd886 |
- Update to 2.5.0
|
|
|
9ccd886 |
|
|
|
ea3ab29 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-3
|
|
|
ea3ab29 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ea3ab29 |
|
|
|
130d6a6 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.4.2-2
|
|
|
130d6a6 |
- Rebuild for Python 3.6
|
|
|
130d6a6 |
|
|
|
9f30c63 |
* Tue Dec 13 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.4.2-1
|
|
|
9f30c63 |
- Update to 2.4.2
|
|
|
9f30c63 |
|
|
|
ba6f71e |
* Tue Nov 22 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.4.1-1
|
|
|
ba6f71e |
- Update to 2.4.1
|
|
|
ba6f71e |
|
|
|
bcaa240 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
|
|
|
bcaa240 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
bcaa240 |
|
|
|
0976ec5 |
* Wed Jun 15 2016 Lumir Balhar <lbalhar@redhat.com> - 2.4.0-1
|
|
|
0976ec5 |
- Initial package.
|