From: Jakub Bogusz Date: Sat, 11 Dec 2021 20:33:31 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/psautohint-2.3.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=943a3032445781f758ab72869a449d05ba56f587;p=packages%2Fpsautohint.git - new --- 943a3032445781f758ab72869a449d05ba56f587 diff --git a/psautohint.spec b/psautohint.spec new file mode 100644 index 0000000..04d74de --- /dev/null +++ b/psautohint.spec @@ -0,0 +1,65 @@ +# +# Conditional build: +%bcond_without tests # unit tests + +Summary: PSAutoHint - standalone version of AFDKO's autohinter +Summary(pl.UTF-8): PSAutoHint - samodzielna wersja autohintera z AFDKO +Name: psautohint +Version: 2.3.1 +Release: 1 +License: Apache v2.0 +Group: Applications/Publishing +#Source0Download: https://github.com/adobe-type-tools/psautohint/releases +Source0: https://github.com/adobe-type-tools/psautohint/releases/download/v%{version}/%{name}-%{version}.zip +# Source0-md5: e276cc7c7eb837fa477629edcf4d7966 +URL: https://github.com/adobe-type-tools/psautohint +BuildRequires: python3 >= 1:3.6 +BuildRequires: python3-setuptools >= 3.6.4.0 +BuildRequires: python3-setuptools_scm +%if %{with tests} +# fonttools[ufo] +BuildRequires: python3-fonttools >= 4.22.0 +BuildRequires: python3-fs >= 2.2.0 +BuildRequires: python3-lxml >= 4 +BuildRequires: python3-pytest >= 5.3.0 +%endif +BuildRequires: unzip +Requires: python3 >= 1:3.6 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PSAutoHint - standalone version of AFDKO's autohinter. + +%description -l pl.UTF-8 +PSAutoHint - samodzielna wersja autohintera z AFDKO. + +%prep +%setup -q + +%build +%py3_build + +%if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \ +%{__python3} -m pytest -v -r a tests/unittests +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING NEWS.md README.md +%attr(755,root,root) %{_bindir}/psautohint +%attr(755,root,root) %{_bindir}/psstemhist +%dir %{py3_sitedir}/psautohint +%attr(755,root,root) %{py3_sitedir}/psautohint/_psautohint.cpython-*.so +%{py3_sitedir}/psautohint/*.py +%{py3_sitedir}/psautohint/__pycache__ +%{py3_sitedir}/psautohint-%{version}-py*.egg-info