]>
Commit | Line | Data |
---|---|---|
5bd5d92d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
4 | %bcond_without python3 # CPython 3.x module | |
5 | ||
6 | Summary: Tools for testing processes | |
7 | Summary(pl.UTF-8): Narzędzia do testowania procesów | |
8 | Name: python-process_tests | |
3d07e098 | 9 | Version: 2.1.2 |
c7e345e0 | 10 | Release: 2 |
5bd5d92d JB |
11 | License: BSD |
12 | Group: Libraries/Python | |
2afaf53b | 13 | #Source0Download: https://pypi.org/simple/process-tests/ |
5bd5d92d | 14 | Source0: https://files.pythonhosted.org/packages/source/p/process-tests/process-tests-%{version}.tar.gz |
3d07e098 | 15 | # Source0-md5: bd65932ebc724e53dd6a951bc106b02e |
5bd5d92d JB |
16 | URL: https://github.com/ionelmc/python-process-tests |
17 | %if %{with python2} | |
3d07e098 | 18 | BuildRequires: python-modules >= 1:2.7 |
5bd5d92d JB |
19 | BuildRequires: python-setuptools |
20 | %endif | |
21 | %if %{with python3} | |
3d07e098 | 22 | BuildRequires: python3-modules >= 1:3.5 |
5bd5d92d JB |
23 | BuildRequires: python3-setuptools |
24 | %endif | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.714 | |
3d07e098 | 27 | Requires: python-modules >= 1:2.7 |
5bd5d92d JB |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Tools for testing processes. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Narzędzia do testowania procesów. | |
36 | ||
37 | %package -n python3-process_tests | |
38 | Summary: Tools for testing processes | |
39 | Summary(pl.UTF-8): Narzędzia do testowania procesów | |
40 | Group: Libraries/Python | |
3d07e098 | 41 | Requires: python3-modules >= 1:3.5 |
5bd5d92d JB |
42 | |
43 | %description -n python3-process_tests | |
44 | Tools for testing processes. | |
45 | ||
46 | %description -n python3-process_tests -l pl.UTF-8 | |
47 | Narzędzia do testowania procesów. | |
48 | ||
49 | %prep | |
50 | %setup -q -n process-tests-%{version} | |
51 | ||
52 | %build | |
53 | %if %{with python2} | |
54 | %py_build | |
55 | %endif | |
56 | ||
57 | %if %{with python3} | |
58 | %py3_build | |
59 | %endif | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %if %{with python2} | |
65 | %py_install | |
66 | ||
67 | %py_postclean | |
68 | %endif | |
69 | ||
70 | %if %{with python3} | |
71 | %py3_install | |
72 | %endif | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %if %{with python2} | |
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc LICENSE README.rst | |
81 | %{py_sitescriptdir}/process_tests.py[co] | |
82 | %{py_sitescriptdir}/process_tests-%{version}-py*.egg-info | |
83 | %endif | |
84 | ||
85 | %if %{with python3} | |
86 | %files -n python3-process_tests | |
87 | %defattr(644,root,root,755) | |
88 | %doc LICENSE README.rst | |
89 | %{py3_sitescriptdir}/process_tests.py | |
90 | %{py3_sitescriptdir}/__pycache__/process_tests.cpython-*.py[co] | |
91 | %{py3_sitescriptdir}/process_tests-%{version}-py*.egg-info | |
92 | %endif |