Name: qm-dsp Version: 1.7 Release: 1%{?dist} Summary: Library for DSP and Music Informatics purposes # some files with different original license, see README.txt License: GPLv2+ URL: http://isophonics.net/QMVampPlugins Source0: https://code.soundsoftware.ac.uk/attachments/download/103/%{name}-%{version}.tar.gz # build fix Patch0: qm-dsp-cxx-build.patch # build shared library, build flags, install header files Patch1: qm-dsp-libtoolize.patch BuildRequires: atlas-devel BuildRequires: libtool %description %{name} is a C++ library of functions for DSP and Music Informatics purposes developed at Queen Mary, University of London. It is used by the QM Vamp Plugins (q.v.) among other things. %package devel Summary: Development files for dm-dsp library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{name} is a C++ library of functions for DSP and Music Informatics purposes developed at Queen Mary, University of London. It is used by the QM Vamp Plugins (q.v.) among other things. This package contains header files and libraries for development with qm-dsp library. %prep %setup -q %patch0 -p1 %patch1 -p1 ln -s build/linux/Makefile.linux Makefile %build # atlas libraries %if 0%{?fedora} >= 21 ATLAS_LIBS="-L%{_libdir}/atlas -ltatlas" %else ATLAS_LIBS="-L%{_libdir}/atlas -llapack -lcblas" %endif # extra clfags used in upstream %ifarch %{ix86} EXTRA_CFLAGS="-msse -mfpmath=sse" %endif %ifarch x86_64 EXTRA_CFLAGS="-msse -msse2 -mfpmath=sse" %endif CFLAGS="-shared $EXTRA_CFLAGS %{?optflags}" \ LDFLAGS="-shared %{?__global_ldflags}" \ ATLAS_LIBS="$ATLAS_LIBS" \ make %{?_smp_mflags} LIBDIR=%{_libdir} %install make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} install -m 0644 maths/nan-inf.h %{buildroot}%{_includedir}/%{name} rm -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING README.txt %{_libdir}/libqm-dsp.so.0 %{_libdir}/libqm-dsp.so.0.* %files devel %{_libdir}/libqm-dsp.so %{_includedir}/%{name} %changelog * Sat Feb 1 2014 František Dvořák - 1.7-1 - Initial package