## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 Name: python-compreffor Version: 0.5.6 Release: %autorelease Summary: CFF table subroutinizer for FontTools License: Apache-2.0 URL: https://github.com/googlefonts/compreffor Source0: %{url}/archive/%{version}/compreffor-%{version}.tar.gz # Man page written by hand for Fedora in groff_man(7) format using the # command’s --help output Source1: compreffor.1 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: python3-devel BuildRequires: make BuildRequires: gcc-c++ # From setup.py: cython_min_version = '3.0.11' BuildRequires: %{py3_dist cython} >= 3.0.11 %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 %autosetup -n compreffor-%{version} # Drop the setuptools_git_ls_files dependency # # This dependency makes sense upstream, but we do not need it (and it is # not packaged) in Fedora. sed -r -i '/setuptools_git_ls_files/d' pyproject.toml sed -r -i 's/, "setuptools_git_ls_files"//' setup.py # Remove shebangs from non-script sources. The find-then-modify pattern # preserves mtimes on sources that did not need to be modified. find 'src' -type f -name '*.py' \ -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' | 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 # Do not use requirements.txt for tox dependencies, as it contains (only) an # overly-strict pinned fonttools version. sed -r -i '/^[[:blank:]]*-rrequirements.txt[[:blank:]]*/d' 'tox.ini' %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 compreffor install -t '%{buildroot}%{_mandir}/man1' -p -m 0644 -D '%{SOURCE1}' %check %tox %files -n python3-compreffor -f %{pyproject_files} %doc README.rst %{_bindir}/compreffor %{_mandir}/man1/compreffor.1* %changelog ## START: Generated by rpmautospec * Wed Oct 23 2024 Benjamin A. Beasley - 0.5.6-1 - Update to 0.5.6 (close RHBZ#2321262) * Fri Jul 19 2024 Fedora Release Engineering - 0.5.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.5.5-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Dec 17 2023 Benjamin A. Beasley - 0.5.5-2 - Assert that %%pyproject_files contains a license file * Sat Sep 09 2023 Benjamin A. Beasley - 0.5.5-1 - Update to 0.5.5 (close RHBZ#2238147) * Mon Jul 24 2023 Benjamin A. Beasley - 0.5.4-1 - Update to 0.5.4 (close RHBZ#2224704) * Thu Jul 20 2023 Benjamin A. Beasley - 0.5.3-7 - Patch for Cython 3 * Thu Jul 20 2023 Benjamin A. Beasley - 0.5.3-6 - Replace deprecated license_file with license_files in setup.cfg * Thu Jul 20 2023 Benjamin A. Beasley - 0.5.3-5 - Use the Cython compat package until Cython 3 is supported * Mon Jun 19 2023 Python Maint - 0.5.3-4 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 21 2022 Benjamin A. Beasley - 0.5.3-2 - Leaf package: remove i686 support * Thu Nov 17 2022 Benjamin A. Beasley - 0.5.3-1 - Update to 0.5.3 (close RHBZ#2143463) * Fri Oct 21 2022 Benjamin A. Beasley - 0.5.2-3 - Update License to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jul 17 2022 Benjamin A. Beasley - 0.5.2-1 - Update to 0.5.2 (close RHBZ#2096532) * Wed Jun 15 2022 Python Maint - 0.5.1.post1-6 - Rebuilt for Python 3.11 * Sat Apr 16 2022 Benjamin A. Beasley - 0.5.1.post1-5 - Drop “forge” macros since they aren’t doing much here * Sat Apr 16 2022 Benjamin A. Beasley - 0.5.1.post1-4 - Install the man page directly * Sat Apr 16 2022 Benjamin A. Beasley - 0.5.1.post1-3 - Stop numbering patches * Fri Jan 21 2022 Fedora Release Engineering - 0.5.1.post1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 02 2021 Benjamin A. Beasley - 0.5.1.post1-1 - Update to 0.5.1.post1 (close RHBZ#2028331) * Mon Nov 22 2021 Benjamin A. Beasley - 0.5.1-5 - Minor spec file style changes * 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 ## END: Generated by rpmautospec