c8d8157
Name:           qm-vamp-plugins
c8d8157
Version:        1.7
c8d8157
Release:        2%{?dist}
c8d8157
Summary:        Vamp audio feature extraction plugin
c8d8157
c8d8157
License:        GPLv2+
c8d8157
URL:            http://isophonics.net/QMVampPlugins
c8d8157
Source0:        https://code.soundsoftware.ac.uk/attachments/download/109/%{name}-%{version}.tar.gz
c8d8157
# build flags cleanup
c8d8157
# (part of it not intended for upstream)
c8d8157
# http://vamp-plugins.org/forum/index.php/topic,270.0.html
c8d8157
Patch0:         qm-vamp-plugins-build.patch
c8d8157
c8d8157
BuildRequires:  atlas-devel
c8d8157
BuildRequires:  vamp-plugin-sdk-devel
c8d8157
BuildRequires:  qm-dsp-static
c8d8157
c8d8157
%description
c8d8157
qm-vamp-plugins are vamp audio feature extraction plugins from the Centre for
c8d8157
Digital Music at Queen Mary, University of London,
c8d8157
http://www.elec.qmul.ac.uk/digitalmusic/.
c8d8157
c8d8157
This plugin set includes note onset detector, beat and barline tracker, tempo
c8d8157
estimator, key estimator, tonal change detector, structural segmenter, timbral
c8d8157
and rhythmic similarity, wavelet scaleogram, adaptive spectrogram, note
c8d8157
transcription, chromagram, constant-Q spectrogram, and MFCC plugins.
c8d8157
c8d8157
For more information see
c8d8157
http://vamp-plugins.org/plugin-doc/qm-vamp-plugins.html.
c8d8157
c8d8157
c8d8157
%prep
c8d8157
%setup -q
c8d8157
%patch0 -p1
c8d8157
ln -s build/linux/Makefile.linux Makefile
c8d8157
c8d8157
c8d8157
%build
c8d8157
# atlas libraries
820e18e
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 21
c8d8157
ATLAS_LIBS="-L%{_libdir}/atlas -ltatlas"
c8d8157
%else
c8d8157
ATLAS_LIBS="-L%{_libdir}/atlas -llapack -lcblas"
c8d8157
%endif
c8d8157
c8d8157
# extra cflags used in upstream
c8d8157
%ifarch %{ix86}
c8d8157
EXTRA_CFLAGS="-msse -mfpmath=sse"
c8d8157
%endif
c8d8157
%ifarch x86_64
c8d8157
EXTRA_CFLAGS="-msse -msse2 -mfpmath=sse"
c8d8157
%endif
c8d8157
c8d8157
CFLAGS="-I%{_includedir}/qm-dsp $EXTRA_CFLAGS %{?optflags}" \
c8d8157
LDFLAGS="%{?__global_ldflags}" \
c8d8157
ATLAS_LIBS="$ATLAS_LIBS" \
c8d8157
make %{?_smp_mflags}
c8d8157
c8d8157
c8d8157
%install
c8d8157
mkdir -p %{buildroot}%{_libdir}/vamp
c8d8157
install -p -m 0644 qm-vamp-plugins.cat %{buildroot}%{_libdir}/vamp
c8d8157
install -p -m 0644 qm-vamp-plugins.n3 %{buildroot}%{_libdir}/vamp
c8d8157
install -p -m 0755 qm-vamp-plugins.so %{buildroot}%{_libdir}/vamp
c8d8157
c8d8157
c8d8157
%files
c8d8157
%doc COPYING README.txt
c8d8157
%{_libdir}/vamp/qm-vamp-plugins.cat
c8d8157
%{_libdir}/vamp/qm-vamp-plugins.n3
c8d8157
%{_libdir}/vamp/qm-vamp-plugins.so
c8d8157
c8d8157
c8d8157
%changelog
c8d8157
* Wed Nov 05 2014 František Dvořák <valtri@civ.zcu.cz> - 1.7-2
c8d8157
- Replace qm-dsp-devel for qm-dsp-static BR
c8d8157
- Part of the build flags patch sent upstream
c8d8157
c8d8157
* Sat Feb 1 2014 František Dvořák <valtri@civ.zcu.cz> - 1.7-1
c8d8157
- Initial package