Package deepin-kwin: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | %define _cmake__builddir BUILD %define repo dde-kwin %define kwin_ver %{get_version plasma5-kwin-devel} %_K5if_ver_lteq %kwin_ver 5.21.5 %def_enable kwin_ext %else %def_disable kwin_ext %endif %def_disable clang Name: deepin-kwin Version: 5.3.14 Release: alt3 Summary: KWin configuration for Deepin Desktop Environment License: GPL-3.0+ and MIT Group: Graphical desktop/Other Url: https://github.com/linuxdeepin/dde-kwin Packager: Leontiy Volodin <lvol@altlinux.org> Source: %url/archive/%version/%repo-%version.tar.gz # upstream patches Patch: kwin-greater-than.patch Patch1: deepin-kwin-5.3.14-fix-library-links.patch # archlinux patches Patch2: %name-added-functions-from-their-forked-kwin.patch Patch3: %name-tabbox-chameleon-rename.patch Patch4: %name-unload-blur.patch Patch5: deepin-kwin-crash.patch # ALT patches Patch11: deepin-kwin-5.3.7-ALT-cmake-bad-elfs.patch %if_enabled clang BuildRequires(pre): clang12.0-devel %else BuildRequires(pre): gcc-c++ %endif BuildRequires(pre): rpm-build-kf5 rpm-build-ninja BuildRequires(pre): plasma5-kwin-devel BuildRequires: cmake extra-cmake-modules qt5-tools qt5-tools-devel qt5-base-devel plasma5-kdecoration-devel qt5-x11extras-devel qt5-declarative-devel kf5-kwindowsystem-devel kf5-kcoreaddons-devel dtk5-gui-devel dtk5-common kf5-kconfig-devel kf5-kglobalaccel-devel kf5-ki18n-devel gsettings-qt-devel plasma5-kwin-devel plasma5-kwayland-server-devel kf5-kwayland-devel BuildRequires: zlib-devel bzlib-devel libpng-devel libpcre-devel libbrotli-devel libuuid-devel libexpat-devel BuildRequires: libxcb-devel libglvnd-devel libX11-devel Requires: plasma5-kwin # libkwineffects12 libkwinglutils12 libxcb libGL libX11 %description This package provides a kwin configuration that used as the new WM for Deepin Desktop Environment. %package devel Summary: Development package for %name Group: Graphical desktop/Other %description devel Header files and libraries for %name. %prep %setup -n %repo-%version %patch -p1 %patch1 -p1 %patch2 -R -p1 %patch3 -p1 # %patch4 -p1 %patch5 -p1 # %patch11 -p2 sed -i 's|lrelease|lrelease-qt5|' plugins/platforms/plugin/translate_generation.sh sed -i 's|${CMAKE_INSTALL_PREFIX}/share/kwin/scripts|%_K5data/kwin/scripts/|' scripts/CMakeLists.txt sed -i 's|${CMAKE_INSTALL_PREFIX}/share/kwin/tabbox|%_K5data/kwin/tabbox|' tabbox/CMakeLists.txt sed -i 's|/usr/include/KWaylandServer|%_K5inc/KWaylandServer|' CMakeLists.txt # sed -i 's|/usr/share/backgrounds/default_background.jpg|/usr/share/design-current/backgrounds/default.png|' \ # plugins/kwineffects/multitasking/background.cpp \ # deepin-wm-dbus/deepinwmfaker.cpp sed -i 's|/usr/lib/deepin-daemon|/usr/libexec/deepin-daemon|' deepin-wm-dbus/deepinwmfaker.cpp sed -i 's|/usr/lib|/%_libdir|' \ plugins/platforms/plugin/main_wayland.cpp \ plugins/platforms/plugin/main.cpp # Fix wm error sed -i 's|kwin_x11 -platform|%_K5bin/kwin_x11 -platform|' configures/kwin_no_scale.in %build %if_enabled clang export CC="clang" export CXX="clang++" export AR="llvm-ar" %endif %K5cmake \ -GNinja \ -DCMAKE_INSTALL_LIBDIR=%_K5lib \ -DKWIN_LIBRARY_PATH=%_K5link \ # %cmake_build %install %cmake_install chmod +x %buildroot%_bindir/kwin_no_scale # install debian/dde-kwin.postinst %%buildroot%%_datadir/kwin/scripts/ # chmod 755 %%buildroot%%_datadir/kwin/scripts/dde-kwin.postinst # %%post # bash -x %%_datadir/kwin/scripts/dde-kwin.postinst %files %doc CHANGELOG.md LICENSE %_sysconfdir/xdg/* %_bindir/kwin_no_scale %if_enabled kwin_ext %_bindir/deepin-wm-dbus %_K5plug/platforms/lib%repo-xcb.so %_datadir/dbus-1/services/*.service %_K5data/kwin/scripts/* %_K5data/kwin/tabbox/* %dir %_datadir/dde-kwin-xcb/ %dir %_datadir/dde-kwin-xcb/translations/ %_datadir/dde-kwin-xcb/translations/%repo-xcb*.qm %dir %_K5plug/platforms/ %_K5lib/libkwin-xcb.so.* %_K5plug/platforms/lib%repo-wayland.so %dir %_K5plug/kwin/ %dir %_K5plug/kwin/effects/ %dir %_K5plug/kwin/effects/plugins/ %_K5plug/kwin/effects/plugins/libblur.so %_K5plug/kwin/effects/plugins/libmultitasking.so %_K5plug/kwin/effects/plugins/libscissor-window.so %_K5plug/org.kde.kdecoration2/libdeepin-chameleon.so %endif %files devel %if_enabled kwin_ext %_K5plug/platforms/lib%repo-xcb.so %_datadir/dbus-1/interfaces/*.xml %_includedir/%repo/ %_pkgconfigdir/%repo.pc %_K5lib/libkwin-xcb.so %endif %changelog * Mon Nov 08 2021 Sergey V Turchin <zerg@altlinux.org> 5.3.14-alt3 - fix to build with new kwin * Tue Oct 05 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.14-alt2 - Fixed library links with x11. * Fri Aug 20 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.14-alt1 - New version (5.3.14). * Tue May 18 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.9-alt1 - New version (5.3.9) with rpmgs script. * Fri Apr 09 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.7-alt3.git4d0141c - Fixed build with dtk 5.4.13. * Wed Mar 31 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.7-alt2.git4d0141c - Fixed compile with kwin 5.21. - Built from commit 4d0141c175e770586f2e08893c8105d1022dfc29. * Tue Mar 30 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.7-alt1 - New version (5.3.7) with rpmgs script. * Mon Jan 04 2021 Leontiy Volodin <lvol@altlinux.org> 5.2.0.13-alt1 - New version (5.2.0.13) with rpmgs script. * Tue Dec 15 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.11-alt2 - Changed default background. * Fri Dec 11 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.11-alt1 - New version (5.2.0.11) with rpmgs script. * Tue Dec 08 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.2-alt4 - Fixed critical wm error. * Wed Nov 25 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.2-alt3 - Fixed undefined symbols in elfs. - Fixed url. * Wed Nov 25 2020 Andrey Cherepanov <cas@altlinux.org> 5.2.0.2-alt2.1 - Link with libkwin to prevent unresolved symbols. * Wed Oct 07 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.2-alt2 - Fixed file locations. * Wed Sep 30 2020 Leontiy Volodin <lvol@altlinux.org> 5.2.0.2-alt1 - Initial build for ALT Sisyphus (thanks fedora and archlinux for this spec). |