[python-pytest-capturelog] Initial commit (#1198127)

Matej Stuchlik mstuchli at fedoraproject.org
Wed Mar 11 13:18:06 UTC 2015


commit 42914b0715688d86b1445fd5d515454346dc7696
Author: Matej Stuchlik <mstuchli at redhat.com>
Date:   Wed Mar 11 14:17:18 2015 +0100

    Initial commit (#1198127)

 .gitignore                    |  1 +
 python-pytest-capturelog.spec | 97 +++++++++++++++++++++++++++++++++++++++++++
 sources                       |  1 +
 3 files changed, 99 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c30b78b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytest-capturelog-0.7.tar.gz
diff --git a/python-pytest-capturelog.spec b/python-pytest-capturelog.spec
new file mode 100644
index 0000000..85951d2
--- /dev/null
+++ b/python-pytest-capturelog.spec
@@ -0,0 +1,97 @@
+# Created by pyp2rpm-1.1.2
+%global pypi_name pytest-capturelog
+%global with_python3 1
+
+Name:           python-%{pypi_name}
+Version:        0.7
+Release:        1%{?dist}
+Summary:        py.test plugin to capture log messages
+
+License:        MIT
+URL:            http://bitbucket.org/memedough/pytest-capturelog/overview
+Source0:        https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+ 
+%if %{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif # if with_python3
+ 
+Requires:       python-py >= 1.1.1
+Requires:       python-pytest
+
+%description
+py.test plugin to capture log messages
+
+%if 0%{?with_python3}
+%package -n     python3-%{pypi_name}
+Summary:        py.test plugin to capture log messages
+ 
+Requires:       python3-py >= 1.1.1
+Requires:       python3-pytest
+
+%description -n python3-%{pypi_name}
+py.test plugin to capture log messages
+
+%endif # with_python3
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+
+%endif # with_python3
+
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%install
+# Must do the subpackages' install first because the scripts in /usr/bin are
+# overwritten with every setup.py install (and we want the python2 version
+# to be the default for now).
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+
+%files
+%doc 
+
+%{python2_sitelib}/pytest_capturelog.py*
+%{python2_sitelib}/pytest_capturelog-%{version}-py?.?.egg-info
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc 
+%dir %{python3_sitelib}/__pycache__/
+%{python3_sitelib}/__pycache__/*
+%{python3_sitelib}/pytest_capturelog.py
+%{python3_sitelib}/pytest_capturelog-%{version}-py?.?.egg-info
+%endif # with_python3
+
+
+%changelog
+* Tue Mar 03 2015 Matej Stuchlik <mstuchli at redhat.com> - 0.7-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..ce29ad9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cfeac23d8ed254deaeb50a8c0aa141e9  pytest-capturelog-0.7.tar.gz


More information about the scm-commits mailing list