%define user_sddm 68 %define group_sddm 68 Name: sddm Version: 0.18.1 Release: 1mamba Summary: QML based X11 and Wayland display manager Group: Graphical Desktop/Applications/Environment Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/sddm/sddm ## GITSOURCE https://github.com/sddm/sddm.git v0.13.0 #Source: https://github.com/sddm/sddm.git/develop/sddm-%{version}.tar.bz2 Source: https://github.com/sddm/sddm.git/v%{version}/sddm-%{version}.tar.bz2 Patch0: sddm-0.17.0-openmamba-pam.patch Patch1: sddm-0.17.0.20180408git-fix-pam-group.patch Patch2: sddm-0.18.0-autorotate.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libpam-devel BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel BuildRequires: libsystemd-devel BuildRequires: libxcb-devel ## AUTOBUILDREQ-END BuildRequires: cmake Requires: surface-tools %systemd_requires BuildRoot: %{_tmppath}/%{name}-%{version}-root %description QML based X11 and Wayland display manager. %debug_package %prep %setup -q %patch0 -p1 #%patch1 -p1 %patch2 -p1 %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build install -d -m0775 %{buildroot}%{_localstatedir}/lib/sddm install -d -m0755 %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d %{buildroot}%{_bindir}/sddm --example-config > %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/default.conf %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %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 : %post %systemd_post sddm : %preun %systemd_preun sddm : %postun %systemd_postun sddm : %posttrans if [ $1 -ge 1 ]; then [ -e /etc/sddm.conf.rpmsave ] && { eval `grep ^User= /etc/sddm.conf.rpmsave` eval `grep ^Session= /etc/sddm.conf.rpmsave` } [ "${Session}" ] || Session="plasma" [ -e /etc/sddm.conf ] || { cat > /etc/sddm.conf << _EOF [Autologin] User=${User} Session=${Session} _EOF } if [ -e /opt/kde/share/config/kdm/kdmrc -a ! "${User}" ]; then # 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 fi fi : %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 #%config(noreplace) %{_sysconfdir}/sddm.conf %{_unitdir}/sddm.service %{_bindir}/sddm %{_bindir}/sddm-greeter %dir %{_prefix}/lib/sddm/sddm.conf.d %{_prefix}/lib/sddm/sddm.conf.d/default.conf %dir %{_libdir}/qt5/qml/SddmComponents %{_libdir}/qt5/qml/SddmComponents/* %{_prefix}/libexec/sddm-helper %{_datadir}/sddm/faces/.face.icon %{_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 #%dir %{_datadir}/sddm/themes/circles #%{_datadir}/sddm/themes/circles/* %dir %{_datadir}/sddm/themes/elarun %{_datadir}/sddm/themes/elarun/* %dir %{_datadir}/sddm/themes/maldives %{_datadir}/sddm/themes/maldives/* %dir %{_datadir}/sddm/themes/maya %{_datadir}/sddm/themes/maya/* %{_datadir}/sddm/translations/*.qm %attr(-,sddm,sddm) %dir %{_localstatedir}/lib/sddm %doc LICENSE %changelog * Mon Apr 01 2019 Automatic Build System 0.18.1-1mamba - automatic version update by autodist * Sat Sep 15 2018 Silvan Calarco 0.18.0-4mamba - patch for autorotate support and require surface-tools * Sun Sep 09 2018 Silvan Calarco 0.18.0-3mamba - sddm.conf: also configure Session for autologin to work * Wed Sep 05 2018 Silvan Calarco 0.18.0-2mamba - reconfigure autologin user after upgrade * Sat Sep 01 2018 Automatic Build System 0.18.0-1mamba - automatic version update by autodist * Sun Apr 08 2018 Silvan Calarco 0.17.0-2mamba - added upstream patch and pam configuration to fix support for pam_groups * Wed Dec 27 2017 Automatic Build System 0.17.0-1mamba - automatic version update by autodist * Sun Nov 19 2017 Silvan Calarco 0.16.0-3mamba - set sddm.conf %config(noreplace) and configure autologin like in kdm * Wed Nov 15 2017 Silvan Calarco 0.16.0-2mamba - fix sddm-autologin pam file for openmamba * Tue Oct 24 2017 Automatic Build System 0.16.0-1mamba - automatic version update by autodist * Fri Sep 22 2017 Silvan Calarco 0.15.0-1mamba - update to 0.15.0 * Tue Oct 04 2016 Automatic Build System 0.14.0-1mamba - automatic version update by autodist * Wed Apr 27 2016 Silvan Calarco 0.13.0-1mamba - package created using the webbuild interface