%global debug_package %{nil} %undefine _debugsource_packages Name: dde-desktop Version: 1.0 Release: 2%{?dist} Summary: Deepin Desktop Environment (DDE) meta package for Amazon Linux 2023 BuildArch: noarch License: GPL-3.0-or-later URL: https://www.deepin.org # Session glue shipped by this meta package Source0: dde-desktop-session Source1: dde-treeland.desktop Source2: deepin-daemon.sysusers Source3: dde-desktop-vnc # --------------------------------------------------------------------------- # Compositor + shell (the core of the desktop) # --------------------------------------------------------------------------- Requires: treeland Requires: dde-shell >= 2.0.44-2 Requires: dde-application-manager Requires: dde-daemon Requires: dde-session Requires: dde-api Requires: dde-launchpad Requires: dde-tray-loader Requires: dde-appearance Requires: dde-app-services Requires: deepin-service-manager Requires: dde-polkit-agent Requires: dde-control-center Requires: dde-clipboard # X11 window manager (fallback / non-Wayland path) Requires: deepin-kwin # --------------------------------------------------------------------------- # Toolkit + Qt platform integration (Deepin look & feel) # --------------------------------------------------------------------------- Requires: dtk6core Requires: dtk6gui Requires: dtk6widget Requires: dtk6declarative Requires: deepin-qt6platform-plugins Requires: qt6integration Requires: qt6-qtwayland # --------------------------------------------------------------------------- # Themes, icons, wallpapers # --------------------------------------------------------------------------- Requires: deepin-desktop-base Requires: deepin-desktop-theme Requires: deepin-gtk-theme Requires: deepin-icon-theme Requires: deepin-sound-theme Requires: deepin-wallpapers Requires: deepin-desktop-schemas # --------------------------------------------------------------------------- # System services required for a functional session # --------------------------------------------------------------------------- Requires: accountsservice Requires: dbus-x11 # The util-dfm/dde-file-manager desktop plugin uses g_unix_mount_entry_free, # introduced in GLib 2.84. Force the COPR glib2 (>= 2.84); base AL2023 ships # 2.82 which lacks the symbol and breaks org.deepin.ds.desktop. Requires: glib2 >= 2.84 # --------------------------------------------------------------------------- # Default applications # --------------------------------------------------------------------------- Requires: deepin-terminal Requires: deepin-calculator Requires: dde-file-manager # Optional apps (pulled as weak deps; install won't fail if unavailable) Recommends: deepin-editor Recommends: deepin-system-monitor Recommends: deepin-image-viewer Recommends: deepin-draw Recommends: deepin-album Recommends: deepin-music Recommends: deepin-font-manager Recommends: deepin-compressor Recommends: dde-calendar %description dde-desktop is the canonical meta package that installs and configures a complete Deepin Desktop Environment (DDE) on Amazon Linux 2023, built against the yxwang5db2/al-stream-2023 COPR (Qt6 / DTK6 / treeland). Installing this package pulls in the treeland Wayland compositor, the dde-shell (dock, panels, notifications), the session/daemon services, the DTK6 toolkit and Qt6 platform integration, the Deepin themes and wallpapers, and a default set of Deepin applications. It also ships the session glue that is otherwise not part of any single upstream package: * /usr/bin/dde-desktop-session - the canonical session launcher (starts treeland with the correct backend, then the dde-shell dock + desktop and the supporting services in the required order). Auto-detects headless / no-GPU hosts (e.g. EC2) and runs treeland nested in X with the software renderer. * /usr/share/wayland-sessions/dde-treeland.desktop - the session entry for a display manager. * a sysusers.d entry for the deepin-daemon system user (required by the DConfig daemon), and post-install enablement of accounts-daemon and dde-dconfig-daemon. This is the ONLY supported way to install and configure the DDE experience on AL2023; installing components piecemeal is not supported. %package vnc Summary: Headless VNC remote access for the Deepin Desktop Environment Requires: %{name} = %{version}-%{release} Requires: tigervnc-server Requires: dbus-x11 %description vnc Turnkey headless remote access for DDE on Amazon Linux 2023 using approach #1: treeland nested in an Xvnc X server (wlroots X11 backend, software renderer), reached with a VNC client tunneled over SSH. Provides /usr/bin/dde-desktop-vnc which sets up the VNC session (xstartup -> dde-desktop-session) and starts the server: dde-desktop-vnc start :1 1920x1080 Always reach it through an SSH tunnel; never expose the VNC port in a security group. %prep # nothing to unpack (meta package) %build # nothing to build %install install -Dm0755 %{SOURCE0} %{buildroot}%{_bindir}/dde-desktop-session install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/wayland-sessions/dde-treeland.desktop install -Dm0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/sysusers.d/deepin-daemon.conf install -Dm0755 %{SOURCE3} %{buildroot}%{_bindir}/dde-desktop-vnc %files %{_bindir}/dde-desktop-session %{_datadir}/wayland-sessions/dde-treeland.desktop %{_prefix}/lib/sysusers.d/deepin-daemon.conf %files vnc %{_bindir}/dde-desktop-vnc %post # Create the deepin-daemon system user (needed by dde-dconfig-daemon). %sysusers_create_compat %{_prefix}/lib/sysusers.d/deepin-daemon.conf 2>/dev/null || \ /usr/bin/systemd-sysusers %{_prefix}/lib/sysusers.d/deepin-daemon.conf 2>/dev/null || \ /usr/sbin/useradd -r -m -d /var/lib/deepin-daemon -s /sbin/nologin deepin-daemon 2>/dev/null || true # Reload the system D-Bus so the ConfigManager ownership policy for the new # deepin-daemon user takes effect, then enable the required system services. systemctl reload dbus 2>/dev/null || systemctl reload messagebus 2>/dev/null || true systemctl enable accounts-daemon 2>/dev/null || true systemctl enable dde-dconfig-daemon 2>/dev/null || true # Ensure a default wallpaper exists for treeland's DEFAULT_WALLPAPER path. if [ ! -e /usr/share/wallpapers/deepin/deepin-default.jpg ]; then _wp=$(ls /usr/share/wallpapers/deepin/*.jpg 2>/dev/null | head -1) [ -n "$_wp" ] && ln -sf "$_wp" /usr/share/wallpapers/deepin/deepin-default.jpg 2>/dev/null || true fi %changelog * Sun Jul 19 2026 Yonghang Wang - 1.0-2 - Add dde-desktop-vnc subpackage (tigervnc + turnkey headless remote helper) - Session launcher creates ~/Desktop to silence organizer error * Sun Jul 19 2026 Yonghang Wang - 1.0-1 - Initial dde-desktop meta package: pulls the full DDE stack (treeland, dde-shell, daemons, DTK6, Qt6 integration, themes, apps) and ships the canonical session launcher, wayland-session entry, deepin-daemon sysusers, and service enablement. - Requires glib2 >= 2.84 (COPR) for the file-manager desktop plugin symbol. - Requires dde-shell >= 2.0.44-2 (fixed plugin install dir so the dock renders).