| |
@@ -7,8 +7,8 @@
|
| |
%global test_data_rls cbaa463dc6950ababbf678ca85fb3833b81c76d3
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
- Version: 4.2.0
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 4.4.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: MaxMind GeoIP2 API
|
| |
|
| |
License: ASL 2.0
|
| |
@@ -18,17 +18,15 @@
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
+ BuildRequires: python3-devel
|
| |
+ BuildRequires: pyproject-rpm-macros
|
| |
+ BuildRequires: %{_bindir}/sphinx-build
|
| |
+
|
| |
%description
|
| |
%{desc}
|
| |
|
| |
%package -n python3-%{pypi_name}
|
| |
Summary: %{summary}
|
| |
- BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
- BuildRequires: python3-requests
|
| |
- BuildRequires: python3-maxminddb
|
| |
- BuildRequires: python3-requests-mock
|
| |
- BuildRequires: python3-aiohttp
|
| |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
| |
|
| |
%description -n python3-%{pypi_name}
|
| |
@@ -36,7 +34,6 @@
|
| |
|
| |
%package doc
|
| |
Summary: Documentation for %{name}
|
| |
- BuildRequires: %{_bindir}/sphinx-build
|
| |
|
| |
%description doc
|
| |
This package provides the documentation for %{pypi_name}.
|
| |
@@ -46,29 +43,35 @@
|
| |
rmdir tests/data
|
| |
mv -f %{test_data}-%{test_data_rls} tests/data
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires -r
|
| |
+
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
sphinx-build -b html docs html
|
| |
rm -rf html/.{buildinfo,doctrees}
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files %{pypi_name}
|
| |
|
| |
%check
|
| |
# tests/webservice_test.py requires mocket not available in Fedora
|
| |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m unittest tests/database_test.py tests/models_test.py
|
| |
|
| |
- %files -n python3-%{pypi_name}
|
| |
+ %files -n python3-%{pypi_name} -f %{pyproject_files}
|
| |
%doc README.rst
|
| |
%license LICENSE
|
| |
- %{python3_sitelib}/%{pypi_name}/
|
| |
- %{python3_sitelib}/%{pypi_name}-*.egg-info/
|
| |
|
| |
%files doc
|
| |
%doc html/
|
| |
%license LICENSE
|
| |
|
| |
%changelog
|
| |
+ * Tue Oct 05 2021 Lumír Balhar <lbalhar@redhat.com> - 4.4.0-1
|
| |
+ - Update to 4.4.0
|
| |
+ Resolves#2006211
|
| |
+
|
| |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
|
| |