File ka9q-radio.spec of Package ka9q-radio
#
# spec file for package ka9q-radio
#
# Copyright (c) 2022, 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 https://bugs.opensuse.org/
#
Name: ka9q-radio
Version: 0~git20221110
Release: 0
Summary: Multichannel SDR based on fast convolution and IP multicasting
License: GPL-3.0-or-later
Group: Productivity/Hamradio/Other
URL: https://github.com/ka9q/ka9q-radio
#Git-Clone: https://github.com/ka9q/ka9q-radio.git
Source: %{name}-%{version}.tar.xz
BuildRequires: fftw3-threads-devel
BuildRequires: libiniparser-devel
BuildRequires: ncurses5-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(libairspy)
BuildRequires: pkgconfig(libairspyhf)
BuildRequires: pkgconfig(libbsd)
BuildRequires: pkgconfig(librtlsdr)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(uuid)
%description
Multichannel SDR based on fast convolution and IP multicasting.
%prep
%setup -q
# HACK: adjust include directorys - better use pkgconfig instead
sed 's|ncurses.h|ncurses5/curses.h|g' -i *.[c,h]
# HACK: adjust LDFLAGS - needed for *SUSE's ncurses5
# -> $(ncursesw5-config --libs)
sed "s|LDOPTS=-L/usr/local/lib|LDOPTS=`ncursesw5-config --libs`|g" -i Makefile.linux
%build
%make_build -f Makefile.linux
%install
# FIXME:
# - install all other stuff from "upstream" make install (see: Makefile.linux)
# HACK: prefix all binaries with "ka9q-radio-" to prevent naming clashes
find . -type f -executable -exec sh -c 'mv $0 ka9q-radio-`basename "$0"`' '{}' \;
install -d %{buildroot}/%{_bindir}/
install -m0755 ka9q-radio-* %{buildroot}/%{_bindir}/
%files
%license LICENSE.md LICENSE.TXT
%doc README.md
%doc docs/*
%{_bindir}/ka9q-radio-*
%changelog