From dbba1a4fc047b0f29a9a1557e8d9dd06b77a7c94b024aea4e4a069026a16fb08 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 18 Jul 2009 03:10:37 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vamp-plugin-sdk?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + ready | 0 vamp-plugin-sdk-2.0-gcc44.patch | 10 +++ vamp-plugin-sdk-2.0-libdir.patch | 22 +++++++ vamp-plugin-sdk-2.0.tar.bz2 | 3 + vamp-plugin-sdk.changes | 6 ++ vamp-plugin-sdk.spec | 103 +++++++++++++++++++++++++++++++ 8 files changed, 168 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ready create mode 100644 vamp-plugin-sdk-2.0-gcc44.patch create mode 100644 vamp-plugin-sdk-2.0-libdir.patch create mode 100644 vamp-plugin-sdk-2.0.tar.bz2 create mode 100644 vamp-plugin-sdk.changes create mode 100644 vamp-plugin-sdk.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/vamp-plugin-sdk-2.0-gcc44.patch b/vamp-plugin-sdk-2.0-gcc44.patch new file mode 100644 index 0000000..9daf362 --- /dev/null +++ b/vamp-plugin-sdk-2.0-gcc44.patch @@ -0,0 +1,10 @@ +--- vamp-plugin-sdk-2.0/examples/FixedTempoEstimator.cpp.gcc44 2008-12-01 06:48:41.000000000 -0500 ++++ vamp-plugin-sdk-2.0/examples/FixedTempoEstimator.cpp 2009-02-08 00:31:38.751861057 -0500 +@@ -44,6 +44,7 @@ + using Vamp::RealTime; + + #include ++#include + + + class FixedTempoEstimator::D diff --git a/vamp-plugin-sdk-2.0-libdir.patch b/vamp-plugin-sdk-2.0-libdir.patch new file mode 100644 index 0000000..0921ea4 --- /dev/null +++ b/vamp-plugin-sdk-2.0-libdir.patch @@ -0,0 +1,22 @@ +--- vamp-plugin-sdk-2.0/Makefile.in.libdir 2008-12-01 06:48:41.000000000 -0500 ++++ vamp-plugin-sdk-2.0/Makefile.in 2008-12-14 17:04:13.000000000 -0500 +@@ -71,8 +71,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.0.0 +@@ -87,7 +87,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 + # diff --git a/vamp-plugin-sdk-2.0.tar.bz2 b/vamp-plugin-sdk-2.0.tar.bz2 new file mode 100644 index 0000000..453f991 --- /dev/null +++ b/vamp-plugin-sdk-2.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec4051658fd3e7dbdd0b568c0faa157f280deb73bd57e2530c43274d9e4a8adc +size 117847 diff --git a/vamp-plugin-sdk.changes b/vamp-plugin-sdk.changes new file mode 100644 index 0000000..91336d2 --- /dev/null +++ b/vamp-plugin-sdk.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Jul 7 22:21:50 CEST 2009 - mseben@suse.cz + +- initial package created from fedora spec + +------------------------------------------------------------------- diff --git a/vamp-plugin-sdk.spec b/vamp-plugin-sdk.spec new file mode 100644 index 0000000..5168663 --- /dev/null +++ b/vamp-plugin-sdk.spec @@ -0,0 +1,103 @@ +# +# spec file for package vamp-plugin-sdk (Version 2.0) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: vamp-plugin-sdk +Version: 2.0 +Release: 1 +Summary: An API for audio analysis and feature extraction plugins +Group: System Environment/Libraries +License: BSD +Url: http://www.vamp-plugins.org/ +Source: %{name}-%{version}.tar.bz2 +Patch0: %{name}-2.0-libdir.patch +Patch1: %{name}-2.0-gcc44.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ libsndfile-devel pkg-config +#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 +License: BSD +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}. + + +%prep +%setup -q +%patch0 -p1 -b .libdir +%patch1 -p1 -b .gcc44 +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 %{?jobs:-j%jobs} + +%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 +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 + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING README +%exclude %{_libdir}/*.a +%{_libdir}/*.so.* +%{_libdir}/vamp + +%files devel +%defattr(-,root,root,-) +%doc examples +%{_bindir}/vamp-* +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog