File zita-convolver.spec of Package zita-convolver
#
# spec file for package zita-convolver
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soversion_full 4.0.3
%define soversion 4
Name: zita-convolver
Version: 4.0.3
Release: 0
Summary: a fast, partitioned convolution engine library
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Utilities
URL: https://kokkinizita.linuxaudio.org/linuxaudio
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-Makefile.patch
BuildRequires: fftw3-devel
#
BuildRequires: gcc-c++
%description
Zita-convolver is a fast, partitioned convolution engine library.
AUTHOR: Fons Adriaensen <fons@linuxaudio.org>
%package -n lib%{name}%{soversion}
Summary: a fast, partitioned convolution engine library
%description -n lib%{name}%{soversion}
Zita-convolver is an audio convolving library.
AUTHOR: Fons Adriaensen <fons@linuxaudio.org>
%package -n %{name}-devel
Summary: Development files for zita-convolver
Group: Productivity/Multimedia/Sound/Utilities
Requires: lib%{name}%{soversion}
%description -n %{name}-devel
Development package for Zita-convolver.
AUTHOR: Fons Adriaensen <fons@linuxaudio.org>
%prep
%autosetup -p1
%build
make CPPFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" %{?_smp_mflags} -C source
%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{_lib} -C source install
ln -sf libzita-convolver.so.%{soversion_full} %{buildroot}%{_libdir}/libzita-convolver.so.%{soversion}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc README AUTHORS
%files -n lib%{name}%{soversion}
%{_libdir}/*.so.*
%files -n %{name}-devel
%{_includedir}/*
%{_libdir}/*.so
%changelog