Init package
This commit is contained in:
parent
8945a9655d
commit
a69acc8b03
22
vamp-plugin-sdk-2.5-libdir.patch
Normal file
22
vamp-plugin-sdk-2.5-libdir.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- vamp-plugin-sdk-2.5/Makefile.in.libdir 2013-05-08 16:36:02.000000000 +0700
|
||||||
|
+++ vamp-plugin-sdk-2.5/Makefile.in 2013-06-19 18:11:42.065277534 +0700
|
||||||
|
@@ -73,8 +73,8 @@
|
||||||
|
INSTALL_API_HEADERS = $(INSTALL_PREFIX)/include/vamp
|
||||||
|
INSTALL_SDK_HEADERS = $(INSTALL_PREFIX)/include/vamp-sdk
|
||||||
|
INSTALL_HOSTSDK_HEADERS = $(INSTALL_PREFIX)/include/vamp-hostsdk
|
||||||
|
-INSTALL_SDK_LIBS = $(INSTALL_PREFIX)/lib
|
||||||
|
-INSTALL_PLUGINS = $(INSTALL_PREFIX)/lib/vamp
|
||||||
|
+INSTALL_SDK_LIBS = @libdir@
|
||||||
|
+INSTALL_PLUGINS = $(INSTALL_SDK_LIBS)/vamp
|
||||||
|
INSTALL_BINARIES = $(INSTALL_PREFIX)/bin
|
||||||
|
|
||||||
|
INSTALL_SDK_LIBNAME = libvamp-sdk.so.2.5.0
|
||||||
|
@@ -89,7 +89,7 @@
|
||||||
|
INSTALL_HOSTSDK_STATIC = libvamp-hostsdk.a
|
||||||
|
INSTALL_HOSTSDK_LA = libvamp-hostsdk.la
|
||||||
|
|
||||||
|
-INSTALL_PKGCONFIG = $(INSTALL_PREFIX)/lib/pkgconfig
|
||||||
|
+INSTALL_PKGCONFIG = $(INSTALL_SDK_LIBS)/pkgconfig
|
||||||
|
|
||||||
|
# Flags required to tell the compiler to create a dynamically loadable object
|
||||||
|
#
|
||||||
BIN
vamp-plugin-sdk-2.5.tar.gz
Normal file
BIN
vamp-plugin-sdk-2.5.tar.gz
Normal file
Binary file not shown.
107
vamp-plugin-sdk.spec
Normal file
107
vamp-plugin-sdk.spec
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
Name: vamp-plugin-sdk
|
||||||
|
Version: 2.5
|
||||||
|
Release: 1
|
||||||
|
Summary: An API for audio analysis and feature extraction plugins
|
||||||
|
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: BSD
|
||||||
|
URL: http://www.vamp-plugins.org/
|
||||||
|
Source0: http://code.soundsoftware.ac.uk/attachments/download/690/vamp-plugin-sdk-2.5.tar.gz
|
||||||
|
# https://sourceforge.net/tracker/?func=detail&aid=1884043&group_id=192001&atid=939644
|
||||||
|
Patch0: %{name}-2.5-libdir.patch
|
||||||
|
|
||||||
|
BuildRequires: libsndfile-devel
|
||||||
|
#Requires:
|
||||||
|
|
||||||
|
%description
|
||||||
|
Vamp is an API for C and C++ plugins that process sampled audio data
|
||||||
|
to produce descriptive output (measurements or semantic observations).
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Static libraries for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description static
|
||||||
|
The %{name}-static package contains library files for
|
||||||
|
developing static applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1 -b .libdir
|
||||||
|
sed -i 's|/lib/vamp|/%{_lib}/vamp|g' src/vamp-hostsdk/PluginHostAdapter.cpp
|
||||||
|
sed -i 's|/lib/|/%{_lib}/|g' src/vamp-hostsdk/PluginLoader.cpp
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
# fix libdir
|
||||||
|
find . -name '*.pc.in' -exec sed -i 's|/lib|/%{_lib}|' {} ';'
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT #INSTALL_PREFIX=%{_prefix} LIB=/%{_lib}
|
||||||
|
|
||||||
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
|
# create Makefile for examples
|
||||||
|
cd examples
|
||||||
|
echo CXXFLAGS=$RPM_OPT_FLAGS -fpic >> Makefile-%{_arch}
|
||||||
|
echo bundle: `ls *.o` >> Makefile
|
||||||
|
echo -e "\t"g++ \$\(CXXFLAGS\) -shared -Wl,-Bsymbolic \
|
||||||
|
-o vamp-example-plugins.so \
|
||||||
|
*.o \$\(pkg-config --libs vamp-sdk\) >> Makefile
|
||||||
|
echo `ls *.cpp`: >> Makefile
|
||||||
|
echo -e "\t"g++ \$\(CXXFLAGS\) -c $*.cpp >> Makefile
|
||||||
|
echo clean: >> Makefile
|
||||||
|
echo -e "\t"-rm *.o *.so >> Makefile
|
||||||
|
# clean directory up so we can package the sources
|
||||||
|
make clean
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING README
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%{_libdir}/vamp
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc examples
|
||||||
|
%{_bindir}/vamp-*
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/*.a
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu May 13 2021 He Rengui <herengui@uniontech.com> - 2.5-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user