Init package
This commit is contained in:
parent
089a898161
commit
f5e83cbfa3
44
rubberband-1.8.2-mk.patch
Normal file
44
rubberband-1.8.2-mk.patch
Normal file
@ -0,0 +1,44 @@
|
||||
--- rubberband-1.8.2/Makefile.in.mk 2018-05-15 10:43:39.000000000 -0700
|
||||
+++ rubberband-1.8.2/Makefile.in 2018-10-17 20:42:02.869414480 -0700
|
||||
@@ -20,11 +20,11 @@
|
||||
|
||||
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 := $(INSTALL_LIBDIR)/vamp
|
||||
+INSTALL_LADSPADIR := $(INSTALL_LIBDIR)/ladspa
|
||||
INSTALL_LRDFDIR := $(PREFIX)/share/ladspa/rdf
|
||||
-INSTALL_PKGDIR := $(PREFIX)/lib/pkgconfig
|
||||
+INSTALL_PKGDIR := $(INSTALL_LIBDIR)/pkgconfig
|
||||
|
||||
LIBNAME := librubberband
|
||||
JNINAME := librubberband-jni
|
||||
@@ -174,19 +174,17 @@
|
||||
$(MKDIR) -p $(DESTDIR)$(INSTALL_LADSPADIR)
|
||||
$(MKDIR) -p $(DESTDIR)$(INSTALL_LRDFDIR)
|
||||
$(MKDIR) -p $(DESTDIR)$(INSTALL_PKGDIR)
|
||||
- cp $(PROGRAM_TARGET) $(DESTDIR)$(INSTALL_BINDIR)
|
||||
- cp $(PUBLIC_INCLUDES) $(DESTDIR)$(INSTALL_INCDIR)
|
||||
- cp $(STATIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)
|
||||
+ cp -p $(PROGRAM_TARGET) $(DESTDIR)$(INSTALL_BINDIR)
|
||||
+ cp -p $(PUBLIC_INCLUDES) $(DESTDIR)$(INSTALL_INCDIR)
|
||||
+ cp -p $(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)
|
||||
+ cp -p $(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 -p $(VAMP_TARGET) $(DESTDIR)$(INSTALL_VAMPDIR)
|
||||
cp vamp/vamp-rubberband.cat $(DESTDIR)$(INSTALL_VAMPDIR)
|
||||
- cp $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)
|
||||
+ cp -p $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)
|
||||
cp ladspa/ladspa-rubberband.cat $(DESTDIR)$(INSTALL_LADSPADIR)
|
||||
cp ladspa/ladspa-rubberband.rdf $(DESTDIR)$(INSTALL_LRDFDIR)
|
||||
sed "s,%PREFIX%,$(PREFIX)," rubberband.pc.in \
|
||||
BIN
rubberband-1.8.2.tar.bz2
Normal file
BIN
rubberband-1.8.2.tar.bz2
Normal file
Binary file not shown.
72
rubberband.spec
Normal file
72
rubberband.spec
Normal file
@ -0,0 +1,72 @@
|
||||
Name: rubberband
|
||||
Version: 1.8.2
|
||||
Release: 1
|
||||
Summary: Audio time-stretching and pitch-shifting library
|
||||
|
||||
License: GPLv2+
|
||||
URL: http://www.breakfastquay.com/rubberband/
|
||||
Source0: https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
|
||||
Patch0: %{name}-1.8.2-mk.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ladspa-devel
|
||||
BuildRequires: pkgconfig(fftw3)
|
||||
BuildRequires: pkgconfig(samplerate)
|
||||
BuildRequires: pkgconfig(sndfile)
|
||||
BuildRequires: vamp-plugin-sdk-devel
|
||||
|
||||
Requires: ladspa
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
sed -i 's|{exec_prefix}/lib|{exec_prefix}/%{_lib}|' rubberband.pc.in
|
||||
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.txt
|
||||
%{_bindir}/rubberband
|
||||
%{_libdir}/*.so.*
|
||||
%{_libdir}/ladspa/ladspa-rubberband.*
|
||||
%{_datadir}/ladspa/rdf/ladspa-rubberband.rdf
|
||||
%{_libdir}/vamp/vamp-rubberband.*
|
||||
|
||||
%files devel
|
||||
%doc CHANGELOG
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/rubberband.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 13 2021 He Rengui <herengui@uniontech.com> - 1.8.2-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user