[packages/python-blinker] Rel 4; python3 - see python3-blinker.spec

arekm arekm at pld-linux.org
Sun May 4 13:13:49 CEST 2025


commit c510e6002c8e544cc91132654844be33d0016773
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 12:20:53 2025 +0200

    Rel 4; python3 - see python3-blinker.spec

 python-blinker.spec | 57 +----------------------------------------------------
 1 file changed, 1 insertion(+), 56 deletions(-)
---
diff --git a/python-blinker.spec b/python-blinker.spec
index 03b538d..b8754b6 100644
--- a/python-blinker.spec
+++ b/python-blinker.spec
@@ -2,8 +2,6 @@
 # Conditional build:
 %bcond_without	doc	# API documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module	blinker
 Summary:	Fast, simple object-to-object and broadcast signaling
@@ -11,7 +9,7 @@ Summary(pl.UTF-8):	Szybkie, proste przesyłanie sygnałów pomiędzy obiektami
 Name:		python-%{module}
 # keep 1.5 here for python2 support
 Version:	1.5
-Release:	3
+Release:	4
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/blinker/
@@ -20,20 +18,11 @@ Source0:	https://files.pythonhosted.org/packages/source/b/blinker/%{module}-%{ve
 URL:		https://pythonhosted.org/blinker/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %if %{with tests}
 BuildRequires:	python-nose
 %endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-nose
-%endif
-%endif
 %if %{with doc}
 BuildRequires:	python3-flask_sphinx_themes
 BuildRequires:	sphinx-pdg-3
@@ -54,24 +43,6 @@ pozwala na dowolną liczbę odbiorców zdarzeń czy sygnałów. Odbiorcy
 sygnałów mogą zapisywać się do wybranych nadawców lub odbierać sygnały
 nadadane przez wszystkich nadawców.
 
-%package -n python3-%{module}
-Summary:	Fast, simple object-to-object and broadcast signaling
-Summary(pl.UTF-8):	Szybkie, proste przesyłanie sygnałów pomiędzy obiektami
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Blinker provides a fast dispatching system that allows any number of
-interested parties to subscribe to events, or "signals". Signal
-receivers can subscribe to specific senders or receive signals sent by
-any sender.
-
-%description -n python3-%{module} -l pl.UTF-8
-Blinker dostarcza szybki system rozporowadzania sygnałów, który
-pozwala na dowolną liczbę odbiorców zdarzeń czy sygnałów. Odbiorcy
-sygnałów mogą zapisywać się do wybranych nadawców lub odbierać sygnały
-nadadane przez wszystkich nadawców.
-
 %package apidocs
 Summary:	Blinker API documentation
 Summary(pl.UTF-8):	Dokumentacja API modułu Blinker
@@ -87,21 +58,11 @@ Dokumentacja API modułu Blinker.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
 nosetests-%{py_ver} tests
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver} tests
-%endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
@@ -112,34 +73,18 @@ PYTHONPATH=$(pwd) \
 %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.rst LICENSE.rst README.rst
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst 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-blinker.git/commitdiff/c510e6002c8e544cc91132654844be33d0016773



More information about the pld-cvs-commit mailing list