]> git.pld-linux.org Git - packages/hpklinux.git/commitdiff
- python2 is no longer supported master
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 25 Apr 2024 19:08:56 +0000 (21:08 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 25 Apr 2024 19:08:56 +0000 (21:08 +0200)
hpklinux.spec

index d1a29664538a50989f9abe72e0367fc3d687f70f..8c231f62f2c02e4c3b99fb7950306030a3cebf7d 100644 (file)
@@ -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)
This page took 0.175348 seconds and 4 git commands to generate.