3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Set of objects for performing math operations on font data
8 Summary(pl.UTF-8): Zbiór obiektów do wykonywania operacji matematycznych na danych fontów
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/fontmath/
15 Source0: https://files.pythonhosted.org/packages/source/f/fontmath/fontMath-%{version}.zip
16 # Source0-md5: 86560af85a530245e456835b37994a16
17 URL: https://pypi.org/project/fontmath/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
21 BuildRequires: python-setuptools_scm
23 BuildRequires: python-fonttools >= 3.32.0
24 BuildRequires: python-pytest >= 3.0.3
28 BuildRequires: python3-modules >= 1:3.4
29 BuildRequires: python3-setuptools
30 BuildRequires: python3-setuptools_scm
32 BuildRequires: python3-fonttools >= 3.32.0
33 BuildRequires: python3-pytest >= 3.0.3
36 BuildRequires: rpm-pythonprov
37 BuildRequires: rpmbuild(macros) >= 1.714
39 Requires: python-modules >= 1:2.7
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 A collection of objects that implement fast font, glyph, etc. math.
46 %description -l pl.UTF-8
47 Zbiór obiektów implementujących szybkie operacje matematyczne na
50 %package -n python3-fontMath
51 Summary: Set of objects for performing math operations on font data
52 Summary(pl.UTF-8): Zbiór obiektów do wykonywania operacji matematycznych na danych fontów
53 Group: Libraries/Python
54 Requires: python3-modules >= 1:3.4
56 %description -n python3-fontMath
57 A collection of objects that implement fast font, glyph, etc. math.
59 %description -n python3-fontMath -l pl.UTF-8
60 Zbiór obiektów implementujących szybkie operacje matematyczne na
64 %setup -q -n fontMath-%{version}
71 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
72 %{__python} -m pytest Lib/fontMath
80 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
81 %{__python3} -m pytest Lib/fontMath
86 rm -rf $RPM_BUILD_ROOT
91 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/fontMath/test
98 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/fontMath/test
102 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc License.txt README.md
108 %{py_sitescriptdir}/fontMath
109 %{py_sitescriptdir}/fontMath-%{version}-py*.egg-info
113 %files -n python3-fontMath
114 %defattr(644,root,root,755)
115 %doc License.txt README.md
116 %{py3_sitescriptdir}/fontMath
117 %{py3_sitescriptdir}/fontMath-%{version}-py*.egg-info