File vamp-qm-plugins.spec of Package vamp-qm-plugins

78
 
1
# vim: set sw=4 ts=4 et:
2
3
# Copyright (c) 2005-2009 oc2pus
4
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
17
Name:           vamp-qm-plugins
18
Summary:        A set of binary plugins for feature extraction from audio data
19
Group:          Productivity/Multimedia/Sound/Utilities
20
Url:            http://isophonics.net/QMVampPlugins
21
Version:        1.7
22
Release:        0.pm.1
23
License:        GPL-2.0+
24
Source0:        https://code.soundsoftware.ac.uk/attachments/download/109/qm-vamp-plugins-%{version}.tar.gz
25
Source1:        https://code.soundsoftware.ac.uk/attachments/download/103/qm-dsp-%{version}.tar.gz
26
Patch1:         qm-dsp-size_t.patch
27
Patch2:         qm-dsp-add_missing_include_dir.patch
28
Patch3:         qm-vamp-plugins-fix_linking.patch
29
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-build
30
ExclusiveArch:  %ix86 x86_64
31
Requires:       sonic-visualiser
32
BuildRequires:  gcc-c++
33
BuildRequires:  vamp-plugin-sdk-devel
34
35
%description
36
A set of binary plugins for feature extraction from audio data,
37
using the Vamp plugin format suitable for use in Sonic
38
Visualiser.
39
40
This plugin set includes tempo tracker, tonal change detection
41
function, chromagram, and constant-Q spectrogram extractors.
42
43
For further documentation see:
44
http://www.elec.qmul.ac.uk/digitalmusic/downloads/#qm-vamp-plugins
45
46
%prep
47
%setup -q -b 1 -n "qm-vamp-plugins-%{version}"
48
pushd "../qm-dsp-%{version}"
49
%patch -P 1
50
%patch -P 2
51
popd
52
%patch -P 3
53
54
%build
55
pushd "../qm-dsp-%{version}"
56
%__make %{?_smp_mflags} -f build/linux/Makefile.linux64
57
popd
58
%__ln_s "qm-dsp-%{version}" ../qm-dsp
59
%__ln_s "../qm-dsp-%{version}" qm-dsp
60
%__make %{?_smp_mflags} -f build/linux/Makefile.linux64
61
62
%install
63
%__install -d "%{buildroot}%{_libdir}/vamp"
64
%__install qm-vamp-plugins.{so,cat,n3} "%{buildroot}%{_libdir}/vamp/"
65
66
%clean
67
%{?buildroot:%__rm -rf "%{buildroot}"}
68
69
%files
70
%defattr(-,root,root)
71
%doc README.txt COPYING
72
%dir %{_libdir}/vamp
73
%{_libdir}/vamp/qm-vamp-plugins.so
74
%{_libdir}/vamp/qm-vamp-plugins.cat
75
%{_libdir}/vamp/qm-vamp-plugins.n3
76
77
%changelog
78