Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2970ddb5b | ||
| 1ce8981143 | |||
|
|
ab97732b33 | ||
| 504c53557f | |||
| fa4a50c4cb | |||
| 4ab0b2aaaa |
7 changed files with 186 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
vamp-plugin-sdk-2.1.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: vamp-plugin-sdk
|
||||
# $Id$
|
||||
NAME := vamp-plugin-sdk
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
13252077a73987dae72a9174e529b6b9 vamp-plugin-sdk-2.1.tar.gz
|
||||
10
vamp-plugin-sdk-2.0-gcc44.patch
Normal file
10
vamp-plugin-sdk-2.0-gcc44.patch
Normal file
|
|
@ -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 <cmath>
|
||||
+#include <cstdio>
|
||||
|
||||
|
||||
class FixedTempoEstimator::D
|
||||
22
vamp-plugin-sdk-2.1-libdir.patch
Normal file
22
vamp-plugin-sdk-2.1-libdir.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
--- vamp-plugin-sdk-2.1/Makefile.in.libdir 2009-09-24 14:05:26.000000000 +0200
|
||||
+++ vamp-plugin-sdk-2.1/Makefile.in 2010-06-03 18:18:18.404376697 +0200
|
||||
@@ -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.1.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
|
||||
#
|
||||
152
vamp-plugin-sdk.spec
Normal file
152
vamp-plugin-sdk.spec
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
Name: vamp-plugin-sdk
|
||||
Version: 2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: An API for audio analysis and feature extraction plugins
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: BSD
|
||||
URL: http://www.vamp-plugins.org/
|
||||
Source0: http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-%{version}.tar.gz
|
||||
# https://sourceforge.net/tracker/?func=detail&aid=1884043&group_id=192001&atid=939644
|
||||
Patch0: %{name}-2.1-libdir.patch
|
||||
# https://sourceforge.net/tracker/?func=detail&aid=1884030&group_id=192001&atid=939644
|
||||
Patch1: %{name}-2.0-gcc44.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
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
|
||||
%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 %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
# 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
|
||||
# Scan shared libs for unpatched '/lib' strings to prevent issues
|
||||
# on 64-bit multilib platforms.
|
||||
[ $(strings ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.?|grep /lib|sed -e 's!/%{_lib}!/__FEDORA-LIB__!g'|grep -c /lib) -eq 0 ]
|
||||
|
||||
|
||||
%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
|
||||
* Fri May 28 2010 Michel Salim <salimma@fedoraproject.org> - 2.1-1
|
||||
- Update to 2.1
|
||||
- multilib fix: Makefile for examples is now arch-tagged
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Tue Mar 31 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0-5
|
||||
- Add another sed libdir fix for PluginLoader.cpp (#469777)
|
||||
plus a check section to scan for libdir issues
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Sun Feb 8 2009 Michel Salim <salimma@fedoraproject.org> - 2.0-3
|
||||
- Fix compilation problem with GCC 4.4
|
||||
|
||||
* Tue Dec 30 2008 Michel Salim <salimma@fedoraproject.org> - 2.0-2
|
||||
- More libdir fixes (bug #469777)
|
||||
|
||||
* Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 2.0-1
|
||||
- Update to 2.0
|
||||
|
||||
* Thu Jul 17 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.3-1
|
||||
- Update to 1.3
|
||||
|
||||
* Thu Jan 31 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-4
|
||||
- Add some #includes, needed due to GCC 4.3's header dependency cleanup
|
||||
|
||||
* Mon Jan 28 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-3
|
||||
- Add examples to -devel subpackage
|
||||
- Fix .pc files
|
||||
- Preserve timestamps when installing
|
||||
|
||||
* Sun Jan 27 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-2
|
||||
- Add missing build requirement on libsndfile-devel
|
||||
|
||||
* Wed Jan 16 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-1
|
||||
- Initial Fedora package
|
||||
Loading…
Add table
Add a link
Reference in a new issue