3 %bcond_without doc # don't build doc
4 %bcond_without tests # do not perform "make test"
6 Summary: Python module to run and analyze benchmarks
7 Summary(pl.UTF-8): Moduł Pythona do uruchamiania i analizy testów wydajności
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/pyperf/
14 Source0: https://files.pythonhosted.org/packages/source/p/pyperf/pyperf-%{version}.tar.gz
15 # Source0-md5: 7f62d3f6fc5475138791d3d883fdf4cd
16 URL: https://pypi.org/project/pyperf/
17 BuildRequires: python3-modules >= 1:3.4
18 BuildRequires: python3-setuptools
20 BuildRequires: python3-nose
21 BuildRequires: python3-psutil
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.714
26 BuildRequires: sphinx-pdg-3
28 Requires: python3-modules >= 1:3.4
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The Python pyperf module is a toolkit to write, run and analyze
36 %description -l pl.UTF-8
37 Moduł Pythona pyperf to zestaw narzędzi do tworzenia, uruchamiania i
38 analizy testów wydajności (benchmarków).
41 Summary: API documentation for Python pyperf module
42 Summary(pl.UTF-8): Dokumentacja API modułu Pythona pyperf
46 API documentation for Python pyperf module.
48 %description apidocs -l pl.UTF-8
49 Dokumentacja API modułu Pythona pyperf.
52 %setup -q -n pyperf-%{version}
59 %{__python3} -m nose pyperf/tests
63 %{__make} -C doc html \
64 SPHINXBUILD=sphinx-build-3
68 rm -rf $RPM_BUILD_ROOT
72 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pyperf/tests
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc COPYING README.rst TODO.rst
80 %attr(755,root,root) %{_bindir}/pyperf
81 %{py3_sitescriptdir}/pyperf
82 %{py3_sitescriptdir}/pyperf-%{version}-py*.egg-info
86 %defattr(644,root,root,755)
87 %doc doc/build/html/{_images,_static,*.html,*.js}