File sigutils.spec of Package sigutils

#
# spec file for package sigutils
#
# Copyright (c) 2020-2024, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#

%global sover   1
%global libname lib%{name}%{sover}
Name:           sigutils
Version:        0.3+git20241026
Release:        0
Summary:        Signal processing utility library
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://batchdrake.github.io/SigDigger/
#Git-Clone:     https://github.com/BatchDrake/sigutils.git
Source:         %{name}-%{version}.tar.xz
#Patch0:         sigutils-soversion.patch
Patch0:         sigutils-no-docs.patch
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  fftw3-threads-devel
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(fftw3f) >= 3.0
BuildRequires:  pkgconfig(sndfile) >= 1.0.2
BuildRequires:  pkgconfig(volk) >= 1.0

%description
Sigutils is a DSP utility library which enables different signal
processing tasks like filtering or demodulation.

%package -n %{libname}
Summary:        Signal processing utility library
Group:          System/Libraries

%description -n %{libname}
Sigutils is a DSP utility library which enables different signal
processing tasks like filtering or demodulation.

This subpackage contains shared library part of libsigutils.

%package devel
Summary:        Development files for sigutils
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}
Requires:       fftw3-threads-devel
Requires:       pkgconfig(fftw3f) >= 3.0
Requires:       pkgconfig(sndfile) >= 1.0.2
Requires:       pkgconfig(volk) >= 1.0

%description devel
Sigutils is a DSP utility library which enables different signal
processing tasks like filtering or demodulation.

This subpackage contains libraries and header files for developing
applications that want to make use of libsigutils.

%prep
%setup -q
%patch -P0 -p1

%build
%cmake
%make_jobs

%install
%cmake_install

%ldconfig_scriptlets -n %{libname}

%check
# TODO:
# * run unittests once they are not br0ken anymore
#   https://github.com/BatchDrake/sigutils/issues/3
#   https://github.com/BatchDrake/sigutils/issues/4

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/libsigutils.so.0.3.0
%{_libdir}/libsigutils.so.1

%files devel
%{_includedir}/sigutils
%{_libdir}/libsigutils.so
%{_libdir}/pkgconfig/sigutils.pc

%changelog
openSUSE Build Service is sponsored by