File drm-receiver.spec of Package drm-receiver
#
# spec file for package drm-receiver
#
# 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: drm-receiver
Version: 1.0
Release: 0
Summary: DRM (Digital Radio Mondiale) receiver
License: GPL-2.0-only
URL: https://github.com/JvanKatwijk/drm-receiver/
Source: https://github.com/JvanKatwijk/drm-receiver/archive/refs/tags/%{name}-%{version}.tar.gz
Source1: drm-receiver.desktop
Patch0: drm-receiver-qwt-include-path.patch
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libfdk-aac-devel
BuildRequires: pkgconfig
BuildRequires: qt6-base-common-devel
BuildRequires: qwt6-qt6-devel
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(eigen3)
BuildRequires: pkgconfig(faad2)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sndfile)
%description
DRM (Digital Radio Mondiale) receiver.
%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
chmod -x COPYING README.md
%build
%qmake6
%make_build
%install
install -Dm 0755 linux-bin/drm-receiver %{buildroot}%{_bindir}/drm-receiver
install -Dm 0644 drm.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -Dm 0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
%files
%license COPYING
%doc README.md
%{_bindir}/drm-receiver
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog