# debuginfo not supported for static libraries, RB #209316 %global debug_package %{nil} Name: qm-dsp Version: 1.7 Release: 1%{?dist} Summary: Library for DSP and Music Informatics purposes # some source files with different original licenses, see README.txt License: GPLv2+ URL: http://isophonics.net/QMVampPlugins Source0: https://code.soundsoftware.ac.uk/attachments/download/103/%{name}-%{version}.tar.gz # C++ build fix Patch0: qm-dsp-cxx-build.patch # build flags Patch1: qm-dsp-flags.patch # install header files Patch2: qm-dsp-install.patch BuildRequires: atlas-devel %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: %{summary} Provides: %{name}-static = %{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 static library for development with qm-dsp. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 ln -s build/linux/Makefile.linux Makefile %build # extra cflags used in upstream %ifarch %{ix86} EXTRA_CFLAGS="-msse -mfpmath=sse" %endif %ifarch x86_64 EXTRA_CFLAGS="-msse -msse2 -mfpmath=sse" %endif CFLAGS="$EXTRA_CFLAGS %{?optflags}" \ LDFLAGS="%{?__global_ldflags}" \ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir} install -p -m 0644 maths/nan-inf.h %{buildroot}%{_includedir}/%{name} %files devel %doc COPYING README.txt %{_libdir}/libqm-dsp.a %{_includedir}/%{name} %changelog * Sun Aug 3 2014 František Dvořák - 1.7-1 - Initial package