[packages/python-billiard] Rel 9; python3 version in python3-billiard.spec
arekm
arekm at pld-linux.org
Wed Apr 30 17:05:43 CEST 2025
commit 4773c236cc5472d4542018316ed22a521b6b5f31
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Apr 30 16:33:55 2025 +0200
Rel 9; python3 version in python3-billiard.spec
python-billiard.spec | 63 +---------------------------------------------------
1 file changed, 1 insertion(+), 62 deletions(-)
---
diff --git a/python-billiard.spec b/python-billiard.spec
index a28fe07..c0e134b 100644
--- a/python-billiard.spec
+++ b/python-billiard.spec
@@ -2,8 +2,6 @@
# 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
@@ -11,7 +9,7 @@ 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
+Release: 9
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/billiard/
@@ -20,7 +18,6 @@ Source0: https://files.pythonhosted.org/packages/source/b/billiard/%{module}-%{v
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}
@@ -31,16 +28,6 @@ BuildRequires: python-pytest
%if %{with doc}
BuildRequires: sphinx-pdg-2
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.5
-BuildRequires: python3-setuptools >= 1:40.0.0
-%if %{with tests}
-BuildRequires: python3-case >= 1.3.1
-BuildRequires: python3-psutil >= 5.8.0
-BuildRequires: python3-pytest
-%endif
-%endif
Requires: python-modules >= 1:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -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,23 +61,12 @@ 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
@@ -123,20 +78,13 @@ cd ..
%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
@@ -146,15 +94,6 @@ rm -rf $RPM_BUILD_ROOT
%{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/python-billiard.git/commitdiff/4773c236cc5472d4542018316ed22a521b6b5f31
More information about the pld-cvs-commit
mailing list