## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 freetype-py Name: python-freetype Version: 2.5.1 Release: %autorelease Summary: Python binding for the freetype library License: BSD-3-Clause URL: https://github.com/rougier/freetype-py Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: freetype %description Freetype Python provides bindings for the FreeType library. Only the high-level API is bound. %package -n python3-freetype Summary: %{summary} %py_provides python3-freetype %description -n python3-freetype %{description} %prep %autosetup -n %{pypi_name}-%{version} %py3_shebang_fix freetype/*.py %py3_shebang_fix examples/*.py sed -i 's/"setuptools_scm\[toml\]>=3.4",//' pyproject.toml sed -i 's/"certifi",//' pyproject.toml sed -i 's/"cmake"//' pyproject.toml %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires -t %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files -l freetype %check %tox %files -n python3-freetype -f %{pyproject_files} %doc examples README.rst %changelog ## START: Generated by rpmautospec * Fri Nov 01 2024 Miro Hrončok - 2.5.1-2 - Generate proper dependencies for %%tox instead of listing them * Tue Sep 03 2024 Felix Wang - 2.5.1-1 - 2.5.1; add packit file * Fri Jul 19 2024 Fedora Release Engineering - 2.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 2.4.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 topazus - 2.4.0-1 - update to 2.4.0; switch to use pyproject related macros * Fri Jul 21 2023 Fedora Release Engineering - 2.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 2.3.0-4 - Rebuilt for Python 3.12 * Thu Apr 06 2023 topazus - 2.3.0-3 - fix dependencies * Thu Apr 06 2023 topazus - 2.3.0-2 - Fix for update to 2.3.0 * Fri Jan 20 2023 Fedora Release Engineering - 2.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.2.0-10 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.2.0-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 25 2020 Andy Mender - 2.2.0-5 - Remove patch (fixed upstream and not needed in Fedora 33+) * Tue Nov 24 2020 Andy Mender - 2.2.0-4 - Remove explicit call to python dependency generator (on by default) - Switch Source0 to PyPi - Add patch for setuptools_scm with toml - Use %%py_provides macro - Correctly enable tests via tox - Clean up SPEC file * Sat Aug 01 2020 Fedora Release Engineering - 2.2.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jul 11 2020 Parag Nemade - 2.2.0-1 - Update to 2.2.0 version (#1855370) * Tue May 26 2020 Miro Hrončok - 2.0-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Sep 17 2018 Parag Nemade - 2.0-2 - dropped python2 subpackage * Tue Jul 03 2018 Parag Nemade - 2.0-1 - Update to 2.0 version (#1595976) * Tue Jun 19 2018 Miro Hrončok - 1.2.1-3 - Rebuilt for Python 3.7 * Mon Mar 26 2018 Iryna Shcherbina - 1.2.1-2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Tue Feb 27 2018 Parag Nemade - 1.2.1-1 - Update to 1.2.1 version (#1545641) - Upstream keeps mistaking for generating egg-info, I have to adjust here * Fri Feb 09 2018 Fedora Release Engineering - 1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 01 2017 Parag Nemade - 1.1-1 - Update to 1.1 version * Thu Jul 27 2017 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.2-2 - Rebuild for Python 3.6 * Sat Sep 03 2016 Parag Nemade - 1.0.2-1 - Update to 1.0.2 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.1-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Feb 12 2015 Parag Nemade - 1.0.1-1 - update to 1.0.1 * Wed Nov 05 2014 Parag Nemade - 0.5.1-1 - update to 0.5.1 - Don't use Pypi as source URL as it contains wrong 1.0 tarball - remove the removal of line 15 from setup.py as no data_files now * Sun Nov 02 2014 Parag Nemade - 0.4.2-3 - enable python3 subpackage * Fri Oct 24 2014 Parag Nemade - 0.4.2-2 - License is BSD not MIT * Mon Sep 22 2014 Parag Nemade - 0.4.2-1 - Initial packaging ## END: Generated by rpmautospec