3 %bcond_without doc # Sphinx documentation
5 Summary: Hamcrest framework for matcher objects
6 Summary(pl.UTF-8): Szkielet Hamcrest do obiektów dopasowujących
7 Name: python3-pyhamcrest
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/pyhamcrest/
13 Source0: https://files.pythonhosted.org/packages/source/p/pyhamcrest/PyHamcrest-%{version}.tar.gz
14 # Source0-md5: 7a086f0b067f8d38958ec32f054559b4
15 URL: https://pypi.org/project/PyHamcrest/
16 BuildRequires: python3-modules >= 1:3.5
17 BuildRequires: python3-setuptools
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python3-sphinx_rtd_theme
22 BuildRequires: sphinx-pdg-3
24 Requires: python3-modules >= 1:3.5
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 PyHamcrest is a framework for writing matcher objects, allowing you to
30 declaratively define "match" rules. There are a number of situations
31 where matchers are invaluable, such as UI validation, or data
32 filtering, but it is in the area of writing flexible tests that
33 matchers are most commonly used.
35 %description -l pl.UTF-8
36 PyHamcrest to szkielet do pisania obiektów dopasowujących,
37 pozwalających deklaratywnie definiować reguły dopasowań. Jest wiele
38 sytuacji, gdzie dopasowywanie jest bezcenne, np. sprawdzanie
39 poprawności w interfejsie użytkownika, filtrowanie danych, ale
40 najczęściej jest przydatne w obszarze pisania elastycznych testów.
43 Summary: API documentation for Python pyhamcrest module
44 Summary(pl.UTF-8): Dokumentacja API modułu Pythona pyhamcrest
48 API documentation for Python pyhamcrest module.
50 %description apidocs -l pl.UTF-8
51 Dokumentacja API modułu Pythona pyhamcrest.
54 %setup -q -n PyHamcrest-%{version}
60 PYTHONPATH=$(pwd)/src \
61 %{__make} -C doc html \
62 SPHINXBUILD=sphinx-build-3
66 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-pyhamcrest-%{version}
71 cp -a examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-pyhamcrest-%{version}
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc CHANGES.txt LICENSE.txt README.rst
79 %{py3_sitescriptdir}/hamcrest
80 %{py3_sitescriptdir}/PyHamcrest-%{version}-py*.egg-info
81 %{_examplesdir}/python3-pyhamcrest-%{version}
85 %defattr(644,root,root,755)
86 %doc doc/_build/html/{_static,*.html,*.js}