File sdr-power.spec of Package sdr-power
#
# spec file for package sdr-power
#
# Copyright (c) 2017-2021, 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: sdr-power
Version: 0.0.0+git.20160521
Release: 0
Summary: A fork of rtl-power modified to support more radio hardware
License: GPL-2.0
Group: Productivity/Hamradio/Other
Url: https://github.com/polygon/sdr-power
Source: %{name}-%{version}.tar.xz
Patch0: 0001-Lower-required-CMake-version.patch
Patch1: 0002-Add-CMake-install-target.patch
BuildRequires: pkg-config
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: giflib-devel
BuildRequires: pkgconfig(librtlsdr)
BuildRequires: pkgconfig(libhackrf)
BuildRequires: pkgconfig(libbladeRF)
BuildRequires: pkgconfig(libusb-1.0)
# FIXME: should be properly handled
#E: sdr-power 64bit-portability-issue sdr-power-0.0.0+git.20160521/backend.c:64, 71
#
#I: Program returns random data in a function
#E: sdr-power no-return-in-nonvoid-function sdr-power-0.0.0+git.20160521/backends/dummy.c:100
#E: sdr-power no-return-in-nonvoid-function sdr-power-0.0.0+git.20160521/backends/hackrf.c:97
#
#I: Program returns random data in a function
#E: sdr-power no-return-in-nonvoid-function sdr-power-0.0.0+git.20160521/backends/dummy.c:100
#E: sdr-power no-return-in-nonvoid-function sdr-power-0.0.0+git.20160521/backends/hackrf.c:97
BuildRequires: -post-build-checks
%description
A fork of the rtl_power FFT logger to support multiple SDRs
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%cmake -DCMAKE_C_FLAGS=""
make VERBOSE=1 %{?_smp_mflags}
%install
%cmake_install
%files
%doc usage.txt
%{_bindir}/sdr_power
%changelog