[packages/python-cssutils] - drop python3, moved to separate package

baggins baggins at pld-linux.org
Sat Mar 22 18:33:26 CET 2025


commit 81b56e09a39748ce99baa22a6240ab59f0cf6834
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 22 19:09:14 2025 +0100

    - drop python3, moved to separate package

 python-cssutils.spec | 65 +---------------------------------------------------
 1 file changed, 1 insertion(+), 64 deletions(-)
---
diff --git a/python-cssutils.spec b/python-cssutils.spec
index 72e2fda..24d90a4 100644
--- a/python-cssutils.spec
+++ b/python-cssutils.spec
@@ -1,7 +1,5 @@
 #
 # Conditional build:
-%bcond_without	python2		# CPython 2.x module
-%bcond_without	python3		# CPython 3.x module
 %bcond_without	tests		# unit tests
 %bcond_with	tests_net	# unit tests using network
 
@@ -11,7 +9,7 @@ Summary:	A CSS Cascading Style Sheets library for Python 2
 Summary(pl.UTF-8):	Biblioteka CSS (Cascading Style Sheets) dla Pythona 2
 Name:		python-%{module}
 Version:	1.0.2
-Release:	11
+Release:	12
 Epoch:		1
 License:	LGPL v3+
 Group:		Libraries/Python
@@ -20,16 +18,9 @@ Source0:	https://files.pythonhosted.org/packages/source/c/cssutils/%{module}-%{v
 Patch0:		%{name}-tests.patch
 Patch1:		%{name}-mock.patch
 URL:		http://cthedot.de/cssutils/
-%if %{with python2}
 BuildRequires:	python-devel >= 1:2.5
 %{?with_tests:BuildRequires:	python-mock}
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-2to3 >= 1:3.2
-BuildRequires:	python3-devel >= 1:3.2
-BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.5
@@ -47,21 +38,6 @@ Pakiet Pythona do analizy i tworzenia CSS (Cascading Style Sheets).
 Częściowo implementuje interfejsy DOM Level 2 Stylesheets oraz DOM
 Level 2 CSS.
 
-%package -n python3-%{module}
-Summary:	A CSS Cascading Style Sheets library for Python 3
-Summary(pl.UTF-8):	Biblioteka CSS (Cascading Style Sheets) dla Pythona 3
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-%{module}
-A Python package to parse and build CSS Cascading Style Sheets. Partly
-implements the DOM Level 2 Stylesheets and DOM Level 2 CSS interfaces.
-
-%description -n python3-%{module} -l pl.UTF-8
-Pakiet Pythona do analizy i tworzenia CSS (Cascading Style Sheets).
-Częściowo implementuje interfejsy DOM Level 2 Stylesheets oraz DOM
-Level 2 CSS.
-
 %prep
 %setup -q -n %{module}-%{version}
 %patch -P 0 -p1
@@ -79,72 +55,33 @@ fi
 %endif
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
 %{__python} -m unittest discover -t build-2/lib -s build-2/lib/cssutils/tests
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -t build-3/lib -s build-3/lib/cssutils/tests
-%endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python3}
-%py3_install
-
-for f in csscapture csscombine cssparse ; do
-	%{__mv} $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT%{_bindir}/${f}-3
-done
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/cssutils/tests
-%endif
-
-%if %{with python2}
 %py_install
 
 for f in csscapture csscombine cssparse ; do
 	%{__mv} $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT%{_bindir}/${f}-2
-	ln -sf ${f}-2 $RPM_BUILD_ROOT%{_bindir}/$f
 done
 
 %py_postclean
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/cssutils/tests
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc README.txt
-%attr(755,root,root) %{_bindir}/csscapture
-%attr(755,root,root) %{_bindir}/csscombine
-%attr(755,root,root) %{_bindir}/cssparse
 %attr(755,root,root) %{_bindir}/csscapture-2
 %attr(755,root,root) %{_bindir}/csscombine-2
 %attr(755,root,root) %{_bindir}/cssparse-2
 %{py_sitescriptdir}/cssutils
 %{py_sitescriptdir}/encutils
 %{py_sitescriptdir}/cssutils-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/csscapture-3
-%attr(755,root,root) %{_bindir}/csscombine-3
-%attr(755,root,root) %{_bindir}/cssparse-3
-%{py3_sitescriptdir}/cssutils
-%{py3_sitescriptdir}/encutils
-%{py3_sitescriptdir}/cssutils-%{version}-py*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-cssutils.git/commitdiff/81b56e09a39748ce99baa22a6240ab59f0cf6834



More information about the pld-cvs-commit mailing list