Files
desktop/kf6-kwindowsystem/kf6-kwindowsystem.spec

130 lines
3.7 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: jingyupu <pujingyu@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
Name: kf6-kwindowsystem
Version: 6.20.0
Release: %autorelease
Summary: KDE Access to window manager
License: LGPL-2.1-or-later
URL: https://kde.org
VCS: https://invent.kde.org/frameworks/kwindowsystem
Source0: %{rname}-%{version}.tar.xz.sig
BuildSystem: cmake
BuildRequires: c_compiler
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: meson
BuildRequires: fdupes
BuildRequires: xz
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: xmlto
BuildRequires: pkgconfig
BuildRequires: kf6-extra-cmake-modules >= 6.20.0
BuildRequires: qt6-base-private-devel >= 6.8.0
BuildRequires: pkgconfig(wayland-protocols) >= 1.21.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-icccm)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libffi)
BuildRequires: libxml2
BuildRequires: libxslt
Requires: kf6-kwindowsystem >= 6.20.0
Requires: libKF6WindowSystem6 = 6.20.0
Requires: cmake(Qt6Gui) >= 6.8.0
Requires: pkgconfig(x11)
Requires: pkgconfig(xcb)
%description
Convenience access to certain properties and features of the window manager.
KWindowSystem provides information about the state of the window manager and
allows asking the window manager to change the using a more high-level
interface than the NETWinInfo/NETRootInfo low-level classes.
%package imports
Summary: QML Bindings for KWindowSystem
%description imports
QML Bindings for KWindowSystem.
%package -n libKF6WindowSystem6
Summary: KDE Access to window manager
Requires: kf6-kwindowsystem >= %{version}
%description -n libKF6WindowSystem6
Convenience access to certain properties and features of the window manager.
KWindowSystem provides information about the state of the window manager and
allows asking the window manager to change the using a more high-level
interface than the NETWinInfo/NETRootInfo low-level classes.
%package devel
Summary: KDE Access to window manager: Build Environment
Requires: libKF6WindowSystem6 = %{version}
Requires: cmake(Qt6Gui) >= %{qt6_version}
Requires: pkgconfig(x11)
Requires: pkgconfig(xcb)
%description devel
Convenience access to certain properties and features of the window manager.
KWindowSystem provides information about the state of the window manager and
allows asking the window manager to change the using a more high-level
interface than the NETWinInfo/NETRootInfo low-level classes.
Development files.
%lang_package -n libKF6WindowSystem6
%prep
%autosetup -p1 -n %{rname}-%{version}
%build
%cmake_kf6
%kf6_build
%install
%kf6_install
%fdupes %{buildroot}
%find_lang kwindowsystem6 --with-qt --without-mo
%ldconfig_scriptlets -n libKF6WindowSystem6
%files
%{_kf6_debugdir}/kwindowsystem.categories
%{_kf6_debugdir}/kwindowsystem.renamecategories
%dir %{_kf6_plugindir}/kf6/kwindowsystem
%{_kf6_plugindir}/kf6/kwindowsystem/KF6WindowSystemKWaylandPlugin.so
%{_kf6_plugindir}/kf6/kwindowsystem/KF6WindowSystemX11Plugin.so
%files imports
%{_kf6_qmldir}/org/kde/kwindowsystem/
%files -n libKF6WindowSystem6
%license LICENSES/*
%doc README.md
%{_kf6_libdir}/libKF6WindowSystem.so.*
%files devel
%{_kf6_includedir}/KWindowSystem/
%{_kf6_cmakedir}/KF6WindowSystem/
%{_kf6_libdir}/libKF6WindowSystem.so
%{_kf6_pkgconfigdir}/KF6WindowSystem.pc
%files -n libKF6WindowSystem6-lang -f kwindowsystem6.lang
%changelog