3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Random scenario testing in Nose
7 Summary(pl.UTF-8): Testowanie losowych scenariuszy w Nose
8 Name: python-nose_random
12 Group: Libraries/Python
13 #Source0Download: https://github.com/fzumstein/nose-random/releases
14 Source0: https://github.com/fzumstein/nose-random/archive/%{version}/nose-random-%{version}.tar.gz
15 # Source0-md5: 302e05c65601a0239aaf8616f39a4cd4
16 URL: https://github.com/fzumstein/nose-random
18 BuildRequires: python-modules >= 1:2.5
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.2
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 nose-random is designed to facilitate Monte-Carlo style unit testing.
33 The idea is to improve testing by running your code against a large
34 number of randomly generated input scenarios.
36 %description -l pl.UTF-8
37 nose-random jest zaprojektowany, aby wspomóc testowanie jednostkowe w
38 stylu Monte-Carlo. Idea ta polega na testowaniu przez uruchamianie
39 kodu na dużej liczbie losowo wygenerowanych scenariuszy wejściowych.
41 %package -n python3-nose_random
42 Summary: Random scenario testing in Nose
43 Summary(pl.UTF-8): Testowanie losowych scenariuszy w Nose
44 Group: Libraries/Python
45 Requires: python3-modules >= 1:3.2
47 %description -n python3-nose_random
48 nose-random is designed to facilitate Monte-Carlo style unit testing.
49 The idea is to improve testing by running your code against a large
50 number of randomly generated input scenarios.
52 %description -n python3-nose_random -l pl.UTF-8
53 nose-random jest zaprojektowany, aby wspomóc testowanie jednostkowe w
54 stylu Monte-Carlo. Idea ta polega na testowaniu przez uruchamianie
55 kodu na dużej liczbie losowo wygenerowanych scenariuszy wejściowych.
58 %setup -q -n nose-random-%{version}
70 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-nose_random-%{version}
76 cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-nose_random-%{version}
84 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-nose_random-%{version}
85 cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-nose_random-%{version}
89 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc LICENSE README.md
95 %{py_sitescriptdir}/nose_random
96 %{py_sitescriptdir}/nose_random-0.0.1-py*.egg-info
97 %{_examplesdir}/python-nose_random-%{version}
101 %files -n python3-nose_random
102 %defattr(644,root,root,755)
103 %doc LICENSE README.md
104 %{py3_sitescriptdir}/nose_random
105 %{py3_sitescriptdir}/nose_random-0.0.1-py*.egg-info
106 %{_examplesdir}/python3-nose_random-%{version}