## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## 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 srcname mapnik %global commitdate 20240614 %global commit 248003c9da0de1ec7996cebd007c982f9875f2a3 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global testcommit 41c4ceeb0be4e5e699cdd50bd808054a826c922b %global visualcommit 7dfd4568d6181da8be3543c8b7522b596a79b774 %global mapnik_version 4.0.0 Name: python-%{srcname} Version: 3.0.23^%{commitdate}git%{shortcommit} Release: %autorelease Summary: Python bindings for Mapnik License: LGPL-2.1-only URL: https://github.com/mapnik/python-mapnik Source0: https://github.com/mapnik/python-mapnik/archive/%{commit}/%{name}-%{commit}.tar.gz Source1: https://github.com/mapnik/test-data/archive/%{testcommit}/test-data-%{testcommit}.tar.gz Source2: https://github.com/mapnik/test-data-visual/archive/%{visualcommit}/test-data-visual-%{visualcommit}.tar.gz # Stop setup.py trying to fiddle with compiler flags Patch: python-mapnik-flags.patch # Allow more variation in comparisons Patch: python-mapnik-precision.patch # Use pkg-config instead of mapnik-config Patch: python-mapnik-pkgconfig.patch # Fix for mapnik 4.0.0 compatiblity Patch: python-mapnik-mapnik4.patch # Update test results for https://github.com/mapnik/mapnik/pull/4468 Patch: python-mapnik-split-bbox.patch # Exclude big endian architectures as mapnik does not support them # https://github.com/mapnik/mapnik/issues/2313 # https://bugzilla.redhat.com/show_bug.cgi?id=1395208 ExcludeArch: ppc ppc64 s390 s390x BuildRequires: gcc-c++ BuildRequires: sqlite-devel BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nose BuildRequires: python3-PyPDF2 BuildRequires: python3-pybind11 pybind11-devel BuildRequires: python3-pytest BuildRequires: mapnik-devel >= %{mapnik_version} BuildRequires: mapnik-static >= %{mapnik_version} BuildRequires: mapnik-utils >= %{mapnik_version} BuildRequires: git-core BuildRequires: boost-devel boost-python3-devel BuildRequires: python3-cairo-devel BuildRequires: postgresql-test-rpm-macros postgis %description %{summary}. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{summary}. %prep %autosetup -S git -p 1 -n %{name}-%{commit} tar --directory=test/data --strip-components=1 --gunzip --extract --file=%{SOURCE1} tar --directory=test/data-visual --strip-components=1 --gunzip --extract --file=%{SOURCE2} %build export PYCAIRO=true %py3_build %install %py3_install %check # start a postgres instance for the tests to use PGTESTS_LOCALE="C.UTF-8" %postgresql_tests_run createdb template_postgis psql -c "CREATE EXTENSION postgis" template_postgis # run the tests PGHOST="$PWD" LANG="C.UTF-8" %pytest test/python_tests %files -n python3-%{srcname} %doc README.md AUTHORS.md CHANGELOG.md CONTRIBUTING.md %license COPYING %{python3_sitearch}/* %changelog ## START: Generated by rpmautospec * Wed Jul 31 2024 Tom Hughes - 3.0.23^20240614git248003c-3 - Rebuild for mapnik 4.0.1 * Fri Jul 19 2024 Fedora Release Engineering - 3.0.23^20240614git248003c-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jul 06 2024 Tom Hughes - 3.0.23^20240614git248003c-1 - Update to new upstream snapshot * Sat Jun 08 2024 Python Maint - 3.0.23-30.20200224git7da019c - Rebuilt for Python 3.13 * Thu Feb 01 2024 Pete Walter - 3.0.23-29.20200224git7da019c - Rebuild for ICU 74 * Fri Jan 26 2024 Fedora Release Engineering - 3.0.23-28.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.0.23-27.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.0.23-26.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 16 2023 František Zatloukal - 3.0.23-25.20200224git7da019c - Rebuilt for ICU 73.2 * Tue Jul 11 2023 František Zatloukal - 3.0.23-24.20200224git7da019c - Rebuilt for ICU 73.2 * Mon Feb 20 2023 Jonathan Wakely - 3.0.23-23.20200224git7da019c - Rebuilt for Boost 1.81 * Fri Jan 20 2023 Fedora Release Engineering - 3.0.23-22.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Dec 31 2022 Pete Walter - 3.0.23-21.20200224git7da019c - Rebuild for ICU 72 * Mon Aug 01 2022 Frantisek Zatloukal - 3.0.23-20.20200224git7da019c - Rebuilt for ICU 71.1 * Fri Jul 22 2022 Fedora Release Engineering - 3.0.23-19.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.0.23-18.20200224git7da019c - Rebuilt for Python 3.11 * Wed May 04 2022 Thomas Rodgers - 3.0.23-17.20200224git7da019c - Rebuilt for Boost 1.78 * Fri Jan 21 2022 Fedora Release Engineering - 3.0.23-16.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 07 2021 Jonathan Wakely - 3.0.23-15.20200224git7da019c - Rebuilt for Boost 1.76 * Thu Jul 29 2021 Tom Hughes - 3.0.23-13.20200224git%(c=%{commit}; echo ${c:0:7})%{?dist} - Add upstream patch to support new proj API * Fri Jul 23 2021 Fedora Release Engineering - 3.0.23-13.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.0.23-12.20200224git7da019c - Rebuilt for Python 3.10 * Thu May 20 2021 Pete Walter - 3.0.23-11.20200224git7da019c - Rebuild for ICU 69 * Wed Jan 27 2021 Fedora Release Engineering - 3.0.23-10.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jonathan Wakely - 3.0.23-9.20200224git7da019c - Rebuilt for Boost 1.75 * Sat Jan 9 2021 Tom Hughes - 3.0.23-8.20200224git7da019c - Rebuild for mapnik 3.1.0 * Mon Nov 23 2020 Tom Hughes - 3.0.23-7.20200224git7da019c - Add patch for python 3.10 compatibility * Mon Oct 5 2020 Tom Hughes - 3.0.23-6.20200224git7da019c - Require setuptools * Wed Jul 29 2020 Fedora Release Engineering - 3.0.23-5.20200224git7da019c - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 2 2020 Tom Hughes - 3.0.23-4.20200224git7da019c - Rebuilt for Boost 1.73 * Tue May 26 2020 Miro Hrončok - 3.0.23-3.20200224git7da019c - Rebuilt for Python 3.9 * Sat May 16 2020 Pete Walter - 3.0.23-2.20200224git7da019c - Rebuild for ICU 67 * Tue Mar 3 2020 Tom Hughes - 3.0.23-1.20200224git7da019c - Update to new upstream snapshot * Thu Jan 30 2020 Fedora Release Engineering - 0.1-50.20180723git588fc90 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.1-49.20180723git588fc90 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.1-48.20180723git588fc90 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1-47.20180723git588fc90 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 24 2019 Tom Hughes - 0.1-46.20180723git588fc90 - Update to new shapshot - Fix various python 3.8 warnings * Tue Feb 5 2019 Tom Hughes - 0.1-45.20180411gitfe47aa1 - Rebuilt for proj 5 * Sat Feb 02 2019 Fedora Release Engineering - 0.1-44.20180411gitfe47aa1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Jan 27 2019 Tom Hughes - 0.1-43.20180411gitfe47aa1 - Rebuilt for Boost 1.69 * Tue Nov 6 2018 Tom Hughes - 0.1-42.20180411gitfe47aa1 - Replace en_US.UTF-8 with C.UTF-8 * Mon Sep 17 2018 Tom Hughes - 0.1-41.20180411gitfe47aa1 - Drop python2 subpackage * Tue Aug 28 2018 Tom Hughes - 0.1-40.20180411gitfe47aa1 - Use new postgres test macro * Sat Jul 14 2018 Fedora Release Engineering - 0.1-39.20180411gitfe47aa1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Pete Walter - 0.1-38.20180411gitfe47aa1 - Rebuild for ICU 62 * Tue Jun 19 2018 Miro Hrončok - 0.1-37.20180411gitfe47aa1 - Rebuilt for Python 3.7 * Mon Apr 30 2018 Pete Walter - 0.1-36.20180411gitfe47aa1 - Rebuild for ICU 61.1 * Sat Apr 28 2018 Tom Hughes - 0.1-35.20180411gitfe47aa1 - Update to new snapshot * Fri Apr 27 2018 Tom Hughes - 0.1-34.20170614git1635afe - Update boost-python and pycairo dependencies * Sun Apr 22 2018 Tom Hughes - 0.1-33.20170614git1635afe - Rebuild against mapnik 3.0.20 * Sun Apr 22 2018 Tom Hughes - 0.1-32.20170614git1635afe - Rebuild against mapnik 3.0.20 * Tue Mar 6 2018 Tom Hughes - 0.1-31.20170614git1635afe - Rebuild against mapnik 3.0.19 * Sun Feb 18 2018 Tom Hughes - 0.1-30.20170614git1635afe - Require gcc-c++ * Fri Feb 09 2018 Fedora Release Engineering - 0.1-29.20170614git1635afe - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 28 2018 Tom Hughes - 0.1-28.20170614git1635afe - Rebuild against mapnik 3.0.18 * Tue Jan 23 2018 Jonathan Wakely - 0.1-27.20170614git1635afe - Rebuilt for Boost 1.66 * Thu Nov 30 2017 Pete Walter - 0.1-26.20170614git1635afe - Rebuild for ICU 60.1 * Thu Nov 30 2017 Tom Hughes - 0.1-25.20170614git1635afe - Rebuild against mapnik 3.0.17 * Tue Nov 21 2017 Tom Hughes - 0.1-24.20170614git1635afe - Rebuild against mapnik 3.0.16 * Thu Aug 10 2017 Tom Hughes - 0.1-23.20170614git1635afe - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.1-22.20170614git1635afe - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.1-21.20170614git1635afe - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 21 2017 Kalev Lember - 0.1-20.20170614git1635afe - Rebuilt for Boost 1.64 * Fri Jun 16 2017 Tom Hughes - 0.1-19.20170614git1635afe - Rebuild against mapnik 3.0.15 * Wed Jun 14 2017 Tom Hughes - 0.1-18.20170614git1635afe - Update to new snapshot - Rebuild against mapnik 3.0.14 * Mon May 15 2017 Fedora Release Engineering - 0.1-17.20170214git8139e5c - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Thu May 4 2017 Tom Hughes - 0.1-16.20170214git8139e5c - Rebuild for ARM ABI fix * Tue Feb 14 2017 Tom Hughes - 0.1-15.20170214git8139e5c - Update to new snapshot - Rebuild against current mapnik * Sat Feb 11 2017 Fedora Release Engineering - 0.1-14.20160909git541fd96 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Sandro Mani - 0.1-13.20160909git541fd96 - Rebuild (libwebp) * Wed Jan 25 2017 Tom Hughes - 0.1-12.20160909git541fd96 - Rebuild for proj 4.9.3 * Mon Dec 19 2016 Miro Hrončok - 0.1-11.20160909git541fd96 - Rebuild for Python 3.6 * Wed Nov 16 2016 Tom Hughes - 0.1-10.20160909git541fd96 - Exclude big endian architectures as mapnik does not support them * Fri Sep 9 2016 Tom Hughes - 0.1-9.20160909git541fd96 - Update to new snapshot - Rebuild against current mapnik * Tue Jul 26 2016 Tom Hughes - 0.1-8.20160202git1cb6851 - Update to new snapshot - Rebuild against current mapnik * Tue Jul 19 2016 Fedora Release Engineering - 0.1-7.20151209gitdb7c1fd - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.1-6.20151209gitdb7c1fd - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 24 2016 Tom Hughes - 0.1-5.20151209gitdb7c1fd - Update to new snapshot - Patch some boost 1.60.0 issues * Fri Jan 22 2016 Tom Hughes - 0.1-5.20151209gitf81d5f8 - Rebuild for boost 1.60.0 * Wed Dec 9 2015 Tom Hughes - 0.1-4.20151209gitf81d5f8 - Update to new snapshot with license fix - Bump epoch on mapnik-python provide - Patch out setting of rpath - Update to latest test data * Sun Dec 6 2015 Tom Hughes - 0.1-3.20151127gitfae6388 - Update to new upstream snapshot * Wed Dec 2 2015 Tom Hughes - 0.1-2.20151125gitff364e1 - Provide a postgres instance for the tests - Enable cairo support * Mon Nov 30 2015 Tom Hughes - 0.1-1.20151125gitff364e1 - Rebuild against mapnik 3.0.9 * Wed Nov 25 2015 Tom Hughes - 0-0.1.20151125gitff364e1 - Initial build ## END: Generated by rpmautospec