File guglielmo.spec of Package guglielmo
#
# spec file for package guglielmo
#
# 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: guglielmo
Version: 0.7+git20260108
Release: 0
Summary: A simple FM and DAB receiver
License: GPL-2.0-only
URL: https://github.com/marcogrecopriolo/guglielmo
Source: %{name}-%{version}.tar.xz
Source1: guglielmo.desktop
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: qwt6-qt6-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
BuildRequires: pkgconfig(faad2)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(samplerate)
%description
A simple FM and DAB receiver based on Qt and the Qt-dab and
sdr-j-fm packages.
%prep
%autosetup -p1
%build
%cmake \
%ifarch aarch64
-DVITERBI_SSE=OFF \
-DVITERBI_NEON=ON \
%endif
%{nil}
%make_jobs
%install
install -Dpm 0755 build/guglielmo %{buildroot}%{_bindir}/%{name}
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dpm 0644 images/guglielmo.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%changelog