File mshv.spec of Package mshv
#
# spec file for package mshv
#
# Copyright (c) 2018-2025 Walter Fey DL8FCL
#
# This file is under MIT license
%if 0%{?fedora}
%global debug_package %{nil}
%endif
Name: mshv
Version: 2.76.4
%if 0%{?fedora}
Release: <CI_CNT>.<B_CNT>%{?dist}
%else
Release: 0
%endif
Summary: Digital amateur radio communications
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: http://lz2hv.org/
Source0: %{name}-%{version}.tar.xz
Source1: %{name}_start
Source2: %{name}.desktop
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5SerialPort)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3)
%description
Amateur Radio Software for digital communications.
Supported working modes: MSK JTMS FSK ISCAT JT6M FT8/4 JT65 PI4 Q65
%prep
%autosetup -p1
%build
%ifarch x86_64 aarch64
qmake-qt5 MSHV_x86_64.pro
%else
qmake-qt5 MSHV_I686.pro
%endif
%make_build
%install
%ifarch x86_64 aarch64
install -D bin/MSHV_x86_64 %{buildroot}%{_bindir}/%{name}-bin
rm bin/MSHV_x86_64
%else
install -D bin/MSHV_I686 %{buildroot}%{_bindir}/%{name}-bin
rm bin/MSHV_I686
%endif
install -D %{SOURCE1} %{buildroot}%{_bindir}/%{name}
install -Dm 644 bin/settings/resources/ms_ico.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm bin/settings/resources/ms_ico.png
install -d %{buildroot}%{_datadir}/%{name}
cp -r bin/* %{buildroot}%{_datadir}/%{name}
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes -s %{buildroot}%{_datadir}
%files
%license license.txt
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog