File ODR-DabMod.spec of Package ODR-DabMod

#
# spec file for package ODR-DabMod
#
# Copyright (c) 2017-2025, 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/
#


Name:           ODR-DabMod
Version:        3.0.1
Release:        0
Summary:        DAB (Digital Audio Broadcasting) modulator
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://www.opendigitalradio.org/
#Git-Clone:     https://github.com/Opendigitalradio/ODR-DabMod.git
Source:         https://github.com/Opendigitalradio/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:         boost.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  cmake
BuildRequires:  gcc-c++
%if 0%{?suse_version} <= 1600
BuildRequires:  libboost_system-devel >= 1.55.0
%endif
BuildRequires:  pkgconfig
BuildRequires:  zeromq-devel
BuildRequires:  pkgconfig(LimeSuite)
BuildRequires:  pkgconfig(SoapySDR)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(libbladeRF)
BuildRequires:  pkgconfig(uhd)

%description
ODR-DabMod is a software-defined DAB modulator that receives or reads ETI,
and generates modulated I/Q data usable for transmission.
It can directly interface the Ettus USRP devices, and can also be used with
other SDR transmitters.

%prep
%autosetup -p1
chmod -x doc/zmq-ctrl/cpp/test/CMakeLists.txt
sed -i -e 's|#!%{_bindir}/env python2|#!%{_bindir}/python2|g' \
  doc/stats_dabmod_munin.py
sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' \
  doc/fir-filter/generate-filter.py \
  doc/receive_events.py \
  doc/zmq-ctrl/json_remote_server.py \
  doc/zmq-ctrl/zmq_remote.py

%build
autoreconf -fiv
%configure \
  --enable-zeromq \
  --disable-native \
  --enable-limesdr \
  --enable-bladerf
%make_build

%install
%make_install

%files
%license COPYING LICENCE
%doc AUTHORS ChangeLog README.md TODO
%doc doc/
%{_bindir}/odr-dabmod
%{_mandir}/man1/odr-dabmod.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by