3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Exclude specific directories from nosetests runs
8 Summary(pl.UTF-8): Wykluczanie określonych katalogów z zakresu nosetests
9 Name: python-nose_exclude
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/nose-exclude/
15 Source0: https://files.pythonhosted.org/packages/source/n/nose-exclude/nose-exclude-%{version}.tar.gz
16 # Source0-md5: 072f72e782f28a9c42356976f8ec22d9
17 URL: https://pypi.org/project/nose-exclude/
19 BuildRequires: python-modules >= 1:2.5
20 BuildRequires: python-setuptools
22 BuildRequires: python-nose
26 BuildRequires: python3-modules >= 1:3.3
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-nose
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.5
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 nose_exclude is a Nose plugin that allows you to easily specify
40 directories to be excluded from testing.
42 %description -l pl.UTF-8
43 nose_exclude to wtyczka Nose pozwalająca łatwo określać katalogi
44 do wykluczenia z testowania.
46 %package -n python3-nose_exclude
47 Summary: Exclude specific directories from nosetests runs
48 Summary(pl.UTF-8): Wykluczanie określonych katalogów z zakresu nosetests
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.3
52 %description -n python3-nose_exclude
53 nose_exclude is a Nose plugin that allows you to easily specify
54 directories to be excluded from testing.
56 %description -n python3-nose_exclude -l pl.UTF-8
57 nose_exclude to wtyczka Nose pozwalająca łatwo określać katalogi
58 do wykluczenia z testowania.
61 %setup -q -n nose-exclude-%{version}
65 %py_build %{?with_tests:test}
69 %py3_build %{?with_tests:test}
73 rm -rf $RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %{py_sitescriptdir}/nose_exclude.py[co]
93 %{py_sitescriptdir}/nose_exclude-%{version}-py*.egg-info
97 %files -n python3-nose_exclude
98 %defattr(644,root,root,755)
100 %{py3_sitescriptdir}/nose_exclude.py
101 %{py3_sitescriptdir}/__pycache__/nose_exclude.cpython-*.py[co]
102 %{py3_sitescriptdir}/nose_exclude-%{version}-py*.egg-info