19
0

4 Commits

4 changed files with 29 additions and 12 deletions

Binary file not shown.

3
maxminddb-3.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9792b19625945dff146e2e3187f9e470b82330a912f7cea5581b8bd5af30da8b
size 199784

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Jan 29 18:11:49 UTC 2026 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Update to version 3.0.0:
* jump multiple versions, reference upstream changelog
- Clean up spec file, add workaround to keep compatibility with Leap 15.6
(new version would otherwise require newer setuptools)
-------------------------------------------------------------------
Tue Jun 17 04:35:55 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
-------------------------------------------------------------------
Wed Apr 30 07:57:16 UTC 2025 - Sebastian Wagner <sebix@sebix.at>

View File

@@ -16,16 +16,16 @@
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-maxminddb
Version: 2.6.3
Version: 3.0.0
Release: 0
Summary: Reader for the MaxMind DB format
License: Apache-2.0
URL: http://www.maxmind.com/
URL: https://www.maxmind.com/
Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
@@ -44,15 +44,19 @@ MaxMind DB is a binary file format that stores data indexed by IP address
subnets (IPv4 or IPv6).
%prep
%setup -q -n maxminddb-%{version}
sed -i '/nose/d' setup.py
%autosetup -n maxminddb-%{version}
# hack to restore compatibility with older setuptools
%if 0%{?suse_version} <= 1500
sed -i 's/^from setuptools.command.bdist_wheel/from wheel.bdist_wheel/' setup.py
%endif
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -62,6 +66,6 @@ export CFLAGS="%{optflags}"
%license LICENSE
%doc README.rst
%{python_sitearch}/maxminddb/
%{python_sitearch}/maxminddb-%{version}*-info
%{python_sitearch}/maxminddb-%{version}.dist-info
%changelog