Package deepin-session-shell: 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 | %def_disable clang %define repo dde-session-shell Name: deepin-session-shell Version: 5.4.42 Release: alt1 Summary: Deepin desktop-environment - Session shell module License: GPL-3.0+ Group: Graphical desktop/Other Url: https://github.com/linuxdeepin/dde-session-shell Packager: Leontiy Volodin <lvol@altlinux.org> Source: %url/archive/%version/%repo-%version.tar.gz Patch1: deepin-session-shell-5.4.42-alt-lightdm-for-lockscreen.patch Patch2: deepin-session-shell-5.4.13-hide-sleep-and-hibernate.patch Patch3: deepin-session-shell-5.4.42-alt-gcc10.patch %if_enabled clang BuildRequires(pre): clang12.0-devel %else BuildRequires(pre): gcc-c++ %endif BuildRequires(pre): rpm-build-ninja BuildRequires: cmake BuildRequires: qt5-tools BuildRequires: qt5-base-devel BuildRequires: deepin-qt-dbus-factory-devel BuildRequires: libpam0-devel BuildRequires: dtk5-widget-devel BuildRequires: dtk5-common BuildRequires: qt5-x11extras-devel BuildRequires: qt5-multimedia-devel BuildRequires: qt5-svg-devel BuildRequires: libxcbutil-icccm-devel BuildRequires: gsettings-qt-devel BuildRequires: lightdm-devel BuildRequires: libgmock-devel # deepin-gettext-tools dtk5-widget-devel deepin-qt-dbus-factory-devel gsettings-qt-devel libgtk+2-devel lightdm-devel libsystemd-devel qt5-base-devel qt5-svg-devel qt5-x11extras-devel qt5-multimedia-devel libxcbutil-icccm-devel libXcursor-devel libXtst-devel libpam0-devel qt5-linguist %description %summary. %prep %setup -n %repo-%version %patch1 -p1 %patch2 -p1 %patch3 -p1 sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh sed -i 's|/lib|/libexec|' scripts/lightdm-deepin-greeter sed -i 's|/usr/bin/bash|/bin/bash|' src/dde-shutdown/view/contentwidget.cpp #sed -i 's|/usr/share/backgrounds/default_background.jpg|/usr/share/design-current/backgrounds/default.png|' \ # src/widgets/fullscreenbackground.cpp \ # src/session-widgets/userinfo.h #sed -i 's|/usr/share/backgrounds/deepin/desktop.jpg|/usr/share/design-current/backgrounds/default.png|' \ # src/session-widgets/lockcontent.cpp \ # src/dde-shutdown/view/contentwidget.cpp #sed -i 's|/usr/share/wallpapers/deepin/desktop.jpg|/usr/share/design-current/backgrounds/default.png|' \ # src/widgets/fullscreenbackground.cpp #sed -i 's|theme/background/default_background.jpg|theme/background.png|' \ # src/dde-lock/logintheme.qrc \ # src/lightdm-deepin-greeter/logintheme.qrc # We don't use common-auth on ALT sed -i 's/password-auth/system-auth/; s/common-auth/system-auth/' src/libdde-auth/deepinauthframework.cpp sed -i 's|qdbusxml2cpp|qdbusxml2cpp-qt5|' CMakeLists.txt sed -i 's|5\.5||' \ CMakeLists.txt \ tests/dde-lock/CMakeLists.txt \ tests/lightdm-deepin-greeter/CMakeLists.txt %build %if_enabled clang export CC="clang" export CXX="clang++" export AR="llvm-ar" %endif %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %if_enabled clang -DLLVM_PARALLEL_LINK_JOBS=1 \ -DLLVM_TARGETS_TO_BUILD="all" \ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='AVR' \ -DLLVM_ENABLE_LIBCXX:BOOL=OFF \ -DLLVM_ENABLE_ZLIB:BOOL=ON \ %endif # %cmake_build %install %cmake_install chmod +x %buildroot%_bindir/deepin-greeter %files %config(noreplace) %_sysconfdir/deepin/greeters.d/00-xrandr %config(noreplace) %_sysconfdir/deepin/greeters.d/lightdm-deepin-greeter %config(noreplace) %_sysconfdir/deepin/greeters.d/10-cursor-theme %_bindir/deepin-greeter %_bindir/lightdm-deepin-greeter %_bindir/dde-lock %_datadir/%repo/ %_desktopdir/dde-lock.desktop %_datadir/dbus-1/services/*.service %_datadir/xgreeters/lightdm-deepin-greeter.desktop %_datadir/glib-2.0/schemas/com.deepin.dde.session-shell.gschema.xml %dir %_datadir/deepin-authentication/ %dir %_datadir/deepin-authentication/privileges/ %_datadir/deepin-authentication/privileges/lightdm-deepin-greeter.conf %changelog * Wed Jul 14 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.42-alt1 - New version (5.4.42). * Thu Jul 08 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.13-alt2 - Fixed build with libgmock.so.1.11.0. * Mon Jun 28 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.13-alt1 - New version (5.4.13). * Thu Jun 17 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.5-alt4 - Fixed lockscreen. * Fri Apr 09 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.5-alt3 - Fixed build with dtk 5.4.13. * Thu Mar 11 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.5-alt2 - Fixed backgrounds. * Tue Mar 09 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.5-alt1 - New version (5.4.5) with rpmgs script. * Tue Jan 12 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.0.45-alt1 - New version (5.3.0.45) with rpmgs script. * Fri Dec 25 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.41-alt2 - Fixed background. - Fixed qdbus generations. * Fri Dec 04 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.41-alt1 - New version (5.3.0.41) with rpmgs script. * Wed Nov 18 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.24-alt1 - New version (5.3.0.24) with rpmgs script. * Wed Oct 07 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.22-alt1 - New version (5.3.0.22) with rpmgs script. * Mon Aug 17 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.5-alt1 - Initial build for ALT Sisyphus. |