2024-01-05 17:41:28 +01:00
|
|
|
%define user_sddm 68
|
|
|
|
%define group_sddm 68
|
2024-01-05 17:41:28 +01:00
|
|
|
Name: sddm
|
2024-01-05 17:41:28 +01:00
|
|
|
Epoch: 1
|
2024-01-05 17:41:30 +01:00
|
|
|
Version: 0.20.0
|
|
|
|
Release: 2mamba
|
2024-01-05 17:41:28 +01:00
|
|
|
Summary: QML based X11 and Wayland display manager
|
|
|
|
Group: Graphical Desktop/Applications/Environment
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/sddm/sddm
|
2024-01-05 17:41:28 +01:00
|
|
|
Source: https://github.com/sddm/sddm.git/v%{version}/sddm-%{version}.tar.bz2
|
|
|
|
#Source: https://github.com/sddm/sddm.git/develop/sddm-%{version}.tar.bz2
|
2024-01-05 17:41:30 +01:00
|
|
|
Patch0: sddm-0.20.0-openmamba-pam.patch
|
2024-01-05 17:41:28 +01:00
|
|
|
Patch1: sddm-0.17.0.20180408git-fix-pam-group.patch
|
2024-01-05 17:41:28 +01:00
|
|
|
Patch2: sddm-0.18.0-autorotate.patch
|
2024-01-05 17:41:28 +01:00
|
|
|
Patch3: sddm-0.19.0-fix-xorg-autologin.patch
|
|
|
|
Patch4: sddm-0.19.0-upstream-Merge_normal_and_testing_paths_in_XorgDisplayServer__start.patch
|
|
|
|
Patch5: sddm-0.19.0-upstream-retry-starting-the-xserver.patch
|
|
|
|
Patch6: sddm-0.19.0-upstream-only_use_the_basename_for_desktop_session.patch
|
2024-01-05 17:41:28 +01:00
|
|
|
Patch7: sddm-0.19.0-fix-sessions-being-started-as-the-wrong-type-on-autologin.patch
|
|
|
|
Patch8: sddm-0.19.0-fix-build.patch
|
2024-01-05 17:41:29 +01:00
|
|
|
Patch9: sddm-0.19.0-revert-prefer_wayland_sessions_over_X11_ones.patch
|
2024-01-05 17:41:28 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 17:41:30 +01:00
|
|
|
BuildRequires: libXau-devel
|
2024-01-05 17:41:28 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libpam-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libsystemd-devel
|
|
|
|
BuildRequires: libxcb-devel
|
2024-01-05 17:41:28 +01:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel
|
2024-01-05 17:41:28 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
2024-01-05 17:41:28 +01:00
|
|
|
Requires: surface-tools
|
2024-01-05 17:41:28 +01:00
|
|
|
%systemd_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
QML based X11 and Wayland display manager.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 17:41:30 +01:00
|
|
|
%patch 0 -p1
|
|
|
|
%patch 2 -p1
|
|
|
|
#%patch 4 -p1
|
|
|
|
#%patch 5 -p1
|
|
|
|
#%patch 6 -p1
|
|
|
|
#%patch 7 -p1 -b .fix-sessions-being-started-as-the-wrong-type-on-autologin
|
|
|
|
#%patch 8 -p1 -b .fix-build
|
|
|
|
#%patch 9 -p1 -R -b .revert-prefer_wayland_sessions_over_X11_ones
|
2024-01-05 17:41:28 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
install -d -m0775 %{buildroot}%{_localstatedir}/lib/sddm
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d
|
|
|
|
%{buildroot}%{_bindir}/sddm --example-config > %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/default.conf
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
%pre
|
|
|
|
groupadd sddm -g %{group_sddm} 2>/dev/null
|
|
|
|
useradd -u %{user_sddm} -g sddm \
|
|
|
|
-d /var/lib/sddm -s /sbin/nologin -c "sddm user" sddm 2>/dev/null
|
|
|
|
:
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
%post
|
|
|
|
%systemd_post sddm
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun sddm
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun sddm
|
|
|
|
:
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
%posttrans
|
|
|
|
if [ $1 -ge 1 ]; then
|
2024-01-05 17:41:28 +01:00
|
|
|
sed -i "/pam_tally.so/d" /etc/pam.d/sddm-autologin
|
2024-01-05 17:41:28 +01:00
|
|
|
[ -e /etc/sddm.conf.rpmsave ] && {
|
|
|
|
eval `grep ^User= /etc/sddm.conf.rpmsave`
|
2024-01-05 17:41:28 +01:00
|
|
|
eval `grep ^Session= /etc/sddm.conf.rpmsave`
|
|
|
|
}
|
|
|
|
[ "${Session}" ] || Session="plasma"
|
2024-01-05 17:41:28 +01:00
|
|
|
[ -e /etc/sddm.conf ] || {
|
|
|
|
cat > /etc/sddm.conf << _EOF
|
|
|
|
[Autologin]
|
|
|
|
User=${User}
|
2024-01-05 17:41:28 +01:00
|
|
|
Session=${Session}
|
2024-01-05 17:41:28 +01:00
|
|
|
_EOF
|
|
|
|
}
|
|
|
|
if [ -e /opt/kde/share/config/kdm/kdmrc -a ! "${User}" ]; then
|
2024-01-05 17:41:28 +01:00
|
|
|
# Keep autologin when upgrading from KDM
|
|
|
|
KDM_AUTOLOGIN=`grep "^AutoLoginUser=" /opt/kde/share/config/kdm/kdmrc| sed "s|AutoLoginUser=||"`
|
|
|
|
if [ "${KDM_AUTOLOGIN}" ]; then
|
|
|
|
sed -i "s|^User=$|^User=${KDM_AUTOLOGIN}|" /etc/sddm.conf
|
|
|
|
fi
|
2024-01-05 17:41:28 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf
|
|
|
|
%{_sysconfdir}/pam.d/sddm
|
|
|
|
%{_sysconfdir}/pam.d/sddm-autologin
|
|
|
|
%{_sysconfdir}/pam.d/sddm-greeter
|
2024-01-05 17:41:28 +01:00
|
|
|
#%config(noreplace) %{_sysconfdir}/sddm.conf
|
2024-01-05 17:41:28 +01:00
|
|
|
%{_unitdir}/sddm.service
|
2024-01-05 17:41:30 +01:00
|
|
|
%{_sysusersdir}/sddm.conf
|
|
|
|
%{_tmpfilesdir}/sddm.conf
|
2024-01-05 17:41:28 +01:00
|
|
|
%{_bindir}/sddm
|
|
|
|
%{_bindir}/sddm-greeter
|
2024-01-05 17:41:28 +01:00
|
|
|
%dir %{_prefix}/lib/sddm/sddm.conf.d
|
|
|
|
%{_prefix}/lib/sddm/sddm.conf.d/default.conf
|
2024-01-05 17:41:28 +01:00
|
|
|
%dir %{_libdir}/qt5/qml/SddmComponents
|
|
|
|
%{_libdir}/qt5/qml/SddmComponents/*
|
2024-01-05 17:41:30 +01:00
|
|
|
%{_prefix}/libexec/sddm-helper*
|
2024-01-05 17:41:28 +01:00
|
|
|
%{_datadir}/sddm/faces/.face.icon
|
2024-01-05 17:41:28 +01:00
|
|
|
%{_datadir}/sddm/faces/root.face.icon
|
|
|
|
%dir %{_datadir}/sddm/flags
|
|
|
|
%{_datadir}/sddm/flags/*.png
|
|
|
|
%dir %{_datadir}/sddm/scripts
|
|
|
|
%{_datadir}/sddm/scripts/*
|
|
|
|
%dir %{_datadir}/sddm/themes
|
2024-01-05 17:41:28 +01:00
|
|
|
#%dir %{_datadir}/sddm/themes/circles
|
|
|
|
#%{_datadir}/sddm/themes/circles/*
|
2024-01-05 17:41:28 +01:00
|
|
|
%dir %{_datadir}/sddm/themes/elarun
|
|
|
|
%{_datadir}/sddm/themes/elarun/*
|
|
|
|
%dir %{_datadir}/sddm/themes/maldives
|
|
|
|
%{_datadir}/sddm/themes/maldives/*
|
2024-01-05 17:41:28 +01:00
|
|
|
%dir %{_datadir}/sddm/themes/maya
|
|
|
|
%{_datadir}/sddm/themes/maya/*
|
2024-01-05 17:41:28 +01:00
|
|
|
%{_datadir}/sddm/translations/*.qm
|
2024-01-05 17:41:28 +01:00
|
|
|
%attr(-,sddm,sddm) %dir %{_localstatedir}/lib/sddm
|
|
|
|
%doc LICENSE
|
2024-01-05 17:41:28 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:41:30 +01:00
|
|
|
* Wed Jul 19 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.0-2mamba
|
|
|
|
- restore lost patch for sddm-autologin in openmamba-pam patch
|
|
|
|
|
|
|
|
* Tue Jul 18 2023 Automatic Build System <autodist@mambasoft.it> 0.20.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:29 +01:00
|
|
|
* Fri Jan 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-4mamba
|
|
|
|
- revert upstream commit that makes Wayland the default session
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Fri Apr 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-3mamba
|
|
|
|
- added upstream patch to fix autologin sessions being start with wrong type (e.g. wayland with plasma-X11)
|
|
|
|
- pam/sddm-autologin: fix arguments passed to pam_faillock.so
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Fri Dec 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-2mamba
|
|
|
|
- revert to stable version (bump epoch); remove obsolete requirement for haveged
|
|
|
|
|
|
|
|
* Fri Dec 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-1mamba
|
|
|
|
- update to 0.19.0
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Mon Sep 06 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0.20210906git-1mamba
|
|
|
|
- update to 0.19.0.20210906git
|
|
|
|
|
|
|
|
* Sun Dec 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.0-2mamba
|
|
|
|
- added upstream patches to fix Xorg autologin (see https://github.com/sddm/sddm/issues/1348)
|
|
|
|
|
|
|
|
* Wed Nov 11 2020 Automatic Build System <autodist@mambasoft.it> 0.19.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sun Oct 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.1-4mamba
|
|
|
|
- fix for pam patch not applied
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Thu Oct 15 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.1-3mamba
|
|
|
|
- sddm-autologin: remove use of deprecated pam_tally.so
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sun Oct 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.1-2mamba
|
|
|
|
- require haveged to fix startup when kernel random generator has not had enough entropy
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Mon Apr 01 2019 Automatic Build System <autodist@mambasoft.it> 0.18.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sat Sep 15 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-4mamba
|
|
|
|
- patch for autorotate support and require surface-tools
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sun Sep 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-3mamba
|
|
|
|
- sddm.conf: also configure Session for autologin to work
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Wed Sep 05 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-2mamba
|
|
|
|
- reconfigure autologin user after upgrade
|
|
|
|
|
|
|
|
* Sat Sep 01 2018 Automatic Build System <autodist@mambasoft.it> 0.18.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sun Apr 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.17.0-2mamba
|
|
|
|
- added upstream patch and pam configuration to fix support for pam_groups
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Wed Dec 27 2017 Automatic Build System <autodist@mambasoft.it> 0.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Sun Nov 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-3mamba
|
|
|
|
- set sddm.conf %config(noreplace) and configure autologin like in kdm
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Wed Nov 15 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-2mamba
|
|
|
|
- fix sddm-autologin pam file for openmamba
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Tue Oct 24 2017 Automatic Build System <autodist@mambasoft.it> 0.16.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Fri Sep 22 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15.0-1mamba
|
|
|
|
- update to 0.15.0
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Tue Oct 04 2016 Automatic Build System <autodist@mambasoft.it> 0.14.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:41:28 +01:00
|
|
|
* Wed Apr 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13.0-1mamba
|
|
|
|
- package created using the webbuild interface
|