1
0
forked from pool/librubberband

Accepting request 993676 from multimedia:libs

- Update to version 3.0.0
  * Introduces a new engine
  * Various other changes
- Add rubberband-lv2 package
- Drop obsoleted patch: rubberband-mk.patch

OBS-URL: https://build.opensuse.org/request/show/993676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/librubberband?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2022-08-09 13:25:57 +00:00 committed by Git OBS Bridge
commit 4ddc8790c9
5 changed files with 44 additions and 72 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Aug 3 17:55:40 UTC 2022 - llyyr <llyyr.public@gmail.com>
- Update to version 3.0.0
* Introduces a new engine
* Various other changes
- Add rubberband-lv2 package
- Drop obsoleted patch: rubberband-mk.patch
-------------------------------------------------------------------
Mon Sep 7 10:46:43 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package librubberband
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define sover 2
Name: librubberband
Version: 1.8.2
Version: 3.0.0
Release: 0
Summary: Audio time-stretching and pitch-shifting library
License: GPL-2.0-or-later
@ -26,17 +26,19 @@ Group: System/Libraries
URL: https://www.breakfastquay.com/rubberband/
Source: https://breakfastquay.com/files/releases/rubberband-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: rubberband-mk.patch
BuildRequires: dos2unix
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: ladspa-devel
BuildRequires: meson >= 0.53.0
BuildRequires: pkgconfig
BuildRequires: vamp-plugin-sdk-devel
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(lv2)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(vamp-sdk)
Requires: ladspa
Requires: lv2
%description
Rubber Band is a library and utility program that permits you to change the
@ -68,6 +70,14 @@ Requires: %{name}%{sover} = %{version}
%description -n rubberband-ladspa
Package rubberband-ladspa is LADSPA plugin that can change the pitch of a sound in real-time.
%package -n rubberband-lv2
Summary: LV2 plugins for %{name}
Group: Productivity/Multimedia/Sound/Utilities
Requires: %{name}%{sover} = %{version}
%description -n rubberband-lv2
Package rubberband-lv2 contains the rubberband LV2 plugin.
%package -n rubberband-vamp
Summary: Vamp plugins for %{name}
Group: Productivity/Multimedia/Sound/Editors and Convertors
@ -102,43 +112,33 @@ developing applications that use %{name}.
%prep
%setup -q -n rubberband-%{version}
%patch1 -p1
# Fix README EOL encoding
dos2unix -o README.txt
mv README.txt README
%build
%configure
%make_build
%meson -Dfft=fftw
%meson_build
%install
%make_install
mkdir -p %{buildroot}%{_mandir}/man1
pushd %{buildroot}%{_mandir}/man1
cp -v %{buildroot}%{_bindir}/rubberband ./
help2man --no-discard-stderr \
-N -o rubberband.1 ./rubberband
rm rubberband
popd
%meson_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
rm -rf %{buildroot}%{_libdir}/*.a
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%license COPYING
%doc README
%doc README.md
%{_libdir}/%{name}.so.%{sover}*
%files devel
%doc
%{_includedir}/rubberband
%{_libdir}/%{name}.so
%dir %{_includedir}/rubberband
%{_includedir}/rubberband/*.h
%{_libdir}/librubberband.so
%{_libdir}/pkgconfig/rubberband.pc
%files -n rubberband-cli
%{_bindir}/rubberband
%{_mandir}/man1/rubberband.1%{?ext_man}
%{_bindir}/rubberband-r3
%files -n rubberband-ladspa
%dir %{_libdir}/ladspa
@ -148,6 +148,13 @@ popd
%{_libdir}/ladspa/ladspa-rubberband.so
%{_datadir}/ladspa/rdf/ladspa-rubberband.rdf
%files -n rubberband-lv2
%dir %{_libdir}/lv2
%dir %{_libdir}/lv2/rubberband.lv2
%{_libdir}/lv2/rubberband.lv2/lv2-rubberband.so
%{_libdir}/lv2/rubberband.lv2/lv2-rubberband.ttl
%{_libdir}/lv2/rubberband.lv2/manifest.ttl
%files -n rubberband-vamp
%dir %{_libdir}/vamp
%{_libdir}/vamp/vamp-rubberband.cat

View File

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

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

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

View File

@ -1,44 +0,0 @@
Index: rubberband-1.8.2/Makefile.in
===================================================================
--- rubberband-1.8.2.orig/Makefile.in
+++ rubberband-1.8.2/Makefile.in
@@ -20,11 +20,11 @@ AR := ar
INSTALL_BINDIR := $(PREFIX)/bin
INSTALL_INCDIR := $(PREFIX)/include/rubberband
-INSTALL_LIBDIR := $(PREFIX)/lib
-INSTALL_VAMPDIR := $(PREFIX)/lib/vamp
-INSTALL_LADSPADIR := $(PREFIX)/lib/ladspa
+INSTALL_LIBDIR := @libdir@
+INSTALL_VAMPDIR := @libdir@/vamp
+INSTALL_LADSPADIR := @libdir@/ladspa
INSTALL_LRDFDIR := $(PREFIX)/share/ladspa/rdf
-INSTALL_PKGDIR := $(PREFIX)/lib/pkgconfig
+INSTALL_PKGDIR := @libdir@/pkgconfig
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)