[packages/psautohint] - new

qboosh qboosh at pld-linux.org
Sat Dec 11 21:33:08 CET 2021


commit 943a3032445781f758ab72869a449d05ba56f587
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 11 21:33:31 2021 +0100

    - new

 psautohint.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/psautohint.git/commitdiff/943a3032445781f758ab72869a449d05ba56f587



More information about the pld-cvs-commit mailing list