3 %bcond_without doc # don't build doc
4 %bcond_without tests # do not perform "make test"
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 %define module billiard
9 Summary: Multiprocessing Pool Extensions
10 Name: python-%{module}
14 Group: Libraries/Python
15 Source0: https://pypi.python.org/packages/source/b/billiard/%{module}-%{version}.tar.gz
16 # Source0-md5: 5304a48344d8f7e821d06f57da8af1f4
17 Patch0: unittest2.patch
18 URL: https://github.com/celery/billiard
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.612
22 BuildRequires: python-devel >= 2.7
23 BuildRequires: python-setuptools
25 BuildRequires: python-mock
26 BuildRequires: python-nose
29 BuildRequires: sphinx-pdg
33 BuildRequires: python3-devel
34 BuildRequires: python3-setuptools
36 BuildRequires: python3-nose
39 Requires: python-modules
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 billiard is a fork of the Python 2.7 multiprocessing package. The
44 multiprocessing package itself is a renamed and updated version of R
45 Oudkerk's pyprocessing package. This standalone variant is intended to
46 be compatible with Python 2.4 and 2.5, and will draw its
47 fixes/improvements from python-trunk.
49 %package -n python3-%{module}
50 Summary: Multiprocessing Pool Extensions
51 Group: Libraries/Python
52 Requires: python3-modules
55 %description -n python3-%{module}
56 billiard is a fork of the Python 2.7 multiprocessing package. The
57 multiprocessing package itself is a renamed and updated version of R
58 Oudkerk's pyprocessing package. This standalone variant is intended to
59 be compatible with Python 2.4 and 2.5, and will draw its
60 fixes/improvements from python-trunk.
63 Summary: %{module} API documentation
64 Summary(pl.UTF-8): Dokumentacja API %{module}
68 API documentation for %{module}.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API %{module}.
74 %setup -q -n %{module}-%{version}
80 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
81 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
85 PYTHONPATH=../build-2/lib sphinx-build -b html -d .build/doctrees . .build/html
86 rm -rf .build/html/_sources
93 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
94 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
98 rm -rf $RPM_BUILD_ROOT
101 %{__python} setup.py \
102 build --build-base build-2 \
103 install --skip-build \
105 --root=$RPM_BUILD_ROOT
111 %{__python3} setup.py \
112 build --build-base build-3 \
113 install --skip-build \
115 --root=$RPM_BUILD_ROOT
119 rm -rf $RPM_BUILD_ROOT
123 %defattr(644,root,root,755)
124 %doc *.txt README.rst
125 %dir %{py_sitedir}/%{module}
126 %{py_sitedir}/%{module}/*.py[co]
127 %dir %{py_sitedir}/%{module}/dummy
128 %{py_sitedir}/%{module}/dummy/*.py[co]
129 %dir %{py_sitedir}/%{module}/py2
130 %{py_sitedir}/%{module}/py2/*.py[co]
131 %dir %{py_sitedir}/%{module}/tests
132 %{py_sitedir}/%{module}/tests/*.py[co]
133 %{py_sitedir}/_%{module}.so
134 %{py_sitedir}/%{module}-%{version}-py*.egg-info
138 %files -n python3-%{module}
139 %defattr(644,root,root,755)
140 %doc *.txt README.rst
141 %{py3_sitescriptdir}/%{module}
142 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
147 %defattr(644,root,root,755)
148 %doc Doc/.build/html/*