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
f009be6
%global test_data_rls 1271107ccad72c320bc7dc8aefd767cba550101a
0976ec5
0976ec5
Name:           python-%{pypi_name}
f009be6
Version:        4.8.0
b6afe0b
Release:        3%{?dist}
0976ec5
Summary:        MaxMind GeoIP2 API
0976ec5
05b322a
License:        Apache-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
7eae2b0
BuildRequires:  python3-devel
7eae2b0
BuildRequires:  %{_bindir}/sphinx-build
7eae2b0
0976ec5
%description
0976ec5
%{desc}
0976ec5
0976ec5
%package -n python3-%{pypi_name}
0976ec5
Summary:        %{summary}
0976ec5
0976ec5
%description -n python3-%{pypi_name}
0976ec5
%{desc}
0976ec5
bfa21dd
%package doc
bfa21dd
Summary:        Documentation for %{name}
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
7eae2b0
%generate_buildrequires
1417725
%pyproject_buildrequires
7eae2b0
0976ec5
%build
7eae2b0
%pyproject_wheel
0976ec5
sphinx-build -b html docs html
ba6f71e
rm -rf html/.{buildinfo,doctrees}
0976ec5
0976ec5
%install
7eae2b0
%pyproject_install
7eae2b0
%pyproject_save_files %{pypi_name}
0976ec5
0976ec5
%check
f83ced2
# tests/webservice_test.py requires mocket not available in Fedora
f83ced2
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m unittest tests/database_test.py tests/models_test.py
0976ec5
7eae2b0
%files -n python3-%{pypi_name} -f %{pyproject_files}
0976ec5
%doc README.rst
0976ec5
%license LICENSE
0976ec5
bfa21dd
%files doc
bfa21dd
%doc html/
bfa21dd
%license LICENSE
bfa21dd
0976ec5
%changelog
b6afe0b
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-3
b6afe0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b6afe0b
be886c2
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-2
be886c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
be886c2
f009be6
* Thu Dec 07 2023 Lumír Balhar <lbalhar@redhat.com> - 4.8.0-1
f009be6
- Update to 4.8.0 (rhbz#2253301)
f009be6
f4302a2
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-3
f4302a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f4302a2
f6aade2
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 4.7.0-2
f6aade2
- Rebuilt for Python 3.12
f6aade2
05b322a
* Mon May 15 2023 Lumír Balhar <lbalhar@redhat.com> - 4.7.0-1
05b322a
- Update to 4.7.0 (rhbz#2198523)
05b322a
- SPDX License
05b322a
1dc0a3e
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-3
1dc0a3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1dc0a3e
944a10d
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
944a10d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
944a10d
7e5ea24
* Thu Jun 23 2022 Lumír Balhar <lbalhar@redhat.com> - 4.6.0-1
7e5ea24
- Update to 4.6.0
7e5ea24
Resolves: rhbz#2100065
7e5ea24
c0019f4
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 4.5.0-3
c0019f4
- Rebuilt for Python 3.11
c0019f4
f8dc603
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
f8dc603
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f8dc603
7124166
* Fri Nov 19 2021 Lumír Balhar <lbalhar@redhat.com> - 4.5.0-1
7124166
- Update to 4.5.0
7124166
Resolves: rhbz#2024761
7124166
7eae2b0
* Tue Oct 05 2021 Lumír Balhar <lbalhar@redhat.com> - 4.4.0-1
7eae2b0
- Update to 4.4.0
7eae2b0
Resolves#2006211
7eae2b0
2114b63
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
2114b63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2114b63
eda9ee9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.2.0-2
eda9ee9
- Rebuilt for Python 3.10
eda9ee9
5fddc3a
* Fri May 14 2021 Lumír Balhar <lbalhar@redhat.com> - 4.2.0-1
5fddc3a
- Update to 4.2.0
5fddc3a
Resolves: rhbz#1960142
5fddc3a
1689029
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
1689029
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1689029
00031d5
* Tue Sep 29 2020 Lumír Balhar <lbalhar@redhat.com> - 4.1.0-1
00031d5
- Update to 4.1.0 (#1882861)
00031d5
f83ced2
* Wed Jul 22 2020 Lumír Balhar <lbalhar@redhat.com> - 4.0.2-1
f83ced2
- Update to 4.0.2 (#1859400)
f83ced2
0cd5cf9
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
0cd5cf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0cd5cf9
7eefc65
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
7eefc65
- Rebuilt for Python 3.9
7eefc65
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.