Name: lxde-desktop Version: 1.0 Release: 1%{?dist} Summary: Minimal LXDE desktop environment with browser and editor License: MIT Group: User Interface/Desktops BuildArch: noarch Requires: lxde-common Requires: lxde-icon-theme Requires: lxsession Requires: lxpanel Requires: openbox Requires: pcmanfm Requires: lxappearance Requires: lxterminal Requires: lxrandr Requires: dbus-x11 Requires: xorg-x11-server-Xvfb Requires: xorg-x11-xinit Requires: tigervnc-server Requires: firefox Requires: vim-X11 %description This meta-package installs a minimal LXDE desktop environment with Firefox, Vim (with X11 support), and the lightweight Mousepad editor. If `ec2-user` exists, it installs a VNC-compatible `.vnc/xstartup` script that launches LXDE when VNC is started. %prep %build %install # Make xstartup file mkdir -p %{buildroot}/etc/skel/.vnc cat > %{buildroot}/etc/skel/.vnc/xstartup << 'EOF' #!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS exec startlxde & EOF chmod 0755 %{buildroot}/etc/skel/.vnc/xstartup # Ensure it lands in ec2-user's home if present at install time %post if id ec2-user &>/dev/null; then mkdir -p /home/ec2-user/.vnc cp -n /etc/skel/.vnc/xstartup /home/ec2-user/.vnc/xstartup chown -R ec2-user:ec2-user /home/ec2-user/.vnc fi %files %dir /etc/skel/.vnc %config(noreplace) /etc/skel/.vnc/xstartup %changelog * Sun Aug 03 2025 Yonghang Wang - 1.0-1 - Init