Name: qlog Version: 0.48.0 Release: %autorelease Summary: Qt Logging program for ham-radio operators License: GPL-3.0-or-later Url: https://github.com/foldynl/QLog ExclusiveArch: x86_64 aarch64 Source0: https://github.com/foldynl/QLog/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: hamlib-devel BuildRequires: libappstream-glib BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtcharts-devel BuildRequires: qt6-qtserialport-devel BuildRequires: qt6-qtwebchannel-devel BuildRequires: qt6-qtwebengine-devel BuildRequires: qt6-qtwebsockets-devel Buildrequires: qtkeychain-qt6-devel BuildRequires: sqlite-devel BuildRequires: zlib-ng-compat-devel %description QLog is an Amateur Radio logging application for Linux, Windows and Mac OS. It is based on the Qt 5 framework and uses SQLite as database backend. %prep %autosetup -n QLog-%{version} %build export LC_ALL=C.UTF-8 %{qmake_qt6} PREFIX=%{_prefix} -r %{_qt6_qmake_flags} QMAKE_CFLAGS+="-fPIC -fPIE" QMAKE_CXXFLAGS+="-fPIC -fPIE" QMAKE_LFLAGS="${RPM_LD_FLAGS} -pie -Wl,--as-needed" %make_build %install %make_install INSTALL_ROOT=%{buildroot} desktop-file-install --delete-original --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applications/%{name}.desktop %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/io.github.foldynl.QLog.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license LICENSE %doc README.md Changelog %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{_metainfodir}/* %changelog %autochangelog