[packages/python-maxminddb] - updated to 1.5.4 (the last version for python 2.7)

qboosh qboosh at pld-linux.org
Tue Feb 17 22:25:16 CET 2026


commit 4c2d001598a46bf8b261355cf2df58371edd26e0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Feb 17 22:25:15 2026 +0100

    - updated to 1.5.4 (the last version for python 2.7)

 python-maxminddb.spec | 86 ++++++++++++++++++++++++++++++---------------------
 1 file changed, 51 insertions(+), 35 deletions(-)
---
diff --git a/python-maxminddb.spec b/python-maxminddb.spec
index 3676b03..18c90b4 100644
--- a/python-maxminddb.spec
+++ b/python-maxminddb.spec
@@ -1,33 +1,40 @@
 #
 # 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
 %bcond_without	python2 # CPython 2.x module
-%bcond_with		python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module
 
 %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:		python-%{module}
-Version:	1.1.1
-Release:	17
-License:	APL
+# keep 1.x here for python2 support
+Version:	1.5.4
+Release:	1
+License:	Apache v2.0
 Group:		Libraries/Python
-Source0:	https://pypi.python.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
-# Source0-md5:	70a6d2a4b70f08e5b509fbb83f239795
-URL:		https://pypi.python.org/pypi/maxminddb
+Source0:	https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
+# Source0-md5:	a34a3947da62b710f81a10978d6944a3
+URL:		https://pypi.org/project/maxminddb/
 BuildRequires:	libmaxminddb-devel
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.710
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-devel
-BuildRequires:	python-distribute
+BuildRequires:	python-devel >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-nose
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-modules
+BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pynose
+%endif
 %endif
-Requires:	python-ipaddr
-Requires:	python-modules
+Requires:	python-modules >= 1:2.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,10 +43,17 @@ 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 -n python3-%{module}
 Summary:	Python extension for reading the MaxMind DB format
+Summary(pl.UTF-8):	Rozszerzenie Pythona do odczytu formatu bazy danych MaxMind
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.5
 
 %description -n python3-%{module}
 This is a Python module for reading MaxMind DB files.
@@ -47,38 +61,42 @@ 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 -n python3-%{module} -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
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+nosetests-%{py_ver} tests
+%endif
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%py3_build %{?with_tests:test}
-%endif
+%py3_build
 
-%if %{with doc}
-cd docs
-%{__make} -j1 html
-rm -rf _build/html/_sources
+%if %{with tests}
+nosetests-%{py3_ver} tests
+%endif
 %endif
 
 %install
@@ -104,10 +122,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{py_sitedir}/maxminddb
 %{py_sitedir}/maxminddb/*.py[co]
 %attr(755,root,root) %{py_sitedir}/maxminddb/*.so
-%if "%{py_ver}" > "2.4"
 %{py_sitedir}/%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
@@ -120,5 +136,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc docs/html/*
+%doc docs/html/{_static,*.html,*.js}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-maxminddb.git/commitdiff/4c2d001598a46bf8b261355cf2df58371edd26e0



More information about the pld-cvs-commit mailing list