## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global repo dde-kwin %global __provides_exclude_from ^%{_qt5_plugindir}.*\.so$ # not build kwin ext with kwin >= 5.25 %global kwin_ext 0 Name: deepin-kwin Version: 5.4.26 Release: %autorelease Summary: KWin configuration for Deepin Desktop Environment License: GPLv3+ URL: https://github.com/linuxdeepin/%{repo} Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz %if !%{kwin_ext} %global debug_package %{nil} %endif # Fix crash with later kwin versions Patch0001: https://raw.githubusercontent.com/archlinux/svntogit-community/6569e8f227a739b625164cbc549b1b54b2b7812c/trunk/dde-kwin.5.4.26.patch # revert added functions from their forked kwin # Author: Robin Lee Patch0002: 0001-revert-added-functions-from-their-forked-kwin.patch # https://github.com/linuxdeepin/dde-kwin/pull/106 Patch0003: https://raw.githubusercontent.com/archlinux/svntogit-community/73ec1ea59cd8ad607a3658fd1fbeed1725110821/trunk/deepin-kwin-tabbox-chameleon-rename.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: extra-cmake-modules >= 5.54 BuildRequires: kwin-devel BuildRequires: kwayland-server-devel BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: gsettings-qt-devel BuildRequires: libepoxy-devel BuildRequires: dtkgui-devel BuildRequires: kf5-kwayland-devel BuildRequires: kf5-kglobalaccel-devel BuildRequires: cmake(KDecoration2) BuildRequires: cmake(KF5I18n) BuildRequires: qt5-linguist %if %{kwin_ext} # for libQt5EdidSupport.a BuildRequires: qt5-qtbase-static BuildRequires: qt5-qtbase-private-devel Requires: deepin-qt5integration%{?_isa} Requires: kwin-x11%{?_isa} >= 5.21 %else Requires: %{_bindir}/kwin_x11 %endif # since F31 Obsoletes: deepin-wm <= 1.9.38 Obsoletes: deepin-wm-switcher <= 1.1.9 Obsoletes: deepin-metacity <= 3.22.24 Obsoletes: deepin-metacity-devel <= 3.22.24 Obsoletes: deepin-mutter <= 3.20.38 Obsoletes: deepin-mutter-devel <= 3.20.38 %description This package provides a kwin configuration that used as the new WM for Deepin Desktop Environment. %if %{kwin_ext} %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: kwin-devel%{?_isa} Requires: qt5-qtx11extras-devel%{?_isa} Requires: gsettings-qt-devel%{?_isa} Requires: dtkcore-devel%{?_isa} Requires: kf5-kglobalaccel-devel%{?_isa} %description devel Header files and libraries for %{name}. %endif %prep %autosetup -p1 -n %{repo}-%{version} sed -i 's:/lib/:%{_libdir}/:' plugins/platforms/lib/CMakeLists.txt sed -i 's:/lib/:/%{_lib}/:' plugins/platforms/plugin/main.cpp \ plugins/platforms/plugin/main_wayland.cpp sed -i 's:/usr/lib:%{_libexecdir}:' deepin-wm-dbus/deepinwmfaker.cpp sed -i 's/kwin 5.21.5/kwin 5.24.4/' configures/kwin_no_scale.in %build # help find (and prefer) qt5 utilities, e.g. qmake, lrelease export PATH=%{_qt5_bindir}:$PATH %cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DUSE_WINDOW_TOOL=OFF \ -DENABLE_BUILTIN_BLUR=OFF \ -DENABLE_KDECORATION=ON \ -DENABLE_BUILTIN_MULTITASKING=OFF \ -DENABLE_BUILTIN_BLACK_SCREEN=OFF \ -DUSE_DEEPIN_WAYLAND=OFF \ %if !%{kwin_ext} -DUSE_PLUGINS=OFF %endif %cmake_build %install %cmake_install %files %doc CHANGELOG.md %license LICENSE %{_sysconfdir}/xdg/* %{_bindir}/kwin_no_scale %{_bindir}/deepin-wm-dbus %{_datadir}/dbus-1/services/*.service %{_datadir}/dbus-1/interfaces/*.xml %{_datadir}/kwin/scripts/* %{_datadir}/kwin/tabbox/* %if %{kwin_ext} %{_qt5_plugindir}/org.kde.kdecoration2/libdeepin-chameleon.so %{_qt5_plugindir}/platforms/lib%{repo}-xcb.so %{_qt5_plugindir}/platforms/lib%{repo}-wayland.so %{_qt5_plugindir}/kwin/effects/plugins/ %{_datadir}/dde-kwin-xcb/ %{_libdir}/libkwin-xcb.so.0 %{_libdir}/libkwin-xcb.so.0.* %files devel %{_libdir}/libkwin-xcb.so %{_libdir}/pkgconfig/%{repo}.pc %{_includedir}/%{repo} %endif %changelog * Wed Jul 19 2023 Fedora Release Engineering - 5.4.26-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 5.4.26-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 5.4.26-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Robin Lee - 5.4.26-5 - Disable kwin extension with kwin >= 5.25 * Thu Jul 14 2022 Jan Grulich - 5.4.26-4 - Rebuild (qt5) * Tue May 17 2022 Jan Grulich - 5.4.26-3 - Rebuild (qt5) * Fri Apr 22 2022 Robin Lee - 5.4.26-2 - Sync patches with Arch to get the kwin extensions really loaded * Tue Apr 19 2022 Robin Lee - 5.4.26-1 - New release 5.4.26 * Tue Mar 08 2022 Jan Grulich - 5.3.14-4 - Rebuild (qt5) * Mon Feb 14 2022 Robin Lee - 5.3.14-3 - Build as simple wrapper of plain kwin with kwin > 5.21 * Thu Jan 20 2022 Fedora Release Engineering - 5.3.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 07 2021 Robin Lee - 5.3.14-1 - New release 5.3.14 * Wed Jul 21 2021 Fedora Release Engineering - 5.2.0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Mar 29 2021 Robin Lee - 5.2.0.13-2 - Re-add missed patch * Mon Mar 29 2021 Robin Lee - 5.2.0.13-1 - new upstream release: 5.2.0.13 * Fri Mar 12 2021 Robin Lee - 5.2.0.2-4 - Make it a symlink to kwin_x11 since it does not build with kwin 5.21 * Tue Jan 26 2021 Fedora Release Engineering - 5.2.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 23 07:49:48 CET 2020 Jan Grulich - 5.2.0.2-2 - rebuild (qt5) * Thu Nov 12 2020 Robin Lee - 5.2.0.2-1 - new upstream release: 5.2.0.2 * Fri Sep 11 2020 Jan Grulich - 0.1.0-10 - rebuild (qt5) * Fri Aug 7 2020 Robin Lee - 0.1.0-9 - Improve compatibility with new CMake macro * Sat Aug 01 2020 Fedora Release Engineering - 0.1.0-9 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Apr 06 2020 Rex Dieter - 0.1.0-7 - rebuild (qt5) * Thu Feb 27 2020 Robin Lee - 0.1.0-6 - Fix path conflict with kdeplasma-addons (RHBZ#1807283) * Tue Jan 28 2020 Fedora Release Engineering - 0.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 23 2019 Robin Lee - 0.1.0-4 - Fix runtime issue with kwin 5.17 * Mon Dec 09 2019 Jan Grulich - 0.1.0-3 - rebuild (qt5) * Wed Sep 25 2019 Jan Grulich - 0.1.0-2 - rebuild (qt5) * Wed Jul 24 2019 Fedora Release Engineering - 0.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 17 2019 Jan Grulich - 0.0.4-3 - rebuild (qt5) * Wed Jun 05 2019 Jan Grulich - 0.0.4-2 - rebuild (qt5) * Mon Apr 22 2019 Robin Lee - 0.0.4-1 - new version * Mon Apr 15 2019 Robin Lee - 0.0.3.2-1 - Update to 0.0.3.2 * Fri Apr 12 2019 Robin Lee - 0.0.3.1-1 - Initial packaging