[packages/vpb-driver] - updated to 4.2.61 (the last version available, site has been shut down); keep 4.2.58 sources for f

qboosh qboosh at pld-linux.org
Sat Feb 15 20:36:17 CET 2025


commit 3896e8903ff42a896981e3d7f503104cd2e3a960
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 15 20:24:47 2025 +0100

    - updated to 4.2.61 (the last version available, site has been shut down); keep 4.2.58 sources for firmware

 gcc8.patch       | 11 -----------
 linux-4.12.patch | 12 ------------
 vpb-driver.spec  | 40 +++++++++++++++++++++++-----------------
 3 files changed, 23 insertions(+), 40 deletions(-)
---
diff --git a/vpb-driver.spec b/vpb-driver.spec
index 9c33fb2..f9ce744 100644
--- a/vpb-driver.spec
+++ b/vpb-driver.spec
@@ -1,8 +1,8 @@
 #
 # Conditional build:
-%bcond_without  kernel		# don't build kernel modules
-%bcond_without	userspace	# don't build userspace package
-%bcond_without	static_libs	# don't build static libraries
+%bcond_without  kernel		# kernel modules
+%bcond_without	userspace	# userspace package
+%bcond_without	static_libs	# static libraries
 %bcond_with	pri		# ISDN devices support (modified libpri)
 
 # The goal here is to have main, userspace, package built once with
@@ -21,29 +21,35 @@ exit 1
 
 %define		_duplicate_files_terminate_build	0
 
-%define		rel	12
+%define		rel	1
 %define		pname	vpb-driver
 Summary:	Voicetronix voice processing board (VPB) driver software
 Summary(pl.UTF-8):	Oprogramowanie sterowników dla kart przetwarzających głos (VPB) Voicetronix
 Name:		%{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version:	4.2.58
+Version:	4.2.61
 Release:	%{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
 License:	LGPL v2.1+ (libraries), GPL v2+ (libpri library, kernel module)
 Group:		Libraries
-Source0:	http://www.voicetronix.com.au/Downloads/vpb-driver-4.x/%{pname}-%{version}.tar.gz
-# Source0-md5:	f8c85b52e8d01b04d86632e98ac59d19
+# originally, but dead now
+#Source0:	http://www.voicetronix.com.au/Downloads/vpb-driver-4.x/%{pname}-%{version}.tar.gz
+# use sources archived by Debian
+Source0:	http://deb.debian.org/debian/pool/main/v/vpb-driver/%{pname}_%{version}.orig.tar.gz
+# Source0-md5:	6c220b9abc4881361e8c08e48dc83bcb
+# but it misses firmware, take that from previous release
+Source1:	%{pname}-4.2.58.tar.gz
+# Source1-md5:	f8c85b52e8d01b04d86632e98ac59d19
 Patch0:		%{pname}-make.patch
 Patch1:		userspace-only.patch
-Patch2:		linux-4.12.patch
 Patch3:		kernel-4.14.patch
-Patch4:		gcc8.patch
 Patch5:		kernel-5.6.patch
 Patch6:		kernel-5.13.patch
 Patch7:		kernel-5.17.patch
 Patch8:		kernel-5.18.patch
 Patch9:		pthread.patch
 Patch10:	kernel-6.5.patch
-URL:		http://www.voicetronix.com.au/downloads.htm#linux
+# dead now
+#URL:		http://www.voicetronix.com.au/downloads.htm#linux
+URL:		http://www.voicetronix.com.au/
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	libstdc++-devel
@@ -149,12 +155,12 @@ p=`pwd`\
 %{?with_kernel:%{expand:%create_kernel_packages}}
 
 %prep
-%setup -q -n %{pname}-%{version}
+%setup -q -n %{pname}-%{version} -a1
+%{__mv} %{pname}-4.2.58/firmware .
+%{__rm} -r %{pname}-4.2.58
 %patch -P 0 -p1
 %patch -P 1 -p1
-%patch -P 2 -p1
 %patch -P 3 -p1
-%patch -P 4 -p1
 %patch -P 5 -p1
 %patch -P 6 -p1
 %patch -P 7 -p1
@@ -216,8 +222,8 @@ chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
 
 # install man pages only for packaged software
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install doc/vpbconf.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install doc/vpbscan.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p doc/vpbconf.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p doc/vpbscan.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %if %{with static_libs}
 install build-static/src/{libtoneg/libtoneg.a,libvpb/libvpb.a} $RPM_BUILD_ROOT%{_libdir}
@@ -243,9 +249,9 @@ rm -rf $RPM_BUILD_ROOT
 %files -n vpb-libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libtoneg.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtoneg.so.0
+%attr(755,root,root) %ghost %{_libdir}/libtoneg.so.1
 %attr(755,root,root) %{_libdir}/libvpb.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libvpb.so.0
+%attr(755,root,root) %ghost %{_libdir}/libvpb.so.1
 
 %files -n vpb-devel
 %defattr(644,root,root,755)
diff --git a/gcc8.patch b/gcc8.patch
deleted file mode 100644
index ad0048c..0000000
--- a/gcc8.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- vpb-driver-4.2.58/src/utils/dtmfcheck.cpp.orig	2014-09-28 20:02:28.000000000 +0200
-+++ vpb-driver-4.2.58/src/utils/dtmfcheck.cpp	2019-12-01 17:11:16.935351767 +0100
-@@ -49,7 +49,7 @@
- 	printf("  --block size  Granularity of analysis.  Default is 16000 samples (2sec)\n");
- } //}}}
- 
--static double dBFactor( double db ) { return pow10( db / 20.0 ); }
-+static double dBFactor( double db ) { return pow( 10, db / 20.0 ); }
- 
- static inline void LinearGain( double gain, int16_t *buf, size_t len )
- { //{{{
diff --git a/linux-4.12.patch b/linux-4.12.patch
deleted file mode 100644
index 724a547..0000000
--- a/linux-4.12.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- vpb-driver-4.2.58/src/vpb/vpb.c~	2014-09-28 20:02:28.000000000 +0200
-+++ vpb-driver-4.2.58/src/vpb/vpb.c	2017-08-01 10:53:58.063093297 +0200
-@@ -121,6 +121,9 @@
- #include <linux/pci.h>
- #include <linux/delay.h>
- #include <asm/uaccess.h>
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
-+#include <linux/uaccess.h>
-+#endif
- 
- 
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,9)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vpb-driver.git/commitdiff/3896e8903ff42a896981e3d7f503104cd2e3a960



More information about the pld-cvs-commit mailing list