[packages/python-nosexcover] - new

qboosh qboosh at pld-linux.org
Thu Mar 21 16:46:37 CET 2019


commit 8c0bb22cea5d230c608ba8d42991d0d27dfb882d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Mar 21 16:52:25 2019 +0100

    - new

 python-nosexcover.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 107 insertions(+)
---
diff --git a/python-nosexcover.spec b/python-nosexcover.spec
new file mode 100644
index 0000000..09ec11f
--- /dev/null
+++ b/python-nosexcover.spec
@@ -0,0 +1,107 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	nose.plugins.cover extension to add Cobertura-style XML reports
+Summary(pl.UTF-8):	Rozszerzenie nose.plugins.cover dodające raporty XML w stylu Cobertury
+Name:		python-nosexcover
+Version:	1.0.11
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/nosexcover/
+Source0:	https://files.pythonhosted.org/packages/source/n/nosexcover/nosexcover-%{version}.tar.gz
+# Source0-md5:	f32ef4824b4484343e9766b2c376365d
+URL:		https://github.com/cmheisel/nose-xcover
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-coverage >= 3.4
+BuildRequires:	python-nose
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-coverage >= 3.4
+BuildRequires:	python3-nose
+%endif
+%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
+A companion to the built-in nose.plugins.cover, this plugin will write
+out an XML coverage report to a file named coverage.xml.
+
+%description -l pl.UTF-8
+Dodatek do wbudowanego nose.plugins.cover - wtyczka zapisująca raport
+pokrycia XML do pliku o nazwie coverage.xml.
+
+%package -n python3-nosexcover
+Summary:	nose.plugins.cover extension to add Cobertura-style XML reports
+Summary(pl.UTF-8):	Rozszerzenie nose.plugins.cover dodające raporty XML w stylu Cobertury
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-nosexcover
+A companion to the built-in nose.plugins.cover, this plugin will write
+out an XML coverage report to a file named coverage.xml.
+
+%description -n python3-nosexcover -l pl.UTF-8
+Dodatek do wbudowanego nose.plugins.cover - wtyczka zapisująca raport
+pokrycia XML do pliku o nazwie coverage.xml.
+
+%prep
+%setup -q -n nosexcover-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%{?with_tests:nosetests-%{py_ver} nosexcover}
+%endif
+
+%if %{with python3}
+%py3_build
+
+%{?with_tests:nosetests-%{py3_ver} nosexcover}
+%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.rst
+%{py_sitescriptdir}/nosexcover
+%{py_sitescriptdir}/nosexcover-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-nosexcover
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/nosexcover
+%{py3_sitescriptdir}/nosexcover-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-nosexcover.git/commitdiff/8c0bb22cea5d230c608ba8d42991d0d27dfb882d



More information about the pld-cvs-commit mailing list