3 %bcond_without doc # don't build doc
4 %bcond_with tests # do perform "make test" (downloads external code)
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: e9558e6969b6e3f48891c2122f365c60
17 URL: https://github.com/celery/billiard
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRequires: python-devel >= 1:2.7
22 BuildRequires: python-setuptools
24 BuildRequires: python-mock
25 BuildRequires: python-nose
28 BuildRequires: sphinx-pdg
32 BuildRequires: python3-devel
33 BuildRequires: python3-setuptools
35 BuildRequires: python3-nose
38 Requires: python-modules
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 billiard is a fork of the Python 2.7 multiprocessing package. The
43 multiprocessing package itself is a renamed and updated version of R
44 Oudkerk's pyprocessing package. This standalone variant is intended to
45 be compatible with Python 2.4 and 2.5, and will draw its
46 fixes/improvements from python-trunk.
48 %package -n python3-%{module}
49 Summary: Multiprocessing Pool Extensions
50 Group: Libraries/Python
51 Requires: python3-modules
54 %description -n python3-%{module}
55 billiard is a fork of the Python 2.7 multiprocessing package. The
56 multiprocessing package itself is a renamed and updated version of R
57 Oudkerk's pyprocessing package. This standalone variant is intended to
58 be compatible with Python 2.4 and 2.5, and will draw its
59 fixes/improvements from python-trunk.
62 Summary: %{module} API documentation
63 Summary(pl.UTF-8): Dokumentacja API %{module}
65 %if "%{_rpmversion}" >= "5"
70 API documentation for %{module}.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API %{module}.
76 %setup -q -n %{module}-%{version}
81 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
82 %py_build %{?with_tests:test}
86 PYTHONPATH=../build-2/lib sphinx-build -b html -d .build/doctrees . .build/html
87 rm -rf .build/html/_sources
94 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
95 %py3_build %{?with_tests:test}
99 rm -rf $RPM_BUILD_ROOT
112 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %doc *.txt README.rst
118 %dir %{py_sitedir}/%{module}
119 %{py_sitedir}/%{module}/*.py[co]
120 %dir %{py_sitedir}/%{module}/dummy
121 %{py_sitedir}/%{module}/dummy/*.py[co]
122 %{py_sitedir}/_%{module}.so
123 %{py_sitedir}/%{module}-%{version}-py*.egg-info
127 %files -n python3-%{module}
128 %defattr(644,root,root,755)
129 %doc *.txt README.rst
130 %{py3_sitescriptdir}/%{module}
131 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
136 %defattr(644,root,root,755)
137 %doc Doc/.build/html/*