File sdrangelove.spec of Package sdrangelove
#
# spec file for package sdrangelove
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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: sdrangelove
Version: 0.0.0+git.20200802
Release: 0
Summary: SDR GUI supporting various input hardware
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: http://sdr.osmocom.org/trac/wiki/sdrangelove
Source: %{name}-%{version}.tar.xz
Source1: wrapper.sh
Source2: sdrangelove.desktop
Patch1: 0001-Fix-compilation-with-recent-Qt-versions.patch
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(librtlsdr)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(log4cpp)
ExclusiveArch: %{ix86} x86_64
%description
SDR GUI supporting various input hardware.
%prep
%setup -q
%patch1 -p1
%build
%cmake \
-DCMAKE_SHARED_LINKER_FLAGS=""
%make_jobs
%install
# FIXME: ugly temporary workaround !!!
export NO_BRP_CHECK_RPATH=true
#
cd build
install -Dpm 0755 %{SOURCE1} %{buildroot}/%{_bindir}/sdrangelove
mkdir -p "%{buildroot}%{_libdir}/sdrangelove/plugins"
for f in $(find . -name '*.so'); do
install -Dpm0755 "$f" "%{buildroot}%{_libdir}/sdrangelove/$f"
done
install -Dpm 0755 sdrangelove %{buildroot}%{_libdir}/sdrangelove/sdrangelove
install -Dpm 0644 %{SOURCE2} %{buildroot}/%{_datadir}/applications/sdrangelove.desktop
install -Dpm 0644 ../sdrbase/resources/appicon.png %{buildroot}/%{_datadir}/pixmaps/sdrangelove.png
%files
%{_bindir}/sdrangelove
%{_libdir}/sdrangelove
%{_datadir}/applications/sdrangelove.desktop
%{_datadir}/pixmaps/sdrangelove.png
%changelog