[python-cov-core] Initial package (#1004678)

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Sep 6 12:53:57 UTC 2013


commit e00695d9a3c1cdb846a484a45aa6c1814e1e702d
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Sep 6 14:53:44 2013 +0200

    Initial package (#1004678)

 .gitignore           |    1 +
 python-cov-core.spec |   85 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a385f98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cov-core-1.7.tar.gz
diff --git a/python-cov-core.spec b/python-cov-core.spec
new file mode 100644
index 0000000..be5cf78
--- /dev/null
+++ b/python-cov-core.spec
@@ -0,0 +1,85 @@
+# Created by pyp2rpm-1.0.1
+%global pypi_name cov-core
+%global with_python3 1
+
+Name:           python-%{pypi_name}
+Version:        1.7
+Release:        1%{?dist}
+Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
+
+License:        MIT
+URL:            http://bitbucket.org/memedough/cov-core/overview
+Source0:        https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+ 
+%if %{?with_python3}
+BuildRequires:  python3-devel
+%endif # if with_python3
+ 
+Requires:       python-coverage >= 3.4
+
+%description
+This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
+you're developing a coverage plugin for a test framework then you probably
+want one of those.
+
+%if 0%{?with_python3}
+%package -n     python3-%{pypi_name}
+Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
+ 
+Requires:       python3-coverage >= 3.4
+
+%description -n python3-%{pypi_name}
+This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
+you're developing a coverage plugin for a test framework then you probably
+want one of those.
+%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}
+%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 README.txt LICENSE.txt
+%{python2_sitelib}/cov_core*
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.txt LICENSE.txt
+%{python3_sitelib}/cov_core*
+%{python3_sitelib}/__pycache__/*
+%endif # with_python3
+
+%changelog
+* Thu Sep 05 2013 Bohuslav Kabrda <bkabrda at redhat.com> - 1.7-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..f9bbb49 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+59c1e22e636633e10120beacbf45b28c  cov-core-1.7.tar.gz


More information about the scm-commits mailing list