]> git.pld-linux.org Git - packages/psautohint.git/blame - psautohint.spec
rebuild with python 3.10
[packages/psautohint.git] / psautohint.spec
CommitLineData
943a3032
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
5Summary: PSAutoHint - standalone version of AFDKO's autohinter
6Summary(pl.UTF-8): PSAutoHint - samodzielna wersja autohintera z AFDKO
7Name: psautohint
8Version: 2.3.1
1f94944d 9Release: 2
943a3032
JB
10License: Apache v2.0
11Group: Applications/Publishing
12#Source0Download: https://github.com/adobe-type-tools/psautohint/releases
13Source0: https://github.com/adobe-type-tools/psautohint/releases/download/v%{version}/%{name}-%{version}.zip
14# Source0-md5: e276cc7c7eb837fa477629edcf4d7966
15URL: https://github.com/adobe-type-tools/psautohint
16BuildRequires: python3 >= 1:3.6
ded8d88f 17BuildRequires: python3-setuptools >= 1:3.6.4.0
943a3032
JB
18BuildRequires: python3-setuptools_scm
19%if %{with tests}
20# fonttools[ufo]
21BuildRequires: python3-fonttools >= 4.22.0
22BuildRequires: python3-fs >= 2.2.0
23BuildRequires: python3-lxml >= 4
24BuildRequires: python3-pytest >= 5.3.0
25%endif
26BuildRequires: unzip
27Requires: python3 >= 1:3.6
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31PSAutoHint - standalone version of AFDKO's autohinter.
32
33%description -l pl.UTF-8
34PSAutoHint - samodzielna wersja autohintera z AFDKO.
35
36%prep
37%setup -q
38
39%build
40%py3_build
41
42%if %{with tests}
43PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
44PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
45%{__python3} -m pytest -v -r a tests/unittests
46%endif
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%py3_install
52
53%clean
54rm -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
This page took 0.058706 seconds and 4 git commands to generate.