File sdrpp-ce.spec of Package sdrpp-ce

#
# spec file for package sdrpp-brown
#
# Copyright (c) 2025 SUSE LLC
#
# 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:           sdrpp-ce
Version:        1.2.5
Release:        0
Summary:        SDR++ Community Edition
License:        GPL-3.0-only
URL:            https://github.com/LunaeMons/SDRPlusPlus_CommunityEdition
Source0:        https://github.com/LunaeMons/SDRPlusPlus_CommunityEdition/archive/refs/tags/v%{version}-CE.tar.gz
Patch0:         0001-feat-Set-SOVERSION-and-LIB_LIB_SUFFIX.patch
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  libcorrect-devel
BuildRequires:  pkgconfig
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(LimeSuite)
BuildRequires:  pkgconfig(SoapySDR)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(glfw3)
BuildRequires:  pkgconfig(libad9361)
BuildRequires:  pkgconfig(libairspy)
BuildRequires:  pkgconfig(libairspyhf)
BuildRequires:  pkgconfig(libbladeRF)
BuildRequires:  pkgconfig(libhackrf)
BuildRequires:  pkgconfig(libiio)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  pkgconfig(libusb-1.0)
BuildRequires:  pkgconfig(libzstd)
BuildRequires:  pkgconfig(rtaudio)
BuildRequires:  pkgconfig(volk)
BuildRequires:  pkgconfig(codec2)
Requires:       google-roboto-fonts
Conflicts:      sdrpp

%description
The community-driven SDR software for RTL-SDR, HackRF, LimeSDR, AirSpy,
PlutoSDR, USRP and more. Features advanced FM broadcasting analysis, MPX
spectrum visualization, frequency scanning, and comprehensive signal processing
capabilities.

%prep
%autosetup -p1 -n SDRPlusPlus_CommunityEdition-%{version}-CE

%build
%cmake \
    -DOPT_BUILD_SDRPLAY_SOURCE=OFF \
    -DOPT_BUILD_DISCORD_PRESENCE=OFF \
    -DOPT_BUILD_ATV_DECODER=ON \
    -DOPT_BUILD_DAB_DECODER=OFF  \
    -DOPT_BUILD_FALCON9_DECODER=OFF \
    -DOPT_BUILD_KG_SSTV_DECODER=OFF  \
    -DOPT_BUILD_M17_DECODER=ON  \
    -DOPT_BUILD_METEOR_DEMODULATOR=ON  \
    -DOPT_BUILD_PAGER_DECODER=ON  \
    -DOPT_BUILD_RADIO=ON  \
    -DOPT_BUILD_RYFI_DECODER=OFF \
    -DOPT_BUILD_VOR_RECEIVER=ON  \
    -DOPT_BUILD_WEATHER_SAT_DECODER=OFF \
    -DUSE_INTERNAL_LIBCORRECT=OFF
%cmake_build

%install
%cmake_install

%files
%license license
%doc readme.md
%{_bindir}/sdrpp_ce
%dir %{_libdir}/sdrpp
%{_libdir}/sdrpp/plugins
%{_datadir}/sdrpp
%{_libdir}/libsdrpp_core.so*
%{_datadir}/applications/sdrpp.desktop

%changelog
openSUSE Build Service is sponsored by