[packages/hpklinux] - python2 is no longer supported

qboosh qboosh at pld-linux.org
Thu Apr 25 21:20:06 CEST 2024


commit 5aa07ccf41c460b2c7177dd46078aa0dbc893358
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 25 21:08:56 2024 +0200

    - python2 is no longer supported

 hpklinux.spec | 36 ------------------------------------
 1 file changed, 36 deletions(-)
---
diff --git a/hpklinux.spec b/hpklinux.spec
index d1a2966..8c231f6 100644
--- a/hpklinux.spec
+++ b/hpklinux.spec
@@ -1,6 +1,5 @@
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x module
 %bcond_without	python3	# CPython 3.x module
 
 Summary:	Linux HPI driver for AudioScience audio adapters
@@ -20,10 +19,6 @@ BuildRequires:	automake
 BuildRequires:	libtool >= 2:1.5
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%endif
 %if %{with python3}
 BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
@@ -76,18 +71,6 @@ Static HPI library.
 %description static -l pl.UTF-8
 Statyczna biblioteka HPI.
 
-%package -n python-hpi
-Summary:	Python Linux HPI library
-Summary(pl.UTF-8):	Biblioteka Linux HPI dla Pythona
-Group:		Libraries/Python
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description -n python-hpi
-Python Linux HPI library.
-
-%description -n python-hpi -l pl.UTF-8
-Biblioteka Linux HPI dla Pythona.
-
 %package -n python3-hpi
 Summary:	Python Linux HPI library
 Summary(pl.UTF-8):	Biblioteka Linux HPI dla Pythona
@@ -115,10 +98,6 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
 
 cd asi-python
 
-%if %{with python2}
-%py_build
-%endif
-
 %if %{with python3}
 %py3_build
 %endif
@@ -140,14 +119,6 @@ rm -rf $RPM_BUILD_ROOT
 
 cd asi-python
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-# package only py3 variant
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*.py
-%endif
-
 %if %{with python3}
 %py3_install
 %endif
@@ -187,13 +158,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libhpimux.a
 %{_libdir}/libhpiudp.a
 
-%if %{with python2}
-%files -n python-hpi
-%defattr(644,root,root,755)
-%{py_sitescriptdir}/audioscience
-%{py_sitescriptdir}/hpi-2.0-py*.egg-info
-%endif
-
 %if %{with python3}
 %files -n python3-hpi
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hpklinux.git/commitdiff/5aa07ccf41c460b2c7177dd46078aa0dbc893358



More information about the pld-cvs-commit mailing list