2024-01-01 20:03:47 +00:00
|
|
|
|
Name: python-cffsubr
|
2021-11-26 12:57:12 +00:00
|
|
|
|
Version: 0.2.9.post1
|
2024-01-01 19:58:20 +00:00
|
|
|
|
Release: 9%{?dist}
|
2021-03-17 11:09:02 +00:00
|
|
|
|
Summary: Standalone CFF subroutinizer based on the AFDKO tx tool
|
|
|
|
|
|
2022-11-29 21:24:40 +00:00
|
|
|
|
# The entire source is Apache-2.0, except:
|
|
|
|
|
# - These are derived from fonts licened OFL-1.1, but are not packaged, so they
|
|
|
|
|
# do not contribute to the licenses of the binary RPMs:
|
|
|
|
|
# • tests/data/SourceSansPro-Regular.subset.ttx
|
|
|
|
|
# • tests/data/SourceSansVariable-Regular.subset.ttx
|
2021-10-26 13:49:42 +00:00
|
|
|
|
# See NOTICE.
|
2022-11-29 21:24:40 +00:00
|
|
|
|
License: Apache-2.0
|
2024-01-01 20:03:47 +00:00
|
|
|
|
URL: https://pypi.org/project/cffsubr
|
|
|
|
|
Source0: %{pypi_source cffsubr}
|
2021-10-26 13:49:42 +00:00
|
|
|
|
# Written for Fedora in groff_man(7) format based on the output of “cffsubr --help”
|
2024-01-01 20:03:47 +00:00
|
|
|
|
Source1: cffsubr.1
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
2023-11-29 13:22:46 +00:00
|
|
|
|
# Handle importlib.resources.path removal in Python 3.13
|
|
|
|
|
# https://github.com/adobe-type-tools/cffsubr/pull/24
|
|
|
|
|
Patch: https://github.com/adobe-type-tools/cffsubr/pull/24.patch
|
|
|
|
|
|
2021-03-17 11:09:02 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
# From setup_requires in setup.py:
|
|
|
|
|
BuildRequires: python3dist(setuptools-scm)
|
|
|
|
|
|
|
|
|
|
%global txbin /usr/bin/tx
|
2024-01-19 14:46:12 +00:00
|
|
|
|
# For the unbundled “tx” executable:
|
|
|
|
|
BuildRequires: adobe-afdko
|
2021-03-17 11:09:02 +00:00
|
|
|
|
BuildRequires: symlinks
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Standalone CFF subroutinizer based on the AFDKO tx tool.
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -x testing
|
|
|
|
|
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%package -n python3-cffsubr
|
2021-03-17 11:09:02 +00:00
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
2024-01-19 14:46:12 +00:00
|
|
|
|
# For the unbundled “tx” executable:
|
|
|
|
|
Requires: adobe-afdko
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%description -n python3-cffsubr
|
2021-03-17 11:09:02 +00:00
|
|
|
|
Standalone CFF subroutinizer based on the AFDKO tx tool.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%autosetup -n cffsubr-%{version} -p1
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
|
|
|
|
# Patch out setuptools-git-ls-files dependency
|
|
|
|
|
sed -r -i '/setuptools-git-ls-files/d' setup.py pyproject.toml
|
|
|
|
|
|
|
|
|
|
# Do not build the extension, which is a copy of the “tx” executable from
|
|
|
|
|
# adobe-afdko:
|
|
|
|
|
sed -r -i 's/(ext_modules=)/# \1/' setup.py
|
|
|
|
|
|
|
|
|
|
# Remove bundled adobe-afdko:
|
|
|
|
|
rm -rf external
|
|
|
|
|
|
2021-10-26 13:49:42 +00:00
|
|
|
|
cp -p '%{SOURCE1}' .
|
|
|
|
|
|
2021-03-17 11:09:02 +00:00
|
|
|
|
%build
|
2021-10-26 13:49:42 +00:00
|
|
|
|
%pyproject_wheel
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2021-10-26 13:49:42 +00:00
|
|
|
|
%pyproject_install
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%pyproject_save_files -l cffsubr
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
|
|
|
|
# Workaround to prevent a dangling symlink:
|
|
|
|
|
install -d "%{buildroot}$(dirname '%{txbin}')"
|
|
|
|
|
ln -s '%{txbin}' '%{buildroot}%{txbin}'
|
|
|
|
|
|
|
|
|
|
# Build a relative symbolic link:
|
2024-01-01 20:03:47 +00:00
|
|
|
|
ln -s '%{buildroot}%{txbin}' %{buildroot}/%{python3_sitelib}/cffsubr/tx
|
|
|
|
|
symlinks -c -o %{buildroot}/%{python3_sitelib}/cffsubr/tx
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
2024-01-01 20:03:47 +00:00
|
|
|
|
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 'cffsubr.1'
|
2021-10-26 13:49:42 +00:00
|
|
|
|
|
2021-03-17 11:09:02 +00:00
|
|
|
|
%check
|
2024-01-01 20:00:48 +00:00
|
|
|
|
%pytest
|
2021-03-17 11:09:02 +00:00
|
|
|
|
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%files -n python3-cffsubr -f %{pyproject_files}
|
2021-10-26 13:49:42 +00:00
|
|
|
|
# pyproject-rpm-macros handles the LICENSE file; verify with “rpm -qL -p …”
|
2021-03-17 11:09:02 +00:00
|
|
|
|
%doc README.md
|
2021-10-26 13:49:42 +00:00
|
|
|
|
|
|
|
|
|
# Symbolic link to the “tx” executable; we patched out building a separate copy
|
|
|
|
|
# for the Python package, so the Python build does not know about this and we
|
|
|
|
|
# must list it explicitly.
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%{python3_sitelib}/cffsubr/tx
|
2021-03-17 11:09:02 +00:00
|
|
|
|
# This was just a workaround:
|
|
|
|
|
%exclude %{txbin}
|
|
|
|
|
|
2024-01-01 20:03:47 +00:00
|
|
|
|
%{_bindir}/cffsubr
|
|
|
|
|
%{_mandir}/man1/cffsubr.1*
|
2021-10-26 13:49:42 +00:00
|
|
|
|
|
2021-03-17 11:09:02 +00:00
|
|
|
|
%changelog
|
2024-01-01 19:58:20 +00:00
|
|
|
|
* Mon Jan 01 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.9.post1-9
|
|
|
|
|
- Assert %%pyproject_files contains a license file
|
2024-01-01 20:00:48 +00:00
|
|
|
|
- Remove an obsolete conditional
|
2024-01-01 20:03:47 +00:00
|
|
|
|
- Simplify the spec file by reducing macro indirection
|
2024-01-01 19:58:20 +00:00
|
|
|
|
|
2023-07-21 08:18:33 +00:00
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9.post1-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
2023-06-19 10:39:44 +00:00
|
|
|
|
* Mon Jun 19 2023 Python Maint <python-maint@redhat.com> - 0.2.9.post1-7
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
2023-01-20 12:02:12 +00:00
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9.post1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
2022-11-29 21:24:40 +00:00
|
|
|
|
* Tue Nov 29 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.9.post1-5
|
|
|
|
|
- Update License to SPDX
|
|
|
|
|
|
2022-07-22 17:14:46 +00:00
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9.post1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
2022-06-15 10:18:33 +00:00
|
|
|
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.2.9.post1-3
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
2022-01-21 11:04:35 +00:00
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9.post1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
2021-10-26 13:49:42 +00:00
|
|
|
|
* Tue Oct 26 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.9-1
|
|
|
|
|
- Update to 0.2.9 (close RHBZ#2017405)
|
|
|
|
|
- Add a man page for the new “cffsubr” CLI entry point
|
|
|
|
|
|
2021-10-26 13:22:04 +00:00
|
|
|
|
* Tue Oct 26 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.8-5
|
|
|
|
|
- Drop python3dist(setuptools) BR because it is implied by pyproject-rpm-macros,
|
|
|
|
|
and pyproject-rpm-macros BR because it is (now) implied by python3-devel
|
2021-10-26 13:49:42 +00:00
|
|
|
|
- Use the full set of pyproject-rpm-macros
|
2021-10-26 13:22:04 +00:00
|
|
|
|
|
2021-07-23 05:34:34 +00:00
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
2021-06-04 18:24:10 +00:00
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.8-3
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
2021-03-17 11:09:02 +00:00
|
|
|
|
* Mon Mar 1 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.8-2
|
|
|
|
|
- New upstream version 0.2.8
|
|
|
|
|
- Simplify files list
|
|
|
|
|
- Patch out (missing) setuptools-git-ls-files BR; add missing setuptool-scm BR
|
|
|
|
|
- Unbundle tx executable from adobe-afdko and switch package to noarch
|
|
|
|
|
- Drop obsolete python_provide macro
|
|
|
|
|
- Use %%pytest macro to run the tests
|
|
|
|
|
- Use generated BR’s
|
|
|
|
|
|
|
|
|
|
* Mon Feb 15 2021 Rajeesh KV <rajeeshknambiar@fedoraproject.org> - 0.2.7-1
|
|
|
|
|
- Initial packaging
|