%global debug_package %{nil} %undefine _debugsource_packages Name: dtksystemsettings Version: 5.6.20 Release: 2%{?dist} Summary: DTK6 library for system settings (accounts, login, power, systemtime) License: LGPL-3.0-or-later URL: https://github.com/linuxdeepin/dtksystemsettings Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc14 BuildRequires: gcc14-c++ BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtbase-private-devel BuildRequires: dtk6core-devel BuildRequires: dtkcommon BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(polkit-agent-1) BuildRequires: glib2-devel Requires: dtk6core %description DtkSystemSettings is a DTK6 library providing system settings interfaces: account management, login (logind) session control, power management, rfkill/rf management, and system time configuration. Required by treeland. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt6-qtbase-devel %description devel Development headers and CMake files for dtksystemsettings (Dtk6SystemSettings). %prep %autosetup -n %{name}-%{version} %build # Force the Qt6/DTK6 build path: the CMake selects Qt5 vs Qt6 by the project # version major. DTK_VERSION is a CACHE variable defaulting to 5.0.0 (Qt5); # override it to a 6.x version so PROJECT_VERSION_MAJOR == 6 -> Qt6 build. %cmake \ -DDTK_VERSION=6.%{version} \ -DBUILD_DOCS=OFF \ -DBUILD_EXAMPLES=OFF \ -DBUILD_TESTING=OFF \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} %cmake_build %install %cmake_install # Fix .pc Requires: dtkcore -> dtk6core (we ship the Qt6 DTK) sed -i 's/\bdtkcore\b/dtk6core/g' %{buildroot}%{_libdir}/pkgconfig/dtksystemsettings.pc %files %license LICENSE* %{_libdir}/libdtk6systemsettings.so.* %files devel %{_includedir}/dtk6/ %{_libdir}/libdtk6systemsettings.so %{_libdir}/cmake/Dtk6SystemSettings/ %{_libdir}/qt6/qt_lib_dtk6systemsettings.pri %{_libdir}/pkgconfig/dtksystemsettings.pc %changelog * Sat Jul 18 2026 Yonghang Wang - 5.6.20-1 - Initial Qt6/DTK6 build for AL2023 (forced via DTK_VERSION=6.x), required by treeland