]> git.pld-linux.org Git - packages/psautohint.git/commitdiff
- new auto/th/psautohint-2.3.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 11 Dec 2021 20:33:31 +0000 (21:33 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 11 Dec 2021 20:33:31 +0000 (21:33 +0100)
psautohint.spec [new file with mode: 0644]

diff --git a/psautohint.spec b/psautohint.spec
new file mode 100644 (file)
index 0000000..04d74de
--- /dev/null
@@ -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
This page took 0.120229 seconds and 4 git commands to generate.