[packages/python-pytest-capturelog] - new

qboosh qboosh at pld-linux.org
Wed Mar 8 20:32:58 CET 2017


commit de7dec5d38d30d8b2c846d982b798e77259e0fc6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 8 20:34:57 2017 +0100

    - new

 python-pytest-capturelog.spec | 92 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
---
diff --git a/python-pytest-capturelog.spec b/python-pytest-capturelog.spec
new file mode 100644
index 0000000..ad22c41
--- /dev/null
+++ b/python-pytest-capturelog.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	py.test plugin to capture log messages
+Summary(pl.UTF-8):	Wtyczka py.test do przechwytywania logowanych komunikatów
+Name:		python-pytest-capturelog
+Version:	0.7
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/pytest-capturelog
+Source0:	https://pypi.python.org/packages/source/p/pytest-capturelog/pytest-capturelog-%{version}.tar.gz
+# Source0-md5:	cfeac23d8ed254deaeb50a8c0aa141e9
+URL:		https://bitbucket.org/memedough/pytest-capturelog/overview
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+py.test plugin to capture log messages.
+
+%description -l pl.UTF-8
+Wtyczka py.test do przechwytywania logowanych komunikatów.
+
+%package -n python3-pytest-capturelog
+Summary:	py.test plugin to capture log messages
+Summary(pl.UTF-8):	Wtyczka py.test do przechwytywania logowanych komunikatów
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.3
+
+%description -n python3-pytest-capturelog
+py.test plugin to capture log messages.
+
+%description -n python3-pytest-capturelog -l pl.UTF-8
+Wtyczka py.test do przechwytywania logowanych komunikatów.
+
+%prep
+%setup -q -n pytest-capturelog-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README
+%{py_sitescriptdir}/pytest_capturelog.py[co]
+%{py_sitescriptdir}/pytest_capturelog-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pytest-capturelog
+%defattr(644,root,root,755)
+%doc README
+%{py3_sitescriptdir}/pytest_capturelog.py
+%{py3_sitescriptdir}/__pycache__/pytest_capturelog.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_capturelog-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-capturelog.git/commitdiff/de7dec5d38d30d8b2c846d982b798e77259e0fc6



More information about the pld-cvs-commit mailing list