[packages/rubberband] - updated to 3.2.1

qboosh qboosh at pld-linux.org
Sat Apr 8 20:20:54 CEST 2023


commit c8fbe83c3ef941ab525ff21446979bdd16e88c18
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 8 20:23:26 2023 +0200

    - updated to 3.2.1

 rubberband-update.patch | 11 -----------
 rubberband.spec         | 16 +++++++++++++---
 2 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/rubberband.spec b/rubberband.spec
index 2949d60..278a0a3 100644
--- a/rubberband.spec
+++ b/rubberband.spec
@@ -1,23 +1,26 @@
 #
 # Conditional build:
 %bcond_without	java		# JNI library
+%bcond_with	fftw3		# fftw3 for FFT (default is builtin)
 %bcond_with	libsamplerate	# libsamplerate for resampling (default is builtin)
 
 Summary:	An audio time-stretching and pitch-shifting library and utility program
 Summary(pl.UTF-8):	Biblioteka i narzędzie do rozciągania i harmonizowania dźwięku
 Name:		rubberband
-Version:	3.0.0
+Version:	3.2.1
 Release:	1
 License:	GPL v2+
 Group:		Applications/Sound
 Source0:	https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
-# Source0-md5:	30e220e8ca2202d52c58714793f93c23
+# Source0-md5:	722f5687d5e020874b865d87c41e03e9
 Patch0:		%{name}-pc.patch
 Patch1:		%{name}-update.patch
 URL:		https://www.breakfastquay.com/rubberband/
-BuildRequires:	fftw3-devel >= 3.0.0
+# also kissfft, sleef >= 3.3.0, ipp possible
+%{?with_fftw3:BuildRequires:	fftw3-devel >= 3.0.0}
 %{?with_jni:BuildRequires:	jdk}
 BuildRequires:	ladspa-devel
+# also speexdsp >= 1.0.0 possible
 %{?with_libsamplerate:BuildRequires:	libsamplerate-devel >= 0.1.8}
 BuildRequires:	libsndfile-devel >= 1.0.16
 BuildRequires:	libstdc++-devel >= 6:5
@@ -135,8 +138,15 @@ Wtyczka Vamp rubberband.
 %patch1 -p1
 
 %build
+%if %{with java}
+# required for meson javac detection (at least meson 1.0.1 / openjdk8 combo)
+export CLASSPATH=.
+%endif
+
 %meson build \
 	%{?with_java:-Dextra_include_dirs="%{_jvmdir}/java/include,%{_jvmdir}/java/include/linux"} \
+	%{?with_fft:-Dfft=fftw} \
+	-Djni=%{__enabled_disabled java} \
 	%{?with_libsamplerate:-Dresampler=libsamplerate}
 
 %ninja_build -C build
diff --git a/rubberband-update.patch b/rubberband-update.patch
index 1b68702..2c7fdfb 100644
--- a/rubberband-update.patch
+++ b/rubberband-update.patch
@@ -1,14 +1,3 @@
---- rubberband-3.0.0/src/jni/RubberBandStretcherJNI.cpp.orig	2022-07-07 16:59:49.000000000 +0200
-+++ rubberband-3.0.0/src/jni/RubberBandStretcherJNI.cpp	2022-07-09 16:00:27.218515481 +0200
-@@ -23,7 +23,7 @@
- 
- #include "rubberband/RubberBandStretcher.h"
- 
--#include "system/Allocators.h"
-+#include "common/Allocators.h"
- 
- #include <jni.h>
- 
 --- rubberband-3.0.0/src/common/VectorOpsComplex.cpp.orig	2022-07-07 16:59:49.000000000 +0200
 +++ rubberband-3.0.0/src/common/VectorOpsComplex.cpp	2022-07-09 16:00:42.731764772 +0200
 @@ -23,7 +23,7 @@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rubberband.git/commitdiff/c8fbe83c3ef941ab525ff21446979bdd16e88c18



More information about the pld-cvs-commit mailing list