From: Jakub Bogusz Date: Thu, 28 Jan 2021 21:23:58 +0000 (+0100) Subject: - updated to 3.6.3.0 X-Git-Tag: auto/th/python-billiard-3.6.3.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython-billiard.git;a=commitdiff_plain;h=5a836b5 - updated to 3.6.3.0 --- diff --git a/python-billiard.spec b/python-billiard.spec index 49db816..3228692 100644 --- a/python-billiard.spec +++ b/python-billiard.spec @@ -1,99 +1,122 @@ # # Conditional build: -%bcond_without doc # don't build doc -%bcond_with tests # do perform "make test" (downloads external code) +%bcond_without doc # Sphinx documentation +%bcond_without tests # unit tests %bcond_without python2 # CPython 2.x module %bcond_without python3 # CPython 3.x module %define module billiard Summary: Multiprocessing Pool Extensions +Summary(pl.UTF-8): Rozszerzenia puli procesów Name: python-%{module} -Version: 3.6.2.0 +Version: 3.6.3.0 Release: 1 License: BSD Group: Libraries/Python -# Source0: https://pypi.python.org/packages/source/b/billiard/%{module}-%{version}.tar.gz -Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz -# Source0-md5: 04f6ad67ed874ec12395e9750601e509 +#Source0Download: https://pypi.org/simple/billiard/ +Source0: https://files.pythonhosted.org/packages/source/b/billiard/%{module}-%{version}.tar.gz +# Source0-md5: 49f47bc7c6868e17591d8018d542b984 URL: https://github.com/celery/billiard BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.710 +BuildRequires: rpmbuild(macros) >= 1.752 %if %{with python2} BuildRequires: python-devel >= 1:2.7 -BuildRequires: python-setuptools +BuildRequires: python-setuptools >= 40.0.0 %if %{with tests} -BuildRequires: python-mock -BuildRequires: python-nose +BuildRequires: python-case >= 1.3.1 +BuildRequires: python-psutil +BuildRequires: python-pytest %endif %if %{with doc} BuildRequires: sphinx-pdg %endif %endif %if %{with python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-devel >= 1:3.5 +BuildRequires: python3-setuptools >= 40.0.0 %if %{with tests} -BuildRequires: python3-nose +BuildRequires: python3-case >= 1.3.1 +BuildRequires: python3-psutil +BuildRequires: python3-pytest %endif %endif -Requires: python-modules +Requires: python-modules >= 1:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description billiard is a fork of the Python 2.7 multiprocessing package. The multiprocessing package itself is a renamed and updated version of R -Oudkerk's pyprocessing package. This standalone variant is intended to -be compatible with Python 2.4 and 2.5, and will draw its -fixes/improvements from python-trunk. +Oudkerk's pyprocessing package. This standalone variant draws its +fixes/improvements from python-trunk and provides additional bug fixes +and improvements. + +%description -l pl.UTF-8 +billiard to odgałęzienie pakietu multiprocessing z Pythona 2.7. Pakiet +multiprocessing to uaktualniona wersja pakietu pyprocessing R Oudkerka +ze zmienioną nazwą. Samodzielny wariant czerpie poprawki i +usprawnienia z najświeższego Pythona, ponadto zawiera dodatkowe +poprawki błędów i ulepszenia. %package -n python3-%{module} Summary: Multiprocessing Pool Extensions +Summary(pl.UTF-8): Rozszerzenia puli procesów Group: Libraries/Python -Requires: python3-modules -BuildArch: noarch +Requires: python3-modules >= 1:3.5 +%{?noarchpackage} %description -n python3-%{module} billiard is a fork of the Python 2.7 multiprocessing package. The multiprocessing package itself is a renamed and updated version of R -Oudkerk's pyprocessing package. This standalone variant is intended to -be compatible with Python 2.4 and 2.5, and will draw its -fixes/improvements from python-trunk. +Oudkerk's pyprocessing package. This standalone variant draws its +fixes/improvements from python-trunk and provides additional bug fixes +and improvements. + +%description -n python3-%{module} -l pl.UTF-8 +billiard to odgałęzienie pakietu multiprocessing z Pythona 2.7. Pakiet +multiprocessing to uaktualniona wersja pakietu pyprocessing R Oudkerka +ze zmienioną nazwą. Samodzielny wariant czerpie poprawki i +usprawnienia z najświeższego Pythona, ponadto zawiera dodatkowe +poprawki błędów i ulepszenia. %package apidocs -Summary: %{module} API documentation -Summary(pl.UTF-8): Dokumentacja API %{module} +Summary: API documentation for billiard module +Summary(pl.UTF-8): Dokumentacja API modułu billiard Group: Documentation -%if "%{_rpmversion}" >= "5" -BuildArch: noarch -%endif +%{?noarchpackage} %description apidocs -API documentation for %{module}. +API documentation for billiard module. %description apidocs -l pl.UTF-8 -Dokumentacja API %{module}. +Dokumentacja API modułu billiard. %prep %setup -q -n %{module}-%{version} %build %if %{with python2} -CC="%{__cc}" \ -CFLAGS="%{rpmcppflags} %{rpmcflags}" \ -%py_build %{?with_tests:test} +%py_build -%if %{with doc} -cd Doc -PYTHONPATH=../build-2/lib sphinx-build -b html -d .build/doctrees . .build/html -rm -rf .build/html/_sources -cd .. +%if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +%{__python} -m pytest t/unit %endif %endif %if %{with python3} -CC="%{__cc}" \ -CFLAGS="%{rpmcppflags} %{rpmcflags}" \ -%py3_build %{?with_tests:test} +%py3_build + +%if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ +%{__python3} -m pytest t/unit +%endif +%endif + +%if %{with doc} +cd Doc +PYTHONPATH=$(pwd)/../build-3/lib \ +sphinx-build -b html -d .build/doctrees . .build/html +cd .. %endif %install @@ -115,19 +138,19 @@ rm -rf $RPM_BUILD_ROOT %if %{with python2} %files %defattr(644,root,root,755) -%doc *.txt README.rst +%doc CHANGES.txt LICENSE.txt README.rst %dir %{py_sitedir}/%{module} %{py_sitedir}/%{module}/*.py[co] %dir %{py_sitedir}/%{module}/dummy %{py_sitedir}/%{module}/dummy/*.py[co] -%{py_sitedir}/_%{module}.so +%attr(755,root,root) %{py_sitedir}/_billiard.so %{py_sitedir}/%{module}-%{version}-py*.egg-info %endif %if %{with python3} %files -n python3-%{module} %defattr(644,root,root,755) -%doc *.txt README.rst +%doc CHANGES.txt LICENSE.txt README.rst %{py3_sitescriptdir}/%{module} %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info %endif @@ -135,5 +158,5 @@ rm -rf $RPM_BUILD_ROOT %if %{with doc} %files apidocs %defattr(644,root,root,755) -%doc Doc/.build/html/* +%doc Doc/.build/html/{_static,library,*.html,*.js} %endif