3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: nose.plugins.cover extension to add Cobertura-style XML reports
8 Summary(pl.UTF-8): Rozszerzenie nose.plugins.cover dodające raporty XML w stylu Cobertury
9 Name: python-nosexcover
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/nosexcover/
15 Source0: https://files.pythonhosted.org/packages/source/n/nosexcover/nosexcover-%{version}.tar.gz
16 # Source0-md5: f32ef4824b4484343e9766b2c376365d
17 URL: https://github.com/cmheisel/nose-xcover
19 BuildRequires: python-modules >= 1:2.6
20 BuildRequires: python-setuptools
22 BuildRequires: python-coverage >= 3.4
23 BuildRequires: python-nose
27 BuildRequires: python3-modules >= 1:3.2
28 BuildRequires: python3-setuptools
30 BuildRequires: python3-coverage >= 3.4
31 BuildRequires: python3-nose
34 BuildRequires: rpm-pythonprov
35 BuildRequires: rpmbuild(macros) >= 1.714
36 Requires: python-modules >= 1:2.6
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 A companion to the built-in nose.plugins.cover, this plugin will write
42 out an XML coverage report to a file named coverage.xml.
44 %description -l pl.UTF-8
45 Dodatek do wbudowanego nose.plugins.cover - wtyczka zapisująca raport
46 pokrycia XML do pliku o nazwie coverage.xml.
48 %package -n python3-nosexcover
49 Summary: nose.plugins.cover extension to add Cobertura-style XML reports
50 Summary(pl.UTF-8): Rozszerzenie nose.plugins.cover dodające raporty XML w stylu Cobertury
51 Group: Libraries/Python
52 Requires: python3-modules >= 1:3.2
54 %description -n python3-nosexcover
55 A companion to the built-in nose.plugins.cover, this plugin will write
56 out an XML coverage report to a file named coverage.xml.
58 %description -n python3-nosexcover -l pl.UTF-8
59 Dodatek do wbudowanego nose.plugins.cover - wtyczka zapisująca raport
60 pokrycia XML do pliku o nazwie coverage.xml.
63 %setup -q -n nosexcover-%{version}
69 %{?with_tests:nosetests-%{py_ver} nosexcover}
75 %{?with_tests:nosetests-%{py3_ver} nosexcover}
79 rm -rf $RPM_BUILD_ROOT
92 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
98 %{py_sitescriptdir}/nosexcover
99 %{py_sitescriptdir}/nosexcover-%{version}-py*.egg-info
103 %files -n python3-nosexcover
104 %defattr(644,root,root,755)
106 %{py3_sitescriptdir}/nosexcover
107 %{py3_sitescriptdir}/nosexcover-%{version}-py*.egg-info