File sdr-j-fm.spec of Package sdr-j-fm
#
# spec file for package sdr-j-fm
#
# Copyright (c) 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 https://bugs.opensuse.org/
#
Name: sdr-j-fm
Version: 3.20
Release: 0
Summary: FM Radio receiver
License: GPL-2.0-only
URL: https://github.com/JvanKatwijk/sdr-j-fm/
Source: https://github.com/JvanKatwijk/sdr-j-fm/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: sdr-j-fm-fix-no-return.patch
BuildRequires: ImageMagick
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: qt6-base-common-devel
BuildRequires: qwt6-qt6-devel
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6Svg)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sndfile)
%description
FM Radio receiver.
%prep
%autosetup -p1
%build
%qmake6
sed -i "s|-lqwt-qt6-qt6|-lqwt-qt6|g" Makefile
%make_build
%install
install -Dm 0755 linux-bin/fmreceiver-3.20 %{buildroot}%{_bindir}/fmreceiver
convert -strip fm-icon.ico %{name}.png
install -Dm0644 %{name}-0.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -Dm 0644 fmreceiver.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
%files
%license COPYING
%doc README.md
%{_bindir}/fmreceiver
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog