File dabtools.spec of Package dabtools
#
# spec file for package dabtools
#
# Copyright (c) 2017, 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: dabtools
Version: 0~git20180405
Release: 0
Summary: DAB/DAB+ software for RTL-SDR dongles
License: GPL-3.0+
Group: Productivity/Hamradio/Other
Url: https://github.com/linuxstb/dabtools
Source: %{name}-%{version}.tar.xz
#Patch0: dabtools-Fix-no-return-in-nonvoid-function-dab2eti.diff
#Patch1: dabtools-Enable-spiral-viterbi.diff
BuildRequires: pkg-config
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(librtlsdr)
BuildRequires: pkgconfig(libusb-1.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DAB/DAB+ software for RTL-SDR dongles and the Psion Wavefinder
including ETI stream recording.
dabtools currently consists of the following tools:
dab2eti - receive a DAB ensemble and output an ETI stream to STDOUT
eti2mpa - extract an MPEG audio stream from an ETI stream.
%prep
%autosetup
#%%patch -P0 -p1
#%# Use spiral viterbi on x86_64
#%%ifarch x86_64
#%%patch -P 1 -p1
#%%endif
%build
#cd src
#make -C src CFLAGS="%{optflags}" %{?_smp_mflags}
make -C src %{?_smp_mflags}
%install
install -Dpm 0755 src/dab2eti %{buildroot}/%{_bindir}/dab2eti
install -Dpm 0755 src/eti2mpa %{buildroot}/%{_bindir}/eti2mpa
%files
%license COPYING
%doc README.md TODO.md
%{_bindir}/dab2eti
%{_bindir}/eti2mpa
%changelog