## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global forgeurl https://github.com/googlefonts/compreffor %global tag %{version} Name: python-compreffor Version: 0.5.1 %forgemeta Release: %autorelease Summary: CFF table subroutinizer for FontTools License: ASL 2.0 URL: %{forgeurl} Source0: %{forgesource} # Downstream man page Source1: compreffor.1 # Fix collections.abc import for Python 3.9 (#142) # https://github.com/googlefonts/compreffor/pull/142 Patch0: %{forgeurl}/commit/1ddd8416cd2e998d783def2ba392cea9c9fce346.patch BuildRequires: python3-devel BuildRequires: make BuildRequires: gcc-c++ # From setup.py: cython_min_version = '0.29.21' BuildRequires: %{py3_dist Cython} >= 0.29.21 %global common_description %{expand: A CFF (Compact Font Format) table subroutinizer for FontTools.} %description %{common_description} %package -n python3-compreffor Summary: %{summary} %description -n python3-compreffor %{common_description} %prep %forgeautosetup -p1 cp -vp '%{SOURCE1}' . # Allow newer fonttools: sed -r -i 's/==/>=/' requirements.txt # Remove shebangs from modules: grep -Elr '^#!' src | xargs -r sed -r -i '1{/^#!/d}' # Remove Cython-generated sources; we must ensure they are regenerated. find src/cython -type f -name '*.c*' -print -delete %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files compreffor install -t '%{buildroot}%{_mandir}/man1' -p -m 0644 -D 'compreffor.1' %check %tox %files -n python3-compreffor -f %{pyproject_files} %doc README.rst %{_bindir}/compreffor %{_mandir}/man1/compreffor.1* %changelog * Mon Sep 13 2021 Benjamin A. Beasley 0.5.1-4 - Let pyproject-rpm-macros handle the license file * Sun Sep 12 2021 Benjamin A. Beasley 0.5.1-3 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Wed Sep 08 2021 Benjamin A. Beasley 0.5.1-2 - Reduce macro indirection in the spec file * Sun Aug 08 2021 Benjamin A. Beasley 0.5.1-1 - Update to 0.5.1 (fix RHBZ#1911188, fix RHBZ#1926616) * Fri Jul 23 2021 Fedora Release Engineering - 0.5.0.post1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.0.post1-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.0.post1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.0.post1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.5.0.post1-2 - Rebuilt for Python 3.9 * Sun Mar 01 2020 Athos Ribeiro - 0.5.0.post1-1 - Update version - Use python auto-requires * Thu Jan 30 2020 Fedora Release Engineering - 0.4.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.4.6-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.4.6-10 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.4.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 01 2019 Charalampos Stratakis - 0.4.6-8 - Recythonize the sources * Sat Feb 02 2019 Fedora Release Engineering - 0.4.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.4.6-6 - Subpackage python2-compreffor has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Jul 13 2018 Fedora Release Engineering - 0.4.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.4.6-4 - Rebuilt for Python 3.7 * Sun Feb 18 2018 Athos Ribeiro - 0.4.6-3 - Include explicit BRs for gcc and gcc-c++ * Fri Feb 09 2018 Fedora Release Engineering - 0.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Oct 07 2017 Athos Ribeiro - 0.4.6-1 - Update version * Thu Aug 24 2017 Athos Ribeiro - 0.4.5-1 - Update version * Thu Aug 03 2017 Fedora Release Engineering - 0.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Mar 20 2017 Athos Ribeiro - 0.4.4-1 - Initial package