# Deprecated, as python3 setup.py will fail, see afdko.md %global pypi_name afdko %global common_desc \ Adobe Font Development Kit for OpenType (AFDKO) \ The AFDKO is a set of tools for building OpenType font files \ from PostScript and TrueType font data. Name: afdko Version: 3.0.1 Release: 1%{?dist} Summary: Adobe Font Development Kit for OpenType License: ASL 2.0 URL: https://github.com/adobe-type-tools/afdko Source0: https://github.com/adobe-type-tools/afdko/releases/download/%{version}/%{name}-%{version}.tar.gz Requires: python3-afdko Requires: python3-setuptools BuildRequires: python3-devel %description %{common_desc} %package -n python3-afdko Summary: Adobe Font Development Kit for OpenType %description -n python3-afdko %{common_desc} %prep %autosetup -c mv %{name}-%{version} python3 %build pushd python3 CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build popd %install pushd python3 %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT popd %check pushd python3 %{__python3} setup.py test popd %files %files -n python3-afdko %license LICENSE.md %doc README.md NEWS.md # For noarch packages: sitelib %{python3_sitelib}/* # For arch-specific packages: sitearch %{python3_sitearch}/* %changelog * Fri Dec 13 2019 Peng Wu - Initial Version