[packages/python3-maxminddb] - updated to 3.0.0
qboosh
qboosh at pld-linux.org
Tue Feb 17 21:46:17 CET 2026
commit 9e6d9e53982b6c68786ae3fd23e995ca8cad597a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Feb 17 21:46:16 2026 +0100
- updated to 3.0.0
python3-maxminddb.spec | 68 +++++++++++++++++++++++++++++++-------------------
1 file changed, 43 insertions(+), 25 deletions(-)
---
diff --git a/python3-maxminddb.spec b/python3-maxminddb.spec
index 1181ff2..5d401c8 100644
--- a/python3-maxminddb.spec
+++ b/python3-maxminddb.spec
@@ -1,25 +1,34 @@
+# TODO: use system libmaxminddb instead of copy in extension/libmaxminddb?
#
# Conditional build:
-%bcond_without doc # don't build doc
-%bcond_with tests # do not perform "make test"
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
%define module maxminddb
Summary: Python extension for reading the MaxMind DB format
+Summary(pl.UTF-8): Rozszerzenie Pythona do odczytu formatu bazy danych MaxMind
Name: python3-%{module}
-Version: 2.5.2
-Release: 4
-License: APL
+Version: 3.0.0
+Release: 1
+License: Apache v2.0
Group: Libraries/Python
-Source0: https://pypi.python.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
-# Source0-md5: b4c43becaffd76b9afa57beea19523c8
-URL: https://pypi.python.org/pypi/maxminddb
-BuildRequires: libmaxminddb-devel
-BuildRequires: python3-devel
-BuildRequires: python3-modules
+Source0: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
+# Source0-md5: 295f77ae4463de4d53951ab96a718d41
+URL: https://pypi.org/project/maxminddb/
+#BuildRequires: libmaxminddb-devel
+BuildRequires: python3-devel >= 1:3.10
+BuildRequires: python3-modules >= 1:3.10
+BuildRequires: python3-setuptools >= 1:77.0.3
+BuildRequires: python3-setuptools_scm
+%if %{with tests}
+BuildRequires: python3-pytest >= 8.3.5
+%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
-Requires: python-ipaddr
-Requires: python3-modules
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.10
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -28,30 +37,39 @@ This is a Python module for reading MaxMind DB files.
MaxMind DB is a binary file format that stores data indexed by IP
address subnets (IPv4 or IPv6).
+%description -l pl.UTF-8
+Moduł Pythona do odczytu plików bazy danych MaxMind.
+
+MaxMind DB to binarny format pliku przechowujący dane indeksowane
+podsieciami adresów IP (IPv4 lub IPv6).
+
%package apidocs
-Summary: %{module} API documentation
-Summary(pl.UTF-8): Dokumentacja API %{module}
+Summary: API documentation for Python maxminddb module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona maxminddb
Group: Documentation
BuildArch: noarch
%description apidocs
-API documentation for %{module}.
+API documentation for Python maxminddb module.
%description apidocs -l pl.UTF-8
-Dokumentacja API %{module}.
+Dokumentacja API modułu Pythona maxminddb.
%prep
%setup -q -n %{module}-%{version}
%build
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
%if %{with doc}
-cd docs
-%{__make} -j1 html
-rm -rf _build/html/_sources
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-3
%endif
%install
@@ -71,5 +89,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc docs/_build/html/*
+%doc docs/_build/html/{_static,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-maxminddb.git/commitdiff/9e6d9e53982b6c68786ae3fd23e995ca8cad597a
More information about the pld-cvs-commit
mailing list