3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: py.test plugin to capture log messages
7 Summary(pl.UTF-8): Wtyczka py.test do przechwytywania logowanych komunikatów
8 Name: python-pytest-capturelog
12 Group: Libraries/Python
13 #Source0Download: https://pypi.python.org/simple/pytest-capturelog
14 Source0: https://pypi.python.org/packages/source/p/pytest-capturelog/pytest-capturelog-%{version}.tar.gz
15 # Source0-md5: cfeac23d8ed254deaeb50a8c0aa141e9
16 URL: https://bitbucket.org/memedough/pytest-capturelog/overview
18 BuildRequires: python-modules >= 1:2.6
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.3
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.6
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 py.test plugin to capture log messages.
34 %description -l pl.UTF-8
35 Wtyczka py.test do przechwytywania logowanych komunikatów.
37 %package -n python3-pytest-capturelog
38 Summary: py.test plugin to capture log messages
39 Summary(pl.UTF-8): Wtyczka py.test do przechwytywania logowanych komunikatów
40 Group: Libraries/Python
41 Requires: python3-modules >= 1:3.3
43 %description -n python3-pytest-capturelog
44 py.test plugin to capture log messages.
46 %description -n python3-pytest-capturelog -l pl.UTF-8
47 Wtyczka py.test do przechwytywania logowanych komunikatów.
50 %setup -q -n pytest-capturelog-%{version}
62 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
81 %{py_sitescriptdir}/pytest_capturelog.py[co]
82 %{py_sitescriptdir}/pytest_capturelog-%{version}-py*.egg-info
86 %files -n python3-pytest-capturelog
87 %defattr(644,root,root,755)
89 %{py3_sitescriptdir}/pytest_capturelog.py
90 %{py3_sitescriptdir}/__pycache__/pytest_capturelog.cpython-*.py[co]
91 %{py3_sitescriptdir}/pytest_capturelog-%{version}-py*.egg-info