qm-dsp/qm-dsp.spec

149 lines
4.3 KiB
RPMSpec
Raw Normal View History

2014-11-05 13:58:22 +00:00
# debuginfo not supported for static libraries, RB #209316
%global debug_package %{nil}
Name: qm-dsp
Version: 1.7.1
Release: 7%{?dist}
2014-11-05 13:58:22 +00:00
Summary: Library for DSP and Music Informatics purposes
# some source files with different original licenses, see README.txt
License: GPLv2+
# original homepage: http://isophonics.net/QMVampPlugins
URL: http://vamp-plugins.org/plugin-doc/qm-vamp-plugins.html
Source0: https://code.soundsoftware.ac.uk/attachments/download/1582/%{name}-%{version}.tar.gz
2014-11-05 13:58:22 +00:00
# build flags
# (not intended for upstream)
Patch0: qm-dsp-flags.patch
2014-11-05 13:58:22 +00:00
# install header files
# http://vamp-plugins.org/forum/index.php/topic,270.0.html
Patch1: qm-dsp-install.patch
2014-11-05 13:58:22 +00:00
BuildRequires: atlas-devel
BuildRequires: imake
BuildRequires: kiss-fft-static
BuildRequires: valgrind
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: boost148-devel
%else
BuildRequires: boost-devel
%endif
2014-11-05 13:58:22 +00:00
%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
cp -p build/linux/Makefile.linux32 Makefile
2014-11-05 13:58:22 +00:00
%patch0 -p1
%patch1 -p1
# use specified CFLAGS for tests
cat >> tests/Makefile <<EOF
%.o: %.cpp
\$(CXX) \$(CPPFLAGS) \$(CFLAGS) -c \$<
EOF
# unbundle kiss-fft
rm -rf ext/
2017-02-16 15:31:43 +00:00
# helper Makefile without valgrind
sed -e 's/$(VG) //' tests/Makefile > tests/Makefile.novg
2014-11-05 13:58:22 +00:00
%build
# unbundle kiss-fft
make depend
2014-11-05 13:58:22 +00:00
# extra cflags used in upstream
%ifarch %{ix86}
EXTRA_CFLAGS="-msse -mfpmath=sse"
%endif
%ifarch x86_64
EXTRA_CFLAGS="-msse -msse2 -mfpmath=sse"
%endif
# build
CFLAGS="$EXTRA_CFLAGS %{?optflags} -I%{_includedir}/kissfft" \
2014-11-05 13:58:22 +00:00
LDFLAGS="%{?__global_ldflags}" \
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir}
%check
%if 0%{?rhel} && 0%{?rhel} <= 7
BOOST_CPPFLAGS="-I%{_includedir}/boost148"
BOOST_LDFLAGS="-L%{_libdir}/boost148"
%endif
2017-02-16 15:31:43 +00:00
# disable valgrind on AArch64
%ifarch aarch64
MAKE_ARGS='-f Makefile.novg'
%endif
CFLAGS="${BOOST_CPPFLAGS} %{?optflags} -Dkiss_fft_scalar=double" \
LDFLAGS="${BOOST_LDFLAGS} %{?__global_ldflags} -lkiss_fft_double -lkiss_fftr_double" \
2017-02-16 15:31:43 +00:00
make %{?_smp_mflags} -C tests $MAKE_ARGS
2014-11-05 13:58:22 +00:00
%files devel
%license COPYING
%doc README.txt
2014-11-05 13:58:22 +00:00
%{_libdir}/libqm-dsp.a
%{_includedir}/%{name}/
2014-11-05 13:58:22 +00:00
%changelog
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-16 15:31:43 +00:00
* Thu Feb 16 2017 František Dvořák <valtri@civ.zcu.cz> - 1.7.1-3
- Disable valgrind on AArch64
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Nov 14 2016 František Dvořák <valtri@civ.zcu.cz> - 1.7.1-1
- Update to 1.7.1 (#1279112)
- New homepage
- Unbundled new kiss-fft library
- Removed C++ patch released in upstream
- Rebased build flags and install patches
- New packaging guidelines (license tag)
- Enabled tests
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-11-05 13:58:22 +00:00
* Wed Nov 05 2014 František Dvořák <valtri@civ.zcu.cz> - 1.7-2
- Updated patches and added comments
2014-11-05 13:58:22 +00:00
* Sun Aug 3 2014 František Dvořák <valtri@civ.zcu.cz> - 1.7-1
- Initial package