## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 %bcond tests 1 Name: python-ttfautohint-py Version: 0.6.0 Release: %autorelease Summary: Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts License: MIT # The entire source is MIT, except for test fonts that are not bundled in the # binary RPMs and do not contribute to their licenses. # # OFL-1.1, tests/data/OFL.txt # - tests/data/NotoSansMono-Regular.ttf SourceLicense: %{license} AND OFL-1.1 URL: https://github.com/fonttools/ttfautohint-py # The PyPI sdist would work perfectly well here, but using the GitHub archive # has an advantage: if upstream starts including sources included via git # submodules in src/c/{freetype2,harfbuzz,ttfautohint}/ in the sdist and we # don’t notice, we might accidentally include some questionably-licensed test # fonts in the source RPM in the future. With the GitHub archive, we can be # confident that nothing outside of the upstream source repository itself will # appear in the source archive. Source: %{url}/archive/v%{version}/ttfautohint-py-%{version}.tar.gz BuildSystem: pyproject BuildOption(install): -l ttfautohint BuildArch: noarch BuildRequires: /usr/bin/ttfautohint %if %{with tests} # See the "testing" extra, but we don’t want coverage-analysis dependencies: # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist fontTools} %endif %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-ttfautohint-py Summary: %{summary} # The ttfautohint shared library is loaded at runtime using Python’s ctypes # module, which in the end is using dlopen(). Since the shared library is not # linked into an ELF file, the automatic dependency generator cannot help us # here, and an explicit manual dependency is required. Requires: /usr/bin/ttfautohint # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides_for_importable_modules %py_provides python3-ttfautohint %description -n python3-ttfautohint-py %{common_description} %generate_buildrequires -p export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %build -p export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' %check -a %if %{with tests} %pytest -v %endif %files -n python3-ttfautohint-py -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Aug 01 2025 Benjamin A. Beasley - 0.6.0-1 - Update to 0.6.0 (close RHBZ#2385878) * Fri Jul 25 2025 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 0.5.1-4 - Rebuilt for Python 3.14 * Fri May 09 2025 Benjamin A. Beasley - 0.5.1-3 - F41+: Use the provisional pyproject declarative buildsystem * Mon Mar 17 2025 Benjamin A. Beasley - 0.5.1-2 - Replace deprecated pkg_resources; removes implicit setuptools dep. * Mon Mar 17 2025 Benjamin A. Beasley - 0.5.1-1 - Initial package (close RHBZ#2352889) ## END: Generated by rpmautospec