## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name maxminddb %global desc \ This is a Python module for reading MaxMind DB files. The module includes both\ a pure Python reader and an optional C extension. MaxMind DB is a binary file\ format that stores data indexed by IP address subnets (IPv4 or IPv6). Name: python-%{pypi_name} Version: 2.6.2 Release: %autorelease Summary: Reader for the MaxMind DB format # SPDX License: Apache-2.0 URL: https://www.maxmind.com/ Source0: %{pypi_source} BuildRequires: gcc BuildRequires: libmaxminddb-devel BuildRequires: python3-devel BuildRequires: python3-pytest %description %{desc} %package doc Summary: Documentation for %{pypi_name} %description doc This package provides the documentation for %{pypi_name}. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{desc} %prep %autosetup -p1 -n %{pypi_name}-%{version} # Remove bundled libmaxminddb rm -r extension/libmaxminddb %generate_buildrequires %pyproject_buildrequires -r %build export MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB=1 %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pytest %files doc %doc docs/* %license LICENSE %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %license LICENSE %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 11 2024 Python Maint - 2.6.2-2 - Rebuilt for Python 3.13 * Mon Jun 10 2024 Lumir Balhar - 2.6.2-1 - Update to 2.6.2 (rhbz#2291189) * Fri Jun 07 2024 Python Maint - 2.6.1-2 - Rebuilt for Python 3.13 * Mon Apr 15 2024 Lumir Balhar - 2.6.1-1 - Update to 2.6.1 (rhbz#2274754) * Tue Mar 19 2024 Lumir Balhar - 2.6.0-1 - Update to 2.6.0 (rhbz#2270354) * Fri Jan 26 2024 Fedora Release Engineering - 2.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 10 2024 Lumir Balhar - 2.5.2-1 - Update to 2.5.2 (rhbz#2257529) * Fri Nov 10 2023 Lumir Balhar - 2.5.1-1 - Update to 2.5.1 (rhbz#2248764) * Thu Oct 26 2023 Lumir Balhar - 2.4.0-4 - Fix build with Python 3.13 * Fri Jul 21 2023 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Lumír Balhar - 2.4.0-1 - Update to 2.4.0 (rhbz#2218303) * Tue Jun 13 2023 Python Maint - 2.3.0-2 - Rebuilt for Python 3.12 * Mon May 15 2023 Lumír Balhar - 2.3.0-1 - Update to 2.3.0 (rhbz#2196686) - SPDX License * Fri Jan 20 2023 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.2.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Oct 05 2021 Lumír Balhar - 2.2.0-1 - Update to 2.2.0 Resolves: rhbz#2007738 * Mon Sep 20 2021 Lumír Balhar - 2.1.0-1 - Update to 2.1.0 Resolves: rhbz#2005619 * Fri Jul 23 2021 Fedora Release Engineering - 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.0.2-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 22 2020 Lumír Balhar - 2.0.2-1 - Update to 2.0.2 (#1859349) * Wed Jul 29 2020 Fedora Release Engineering - 1.5.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.5.4-2 - Rebuilt for Python 3.9 * Thu May 07 2020 Lumír Balhar - 1.5.4-1 - Update to 1.5.4 (#1831900) * Tue May 05 2020 Lumír Balhar - 1.5.3-1 - Update to 1.5.3 (#1831244) * Tue Jan 28 2020 Lumír Balhar - 1.5.2-1 - New upstream version 1.5.2 (#1785719) * Thu Oct 03 2019 Miro Hrončok - 1.5.1-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Wed Oct 02 2019 Lumír Balhar - 1.5.1-1 - New upstream version 1.5.1 (bz#1756523) * Wed Oct 02 2019 Lumír Balhar - 1.5.0-1 - New upstream version 1.5.0 (bz#1756523) * Mon Aug 19 2019 Miro Hrončok - 1.4.1-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Aug 12 2018 Igor Gnatenko - 1.4.1-3 - Drop python2 subpackage * Sat Jul 14 2018 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 22 2018 Carl George - 1.4.1-1 - Latest upstream * Tue Jun 19 2018 Miro Hrončok - 1.4.0-3 - Rebuilt for Python 3.7 * Tue Jun 12 2018 Carl George - 1.4.0-2 - EPEL compatibility * Mon May 28 2018 Lumir Balhar - 1.4.0-1 - New upstream version * Fri Feb 09 2018 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Dec 11 2017 Iryna Shcherbina - 1.3.0-4 - Fix ambiguous Python 2 dependency declarations (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Aug 03 2017 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Mar 14 2017 Fedora Release Monitoring - 1.3.0-1 - Update to 1.3.0 (#1431895) * Sat Feb 11 2017 Fedora Release Engineering - 1.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 19 2017 Lumir Balhar - 1.2.3-1 - New upstream version. * Mon Dec 19 2016 Miro Hrončok - 1.2.2-2 - Rebuild for Python 3.6 * Tue Nov 22 2016 Lumir Balhar - 1.2.2-1 - New upstream version. * Tue Jul 19 2016 Fedora Release Engineering - 1.2.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Jun 15 2016 Lumir Balhar - 1.2.1-1 - Initial package. ## END: Generated by rpmautospec