File QLog.spec of Package QLog

#
# spec file for package QLog
#
# Copyright (c) 2024-2025 Walter Fey DL8FCL
#
# This file is under MIT license

Name:           QLog
Version:        0.46.1
Release:        0
Summary:        Amateur Radio logging application
License:        GPL-3.0-only
Group:          Productivity/Hamradio/Logging
URL:            https://github.com/foldynl/QLog
Source0:        %{name}-%{version}.tar.gz
Patch0:         %{name}-desktop.diff

BuildRequires:  libhamlib++4-devel
BuildRequires:  pkgconfig
BuildRequires:  qtkeychain-qt6-devel
BuildRequires:  pkgconfig(Qt6Charts)
BuildRequires:  pkgconfig(Qt6Core)
BuildRequires:  pkgconfig(Qt6DBus)
BuildRequires:  pkgconfig(Qt6SerialPort)
BuildRequires:  pkgconfig(Qt6Sql)
BuildRequires:  pkgconfig(Qt6WebEngineCore)
BuildRequires:  pkgconfig(Qt6WebEngineWidgets)
BuildRequires:  pkgconfig(Qt6WebSockets)
BuildRequires:  pkgconfig(Qt6Xml)
BuildRequires:  pkgconfig(hamlib)
BuildRequires:  pkgconfig(sqlite3)
Requires:       qt6-sql-sqlite
Recommends:     tqsl

%description
QLog is an Amateur Radio logging application for Linux and Windows.
It is based on the Qt framework and uses SQLite as database backend. QLogs
aims to be as simple as possible, but to provide everything the operator
expects from the log to be. This log is not currently focused on contests.

%prep
%autosetup -p1

%build
%qmake6 PREFIX=/usr
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}

%files
%{_bindir}/*
%license LICENSE
%doc README.md Changelog
%{_datadir}/applications/qlog.desktop
%{_datadir}/icons/*
%{_datadir}/metainfo/io.github.foldynl.QLog.metainfo.xml

%changelog
openSUSE Build Service is sponsored by