]>
Commit | Line | Data |
---|---|---|
943a3032 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
4 | ||
5 | Summary: PSAutoHint - standalone version of AFDKO's autohinter | |
6 | Summary(pl.UTF-8): PSAutoHint - samodzielna wersja autohintera z AFDKO | |
7 | Name: psautohint | |
8 | Version: 2.3.1 | |
1f94944d | 9 | Release: 2 |
943a3032 JB |
10 | License: Apache v2.0 |
11 | Group: Applications/Publishing | |
12 | #Source0Download: https://github.com/adobe-type-tools/psautohint/releases | |
13 | Source0: https://github.com/adobe-type-tools/psautohint/releases/download/v%{version}/%{name}-%{version}.zip | |
14 | # Source0-md5: e276cc7c7eb837fa477629edcf4d7966 | |
15 | URL: https://github.com/adobe-type-tools/psautohint | |
16 | BuildRequires: python3 >= 1:3.6 | |
ded8d88f | 17 | BuildRequires: python3-setuptools >= 1:3.6.4.0 |
943a3032 JB |
18 | BuildRequires: python3-setuptools_scm |
19 | %if %{with tests} | |
20 | # fonttools[ufo] | |
21 | BuildRequires: python3-fonttools >= 4.22.0 | |
22 | BuildRequires: python3-fs >= 2.2.0 | |
23 | BuildRequires: python3-lxml >= 4 | |
24 | BuildRequires: python3-pytest >= 5.3.0 | |
25 | %endif | |
26 | BuildRequires: unzip | |
27 | Requires: python3 >= 1:3.6 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | PSAutoHint - standalone version of AFDKO's autohinter. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | PSAutoHint - samodzielna wersja autohintera z AFDKO. | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %py3_build | |
41 | ||
42 | %if %{with tests} | |
43 | PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ | |
44 | PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \ | |
45 | %{__python3} -m pytest -v -r a tests/unittests | |
46 | %endif | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %py3_install | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc COPYING NEWS.md README.md | |
59 | %attr(755,root,root) %{_bindir}/psautohint | |
60 | %attr(755,root,root) %{_bindir}/psstemhist | |
61 | %dir %{py3_sitedir}/psautohint | |
62 | %attr(755,root,root) %{py3_sitedir}/psautohint/_psautohint.cpython-*.so | |
63 | %{py3_sitedir}/psautohint/*.py | |
64 | %{py3_sitedir}/psautohint/__pycache__ | |
65 | %{py3_sitedir}/psautohint-%{version}-py*.egg-info |