Accepting request 832771 from home:alois:branches:multimedia:libs

- Update to version 1.8.2
 * Fix a number of small memory leaks
 * Make stretcher more robust to being fed invalid input (with
   NaNs)
 * Various platform build fixes and improvements
 * The API is unchanged and the library is binary compatible
   with version 1.7.
- Refreshed rubberband-mk.patch
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/832771
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/librubberband?expand=0&rev=14
This commit is contained in:
Takashi Iwai 2020-09-23 13:20:40 +00:00 committed by Git OBS Bridge
parent 7ea3024cd3
commit 2659638a3b
5 changed files with 89 additions and 59 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Sep 7 10:46:43 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 1.8.2
* Fix a number of small memory leaks
* Make stretcher more robust to being fed invalid input (with
NaNs)
* Various platform build fixes and improvements
* The API is unchanged and the library is binary compatible
with version 1.7.
- Refreshed rubberband-mk.patch
- Spec cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 16 14:44:18 UTC 2015 - olaf@aepfle.de Thu Jul 16 14:44:18 UTC 2015 - olaf@aepfle.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package librubberband # spec file for package librubberband
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,50 +12,49 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define library_name librubberband2 %define sover 2
Name: librubberband Name: librubberband
Version: 1.8.1 Version: 1.8.2
Release: 0 Release: 0
Summary: Audio time-stretching and pitch-shifting library Summary: Audio time-stretching and pitch-shifting library
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/Libraries Group: System/Libraries
Url: http://www.breakfastquay.com/rubberband/ URL: https://www.breakfastquay.com/rubberband/
Source: http://code.breakfastquay.com/attachments/download/34/rubberband-%{version}.tar.bz2 Source: https://breakfastquay.com/files/releases/rubberband-%{version}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Patch1: rubberband-mk.patch Patch1: rubberband-mk.patch
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fftw3-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: help2man BuildRequires: help2man
BuildRequires: ladspa-devel BuildRequires: ladspa-devel
BuildRequires: libsamplerate-devel BuildRequires: pkgconfig
BuildRequires: libsndfile-devel BuildRequires: pkgconfig(fftw3)
BuildRequires: pkg-config BuildRequires: pkgconfig(samplerate)
BuildRequires: vamp-plugin-sdk-devel BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(vamp-sdk)
Requires: ladspa Requires: ladspa
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Rubber Band is a library and utility program that permits you to change the Rubber Band is a library and utility program that permits you to change the
tempo and pitch of an audio recording independently of one another. tempo and pitch of an audio recording independently of one another.
%package -n %{library_name} %package -n %{name}%{sover}
Summary: Audio time-stretching and pitch-shifting library Summary: Audio time-stretching and pitch-shifting library
Group: System/Libraries Group: System/Libraries
Url: http://www.breakfastquay.com/rubberband/ URL: https://www.breakfastquay.com/rubberband/
%description -n %{library_name} %description -n %{name}%{sover}
Rubber Band is a library and utility program that permits you to change the Rubber Band is a library and utility program that permits you to change the
tempo and pitch of an audio recording independently of one another. tempo and pitch of an audio recording independently of one another.
%package -n rubberband-cli %package -n rubberband-cli
Summary: Command line interface for %{name} Summary: Command line interface for %{name}
Group: Productivity/Multimedia/Sound/Editors and Convertors Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: %{library_name} = %{version} Requires: %{name}%{sover} = %{version}
%description -n rubberband-cli %description -n rubberband-cli
Package rubberband-cli contains a command-line utility that can be used to exploit Package rubberband-cli contains a command-line utility that can be used to exploit
@ -64,7 +63,7 @@ Rubber Band's capabilities.
%package -n rubberband-ladspa %package -n rubberband-ladspa
Summary: LADSPA plugin for %{name} Summary: LADSPA plugin for %{name}
Group: Productivity/Multimedia/Sound/Editors and Convertors Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: %{library_name} = %{version} Requires: %{name}%{sover} = %{version}
%description -n rubberband-ladspa %description -n rubberband-ladspa
Package rubberband-ladspa is LADSPA plugin that can change the pitch of a sound in real-time. Package rubberband-ladspa is LADSPA plugin that can change the pitch of a sound in real-time.
@ -72,7 +71,7 @@ Package rubberband-ladspa is LADSPA plugin that can change the pitch of a sound
%package -n rubberband-vamp %package -n rubberband-vamp
Summary: Vamp plugins for %{name} Summary: Vamp plugins for %{name}
Group: Productivity/Multimedia/Sound/Editors and Convertors Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: %{library_name} = %{version} Requires: %{name}%{sover} = %{version}
%description -n rubberband-vamp %description -n rubberband-vamp
This package contains the following Vamp plugins: This package contains the following Vamp plugins:
@ -94,7 +93,7 @@ This package contains the following Vamp plugins:
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version} Requires: %{name}%{sover} = %{version}
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
@ -103,20 +102,18 @@ developing applications that use %{name}.
%prep %prep
%setup -q -n rubberband-%{version} %setup -q -n rubberband-%{version}
%patch1 %patch1 -p1
# Fix README EOL encoding # Fix README EOL encoding
dos2unix -o README.txt dos2unix -o README.txt
mv README.txt README mv README.txt README
%build %build
%configure %configure
make %{?_smp_mflags} %make_build
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} %make_install
rm %{buildroot}%{_libdir}/*.a
%if 0%{?suse_version} > 1140
mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
pushd %{buildroot}%{_mandir}/man1 pushd %{buildroot}%{_mandir}/man1
cp -v %{buildroot}%{_bindir}/rubberband ./ cp -v %{buildroot}%{_bindir}/rubberband ./
@ -124,42 +121,36 @@ help2man --no-discard-stderr \
-N -o rubberband.1 ./rubberband -N -o rubberband.1 ./rubberband
rm rubberband rm rubberband
popd popd
%endif
%post -n %{library_name} -p /sbin/ldconfig %post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig %files -n %{name}%{sover}
%license COPYING
%files -n %{library_name} %doc README
%defattr(-,root,root,-) %{_libdir}/%{name}.so.%{sover}*
%doc README COPYING
%{_libdir}/*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc %doc
%{_includedir}/* %{_includedir}/rubberband
%{_libdir}/*.so %{_libdir}/%{name}.so
%{_libdir}/pkgconfig/rubberband.pc %{_libdir}/pkgconfig/rubberband.pc
%files -n rubberband-cli %files -n rubberband-cli
%defattr(-,root,root,-)
%{_bindir}/rubberband %{_bindir}/rubberband
%if 0%{?suse_version} > 1140 %{_mandir}/man1/rubberband.1%{?ext_man}
%{_mandir}/man1/rubberband.1.gz
%endif
%files -n rubberband-ladspa %files -n rubberband-ladspa
%defattr(-,root,root,-)
%dir %{_libdir}/ladspa %dir %{_libdir}/ladspa
%dir %{_datadir}/ladspa %dir %{_datadir}/ladspa
%dir %{_datadir}/ladspa/rdf %dir %{_datadir}/ladspa/rdf
%{_libdir}/ladspa/ladspa-rubberband.* %{_libdir}/ladspa/ladspa-rubberband.cat
%{_libdir}/ladspa/ladspa-rubberband.so
%{_datadir}/ladspa/rdf/ladspa-rubberband.rdf %{_datadir}/ladspa/rdf/ladspa-rubberband.rdf
%files -n rubberband-vamp %files -n rubberband-vamp
%defattr(-,root,root,-)
%dir %{_libdir}/vamp %dir %{_libdir}/vamp
%{_libdir}/vamp/vamp-rubberband.* %{_libdir}/vamp/vamp-rubberband.cat
%{_libdir}/vamp/vamp-rubberband.so
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff0c63b0b5ce41f937a8a3bc560f27918c5fe0b90c6bc1cb70829b86ada82b75
size 177501

3
rubberband-1.8.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86bed06b7115b64441d32ae53634fcc0539a50b9b648ef87443f936782f6c3ca
size 182232

View File

@ -1,18 +1,44 @@
--- Makefile.in Index: rubberband-1.8.2/Makefile.in
+++ Makefile.in ===================================================================
@@ -28,11 +28,11 @@ --- rubberband-1.8.2.orig/Makefile.in
+++ rubberband-1.8.2/Makefile.in
@@ -20,11 +20,11 @@ AR := ar
INSTALL_BINDIR := @prefix@/bin INSTALL_BINDIR := $(PREFIX)/bin
INSTALL_INCDIR := @prefix@/include/rubberband INSTALL_INCDIR := $(PREFIX)/include/rubberband
-INSTALL_LIBDIR := @prefix@/lib -INSTALL_LIBDIR := $(PREFIX)/lib
-INSTALL_VAMPDIR := @prefix@/lib/vamp -INSTALL_VAMPDIR := $(PREFIX)/lib/vamp
-INSTALL_LADSPADIR := @prefix@/lib/ladspa -INSTALL_LADSPADIR := $(PREFIX)/lib/ladspa
+INSTALL_LIBDIR := @libdir@ +INSTALL_LIBDIR := @libdir@
+INSTALL_VAMPDIR := @libdir@/vamp +INSTALL_VAMPDIR := @libdir@/vamp
+INSTALL_LADSPADIR := @libdir@/ladspa +INSTALL_LADSPADIR := @libdir@/ladspa
INSTALL_LRDFDIR := @prefix@/share/ladspa/rdf INSTALL_LRDFDIR := $(PREFIX)/share/ladspa/rdf
-INSTALL_PKGDIR := @prefix@/lib/pkgconfig -INSTALL_PKGDIR := $(PREFIX)/lib/pkgconfig
+INSTALL_PKGDIR := @libdir@/pkgconfig +INSTALL_PKGDIR := @libdir@/pkgconfig
all: bin lib $(PROGRAM_TARGET) $(STATIC_TARGET) $(DYNAMIC_TARGET) $(VAMP_TARGET) $(LADSPA_TARGET) LIBNAME := librubberband
JNINAME := librubberband-jni
@@ -45,7 +45,7 @@ JAR_TARGET := lib/$(JARNAME)
VAMP_TARGET := lib/vamp-rubberband$(DYNAMIC_EXTENSION)
LADSPA_TARGET := lib/ladspa-rubberband$(DYNAMIC_EXTENSION)
-all: bin lib $(PROGRAM_TARGET) $(STATIC_TARGET) $(DYNAMIC_TARGET) $(VAMP_TARGET) $(LADSPA_TARGET)
+all: bin lib $(PROGRAM_TARGET) $(DYNAMIC_TARGET) $(VAMP_TARGET) $(LADSPA_TARGET)
static: $(STATIC_TARGET)
dynamic: $(DYNAMIC_TARGET)
@@ -176,14 +176,12 @@ install: all
$(MKDIR) -p $(DESTDIR)$(INSTALL_PKGDIR)
cp $(PROGRAM_TARGET) $(DESTDIR)$(INSTALL_BINDIR)
cp $(PUBLIC_INCLUDES) $(DESTDIR)$(INSTALL_INCDIR)
- cp $(STATIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)
rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
cp $(DYNAMIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION)
ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
- cp -f $(JNI_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
cp $(VAMP_TARGET) $(DESTDIR)$(INSTALL_VAMPDIR)
cp vamp/vamp-rubberband.cat $(DESTDIR)$(INSTALL_VAMPDIR)
cp $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)