## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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-opentype-sanitizer # Upstream version is kept in sync with opentype-sanitizer # (https://github.com/khaledhosny/ots), which is normally built and bundled as # part of the Python wheel build. Similarly, we should update this package # together with the opentype-sanitizer package in the distribution, ideally as # a multi-build update (i.e., in a side tag). # # See https://github.com/googlefonts/ots-python/issues/3 for the process to # update the source for a new opentype-sanitizer release; send upstream a PR if # they are lagging. Version: 9.1.0 Release: %autorelease Summary: Python wrapper for the OpenType Sanitizer License: BSD-3-Clause URL: https://github.com/googlefonts/ots-python Source: %{url}/archive/v%{version}/ots-python-%{version}.tar.gz BuildArch: noarch Patch: python-opentype-sanitizer-8.2.1-no-bundled-executable.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: python3-devel BuildRequires: opentype-sanitizer = %{version} Requires: opentype-sanitizer = %{version} %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-opentype-sanitizer Summary: %{summary} # The package was renamed due to PyPI parity requirements. Provide a compatible # upgrade path. We must do this for three releases. Since the renaming occurred # prior to the release of Fedora 36, we can remove this after Fedora 38 reaches # end-of-life. Obsoletes: python3-ots < 8.2.1-9 Provides: python3-ots = %{version}-%{release} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides_for_importable_modules %py_provides python3-ots %description -n python3-opentype-sanitizer %{common_description} %prep %autosetup -n ots-python-%{version} -p1 %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_buildrequires -x testing %build export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' export BINDIR=/usr/bin %pyproject_install # Fix the symlink, which was dereferenced during “wheelification”: ln -svf '%{_bindir}/ots-sanitize' '%{buildroot}%{python3_sitelib}/ots/' %pyproject_save_files -l ots %check %pytest %files -n python3-opentype-sanitizer -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 9.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 9.1.0-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 9.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 9.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Benjamin A. Beasley - 9.1.0-4 - Assert that %%pyproject_files contains a license file * Fri Jul 21 2023 Fedora Release Engineering - 9.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 9.1.0-2 - Rebuilt for Python 3.12 * Wed May 31 2023 Benjamin A. Beasley - 9.1.0-1 - Update to 9.1.0 * Fri Jan 20 2023 Fedora Release Engineering - 9.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 20 2022 Benjamin A. Beasley - 9.0.0-2 - Leaf package: remove i686 support * Sat Sep 17 2022 Benjamin A. Beasley - 9.0.0-1 - Update to 9.0.0 (close RHBZ#2127188) * Wed Sep 14 2022 Benjamin A. Beasley - 8.2.2-1 - Update to 8.2.2 (close RHBZ#2126797) * Wed Sep 14 2022 Benjamin A. Beasley - 8.2.1-14 - Update License to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 8.2.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 8.2.1-12 - Rebuilt for Python 3.11 * Wed Apr 20 2022 Benjamin A. Beasley - 8.2.1-11 - Drop “forge” macros, which aren’t doing much here * Wed Apr 20 2022 Benjamin A. Beasley - 8.2.1-10 - Stop numbering patches * Wed Mar 02 2022 Benjamin A. Beasley - 8.2.1-9 - Initial package (renamed python-ots; fix RHBZ#2049273) ## END: Generated by rpmautospec