[packages/python3-billiard] Up to 4.2.1

arekm arekm at pld-linux.org
Wed Apr 30 17:04:21 CEST 2025


commit 313ca4ab4cc83c4ce4dccfdc6e6662288be0ae52
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 30 16:32:25 2025 +0200

    Up to 4.2.1

 python-billiard.spec => python3-billiard.spec | 85 +++------------------------
 1 file changed, 9 insertions(+), 76 deletions(-)
---
diff --git a/python-billiard.spec b/python3-billiard.spec
similarity index 52%
rename from python-billiard.spec
rename to python3-billiard.spec
index a28fe07..1e217ca 100644
--- a/python-billiard.spec
+++ b/python3-billiard.spec
@@ -2,37 +2,24 @@
 # Conditional build:
 %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}
-# keep 3.x here for python2 support
-Version:	3.6.4.0
-Release:	8
+Name:		python3-%{module}
+Version:	4.2.1
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/billiard/
 Source0:	https://files.pythonhosted.org/packages/source/b/billiard/%{module}-%{version}.tar.gz
-# Source0-md5:	b49503b8a78743dcb6a86accea379357
+# Source0-md5:	67dfb22a28126cfdbfe9f8e0bcdc177d
 URL:		https://github.com/celery/billiard
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.752
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools >= 1:40.0.0
-%if %{with tests}
-BuildRequires:	python-case >= 1.3.1
-BuildRequires:	python-psutil >= 5.8.0
-BuildRequires:	python-pytest
-%endif
 %if %{with doc}
-BuildRequires:	sphinx-pdg-2
-%endif
+BuildRequires:	sphinx-pdg-3
 %endif
-%if %{with python3}
 BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-setuptools >= 1:40.0.0
 %if %{with tests}
@@ -40,8 +27,8 @@ BuildRequires:	python3-case >= 1.3.1
 BuildRequires:	python3-psutil >= 5.8.0
 BuildRequires:	python3-pytest
 %endif
-%endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,27 +45,6 @@ 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 >= 1:3.5
-BuildArch:	noarch
-
-%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 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:	API documentation for billiard module
 Summary(pl.UTF-8):	Dokumentacja API modułu billiard
@@ -95,66 +61,33 @@ Dokumentacja API modułu billiard.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest t/unit
-%endif
-%endif
-
-%if %{with python3}
 %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-2/lib \
-sphinx-build-2 -b html -d .build/doctrees . .build/html
+PYTHONPATH=$(pwd)/../build-3/lib \
+sphinx-build-3 -b html -d .build/doctrees . .build/html
 cd ..
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %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]
-%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 CHANGES.txt LICENSE.txt README.rst
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-billiard.git/commitdiff/313ca4ab4cc83c4ce4dccfdc6e6662288be0ae52



More information about the pld-cvs-commit mailing list