# Generated from upstream-lock.json; see PATCHES.md for source patch history. %global selinuxtype targeted %global modulename gxdm %global commit0 bbb8bef0ae7ad4d799ebe08d1ccd863aa84be18b %global commit1 d2224674a2efe24028dc671e7eb070a92edb7265 Name: gxde-display-manager Version: 1.3.7.gxde3 Release: 1%{?dist} Summary: GXDE Display Manager, a fork of SDDM maintained by GXDE OS License: GPL-3.0-or-later AND GPL-2.0-or-later AND MIT AND CC-BY-3.0 AND CC-BY-4.0 AND CC-BY-SA-3.0 AND Apache-2.0 URL: https://github.com/GXDE-OS/gxde-display-manager Source0: https://codeload.github.com/GXDE-OS/gxde-display-manager/tar.gz/bbb8bef0ae7ad4d799ebe08d1ccd863aa84be18b#/gxde-display-manager-bbb8bef0ae7ad4d799ebe08d1ccd863aa84be18b.tar.gz Source1: https://codeload.github.com/GXDE-OS/gxdm-emergency-mode/tar.gz/d2224674a2efe24028dc671e7eb070a92edb7265#/gxdm-emergency-mode-d2224674a2efe24028dc671e7eb070a92edb7265.tar.gz Source2: gxdm-emergency-mode-vendor.tar.gz Source100: build.sh Source101: split-files.py Source102: sources.sha256 Source103: upstream-lock.json # Fedora-specific PAM files (upstream uses Arch's system-login; Fedora uses # password-auth/postlogin/pam_selinux). Source10: gxdm.pam Source11: gxdm-autologin.pam Source12: gxdm-greeter.pam Source13: gxdm-rescue.pam Source14: gxdm.te Source15: gxdm.fc Patch0: 0001-systemd-conflict-with-kmscon-vt.patch ExclusiveArch: x86_64 aarch64 BuildRequires: gcc gcc-c++ cmake ninja-build BuildRequires: rust cargo clang-devel BuildRequires: python3-docutils BuildRequires: pam-devel BuildRequires: qt6-qtbase-devel qt6-qtbase-private-devel qt6-qttools-devel BuildRequires: qt6-qtdeclarative-devel qt6-qtsvg-devel qt6-qtwayland-devel BuildRequires: pkgconfig(x11) pkgconfig(xau) pkgconfig(xcb) BuildRequires: xcb-util-wm-devel xcb-util-image-devel BuildRequires: pkgconfig(xcursor) pkgconfig(xfixes) pkgconfig(xi) BuildRequires: pkgconfig(xrandr) pkgconfig(xscrnsaver) pkgconfig(xtst) BuildRequires: pkgconfig(xkbcommon) BuildRequires: systemd-devel BuildRequires: dbus-devel BuildRequires: gxde-dtk6-devel gxde-dtk2-qt6-devel BuildRequires: gsettings-qt6-devel Requires: gxde-dtk6 gxde-dtk2-qt6 gsettings-qt6 Requires: pam systemd-libs dbus kbd Requires: xauth bash Recommends: selinux-policy-targeted Requires: %{name}-selinux = %{version}-%{release} Recommends: flakewm Recommends: accountsservice Recommends: gxde-lock Provides: gxdm Conflicts: gxdm # gxdm and sddm install to different paths (/usr/bin/gxdm vs /usr/bin/sddm, # /usr/lib/gxdm vs /usr/lib/sddm) and can coexist on Fedora. The user picks # which one to enable via systemctl. Do NOT conflict with sddm — Plasma needs it. Provides: service(graphical-login) %description GXDE Display Manager is a fork of SDDM maintained by GXDE OS contributors. It provides a Wayland-native greeter using DTK6 and an emergency-mode terminal rescue tool. X11 is no longer provided. %package selinux Summary: SELinux policy for GXDE Display Manager BuildArch: noarch %selinux_requires %description selinux SELinux file contexts that run GXDM in Fedora's standard display-manager domain and permit authenticated desktop sessions to start. %prep (cd %{_sourcedir} && sha256sum -c %{SOURCE102}) %setup -q -c -T -a 0 -a 1 mv gxde-display-manager-%{commit0} gxde-display-manager mv gxdm-emergency-mode-%{commit1} gxdm-emergency-mode pushd gxde-display-manager %patch -P 0 -p1 popd # Extract vendored Rust crates into the emergency-mode tree. tar xf %{SOURCE2} -C gxdm-emergency-mode cp %{SOURCE14} gxdm.te cp %{SOURCE15} gxdm.fc cp %{SOURCE103} upstream-lock.json mkdir licenses cp gxde-display-manager/debian/copyright licenses/gxde-display-manager.copyright 2>/dev/null || : cp gxdm-emergency-mode/LICENSE licenses/gxdm-emergency-mode.LICENSE 2>/dev/null || : %build %set_build_flags bash %{SOURCE100} "%{_libdir}" "%{_smp_build_ncpus}" make -f %{_datadir}/selinux/devel/Makefile %{modulename}.pp bzip2 -9 %{modulename}.pp %install cp -a stage/. %{buildroot}/ # Fedora PAM files replace upstream's Arch-style configs. install -Dpm 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/gxdm install -Dpm 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/pam.d/gxdm-autologin install -Dpm 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/pam.d/gxdm-greeter install -Dpm 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/pam.d/gxdm-rescue # Remove upstream PAM files installed by cmake FIRST, then install # Fedora-specific ones (upstream uses Arch's system-login; Fedora uses # password-auth/postlogin/pam_selinux). rm -f %{buildroot}%{_sysconfdir}/pam.d/gxdm rm -f %{buildroot}%{_sysconfdir}/pam.d/gxdm-autologin rm -f %{buildroot}%{_sysconfdir}/pam.d/gxdm-greeter install -Dpm 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/gxdm install -Dpm 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/pam.d/gxdm-autologin install -Dpm 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/pam.d/gxdm-greeter install -Dpm 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/pam.d/gxdm-rescue find %{buildroot} -type f -name '*.la' -delete install -Dpm 644 %{modulename}.pp.bz2 \ %{buildroot}%{_datadir}/selinux/packages/%{modulename}.pp.bz2 %check python3 %{SOURCE101} %{buildroot} %{_libdir} if grep -R -l -F "$PWD/stage" %{buildroot}%{_libdir}/pkgconfig %{buildroot}%{_libdir}/cmake 2>/dev/null; then echo 'Staging path leaked into installed development metadata' >&2 exit 1 fi grep -Fqx 'Conflicts=getty@tty1.service kmsconvt@tty1.service' \ %{buildroot}%{_unitdir}/gxdm.service grep -Fqx 'After=systemd-user-sessions.service getty@tty1.service kmsconvt@tty1.service plymouth-quit.service systemd-logind.service' \ %{buildroot}%{_unitdir}/gxdm.service grep -Fqx 'ExecStartPre=-/usr/bin/systemctl stop kmsconvt@tty*.service' \ %{buildroot}%{_unitdir}/gxdm.service test ! -e %{buildroot}%{_sysconfdir}/xdg/autostart/gxdm-lock-classic.desktop test -x %{buildroot}%{_prefix}/lib/gxdm/gxdm-settings-agent grep -Fqx 'Exec=%{_prefix}/lib/gxdm/gxdm-settings-agent' \ %{buildroot}%{_datadir}/dbus-1/services/top.gxde.DisplayManager.service %files -f runtime.files %license licenses/ %doc upstream-lock.json %config(noreplace) %{_sysconfdir}/pam.d/gxdm %config(noreplace) %{_sysconfdir}/pam.d/gxdm-autologin %config(noreplace) %{_sysconfdir}/pam.d/gxdm-greeter %config(noreplace) %{_sysconfdir}/pam.d/gxdm-rescue %config(noreplace) %{_sysconfdir}/gxdm/OMG.conf %pre selinux %selinux_relabel_pre -s %{selinuxtype} %post selinux %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 %postun selinux %selinux_modules_uninstall -s %{selinuxtype} %{modulename} %posttrans selinux %selinux_relabel_post -s %{selinuxtype} %files selinux %{_datadir}/selinux/packages/%{modulename}.pp.bz2 %changelog * Mon Oct 19 2026 CharOfString - 1.3.7.gxde3-1 - Package GXDE Display Manager from pinned upstream releases for Fedora 44 and 45