%global dtk_version_major 6 Name: dtklog Version: 6.7.44 Release: 2%{?dist} Summary: DTK logging library based on spdlog License: LGPL-2.1-or-later URL: https://github.com/linuxdeepin/dtklog Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake >= 3.13 BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtbase-private-devel BuildRequires: spdlog-devel BuildRequires: systemd-devel %description DTK logging library providing a simple, convenient and thread safe logger for Qt-based C++ applications. Built on top of spdlog with Qt integration. This is the Qt6/DTK6 build. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt6-qtbase-devel Requires: spdlog-devel Provides: cmake(Dtk6Log) = %{version} %description devel Development files for the DTK6 logging library. %prep %autosetup -n %{name}-%{version} %build %cmake \ -DDTK5=OFF \ -DBUILD_WITH_SYSTEMD=ON \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} %cmake_build %install %cmake_install %files %license LICENSE.LGPL LICENSES/* %doc README.md %{_libdir}/libdtk6log.so.0* %files devel %{_includedir}/dtk6/DLog/ %{_libdir}/libdtk6log.so %{_libdir}/cmake/Dtk6Log/ %{_libdir}/pkgconfig/dtk6log.pc %{_libdir}/qt6/mkspecs/modules/qt_lib_dtklog.pri %changelog * Fri Jul 17 2026 Yonghang Wang - 6.7.44-1 - Initial package for al-stream-2023 (Qt6/DTK6 build)