File klog.spec of Package klog

#
# Copyright (c) 2021-2025 SUSE LLC
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           klog
Version:        2.4.2
Release:        0
Summary:        Hamradio logging program
License:        GPL-3.0-only
Group:          Productivity/Hamradio/Logging
URL:            https://www.klog.xyz
Source0:        https://github.com/ea4k/klog/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        klog.png
BuildRequires:  cmake(Qt6Charts)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6Location)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6Positioning)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  cmake(Qt6QuickWidgets)
BuildRequires:  cmake(Qt6SerialPort)
BuildRequires:  cmake(Qt6Sql)
BuildRequires:  cmake(Qt6Test)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  dos2unix
BuildRequires:  hamlib-devel
BuildRequires:  update-desktop-files


%description
KLog is a hamradio logging program that can be executed in several
operating systems!

%prep
%setup -q -n %{name}-%{version}

%build
qmake6 PREFIX=/usr
%make_build

%install
install -Dm 0755 build/target/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -d %{buildroot}%{_datadir}/klog/translations
install -m 0644 build/target/translations/*.qm %{buildroot}%{_datadir}/klog/translations

# install desktop file
%suse_update_desktop_file -c klog Klog "HAM radio logging program" klog klog "Network;HamRadio"

%files
%license COPYING
%doc AUTHORS Changelog TODO README NEWS
%{_bindir}/%{name}
%{_datadir}/klog
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog

openSUSE Build Service is sponsored by