!15 【轻量级 PR】:add deepin-wm-dbus
From: @leeffo Reviewed-by: @HelloWorld_lvcongqing Signed-off-by: @HelloWorld_lvcongqing
This commit is contained in:
commit
1e2a020c61
@ -1,5 +1,5 @@
|
|||||||
%global repo dde-kwin
|
%global repo dde-kwin
|
||||||
%define pkgrelease 3
|
%define pkgrelease 4
|
||||||
%if 0%{?openeuler}
|
%if 0%{?openeuler}
|
||||||
%define specrelease %{pkgrelease}
|
%define specrelease %{pkgrelease}
|
||||||
%else
|
%else
|
||||||
@ -52,15 +52,18 @@ BuildRequires: kf5-kservice-devel
|
|||||||
BuildRequires: kf5-plasma-devel
|
BuildRequires: kf5-plasma-devel
|
||||||
BuildRequires: kdecoration-devel
|
BuildRequires: kdecoration-devel
|
||||||
BuildRequires: kf5-ktextwidgets-devel
|
BuildRequires: kf5-ktextwidgets-devel
|
||||||
|
BuildRequires: qt5-qtdeclarative-devel
|
||||||
|
|
||||||
|
%if %{kwin_ext}
|
||||||
# for libQt5EdidSupport.a
|
# for libQt5EdidSupport.a
|
||||||
BuildRequires: qt5-qtbase-static
|
BuildRequires: qt5-qtbase-static
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
BuildRequires: qt5-qtdeclarative-devel
|
|
||||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||||
Requires: dde-qt5integration%{?_isa}
|
Requires: dde-qt5integration%{?_isa}
|
||||||
Requires: kwin%{?_isa} >= 5.21
|
Requires: kwin%{?_isa} >= 5.21
|
||||||
|
%else
|
||||||
|
Requires: %{_bindir}/kwin_x11
|
||||||
|
%endif
|
||||||
|
|
||||||
# since F31
|
# since F31
|
||||||
Obsoletes: deepin-wm <= 1.9.38
|
Obsoletes: deepin-wm <= 1.9.38
|
||||||
@ -92,12 +95,12 @@ Requires: dtkcore-devel%{?_isa}
|
|||||||
Requires: kf5-kglobalaccel-devel%{?_isa}
|
Requires: kf5-kglobalaccel-devel%{?_isa}
|
||||||
Requires: deepin-desktop-server
|
Requires: deepin-desktop-server
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Header files and libraries for %{sname}.
|
Header files and libraries for %{sname}.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
sed -i 's:/lib/:%{_libdir}/:' plugins/platforms/lib/CMakeLists.txt
|
sed -i 's:/lib/:%{_libdir}/:' plugins/platforms/lib/CMakeLists.txt
|
||||||
sed -i 's:/lib/:/%{_lib}/:' plugins/platforms/plugin/main.cpp \
|
sed -i 's:/lib/:/%{_lib}/:' plugins/platforms/plugin/main.cpp \
|
||||||
plugins/platforms/plugin/main_wayland.cpp
|
plugins/platforms/plugin/main_wayland.cpp
|
||||||
@ -115,7 +118,9 @@ export PATH=%{_qt5_bindir}:$PATH
|
|||||||
-DENABLE_BUILTIN_MULTITASKING=OFF \
|
-DENABLE_BUILTIN_MULTITASKING=OFF \
|
||||||
-DENABLE_BUILTIN_BLACK_SCREEN=OFF \
|
-DENABLE_BUILTIN_BLACK_SCREEN=OFF \
|
||||||
-DUSE_DEEPIN_WAYLAND=OFF \
|
-DUSE_DEEPIN_WAYLAND=OFF \
|
||||||
|
%if !%{kwin_ext}
|
||||||
-DUSE_PLUGINS=OFF
|
-DUSE_PLUGINS=OFF
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
@ -128,12 +133,12 @@ chmod 755 %{buildroot}%{_bindir}/kwin_no_scale
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_sysconfdir}/xdg/*
|
%{_sysconfdir}/xdg/*
|
||||||
%{_bindir}/kwin_no_scale
|
%{_bindir}/kwin_no_scale
|
||||||
%if %{kwin_ext}
|
|
||||||
%{_bindir}/deepin-wm-dbus
|
%{_bindir}/deepin-wm-dbus
|
||||||
%{_datadir}/dbus-1/services/*.service
|
%{_datadir}/dbus-1/services/*.service
|
||||||
%{_datadir}/dbus-1/interfaces/*.xml
|
%{_datadir}/dbus-1/interfaces/*.xml
|
||||||
%{_datadir}/kwin/scripts/*
|
%{_datadir}/kwin/scripts/*
|
||||||
%{_datadir}/kwin/tabbox/*
|
%{_datadir}/kwin/tabbox/*
|
||||||
|
%if %{kwin_ext}
|
||||||
%{_qt5_plugindir}/org.kde.kdecoration2/libdeepin-chameleon.so
|
%{_qt5_plugindir}/org.kde.kdecoration2/libdeepin-chameleon.so
|
||||||
%{_qt5_plugindir}/platforms/lib%{repo}-xcb.so
|
%{_qt5_plugindir}/platforms/lib%{repo}-xcb.so
|
||||||
%{_qt5_plugindir}/platforms/lib%{repo}-wayland.so
|
%{_qt5_plugindir}/platforms/lib%{repo}-wayland.so
|
||||||
@ -149,6 +154,9 @@ chmod 755 %{buildroot}%{_bindir}/kwin_no_scale
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 13 2023 liweigang <liweiganga@uniontech.com> - 5.4.26-4
|
||||||
|
- add deepin-wm-dbus
|
||||||
|
|
||||||
* Wed Aug 03 2022 liweiganga <liweiganga@uniontech.com> - 5.4.26-3
|
* Wed Aug 03 2022 liweiganga <liweiganga@uniontech.com> - 5.4.26-3
|
||||||
- modify kwin_no_scale permission to 755
|
- modify kwin_no_scale permission to 755
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user