From 1477b6b5ba701b7db13c4ef792e79390c4dcde39 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:41:28 +0100 Subject: [PATCH] patch for autorotate support and require surface-tools [release 0.18.0-4mamba;Sat Sep 15 2018] --- sddm-0.18.0-autorotate.patch | 15 +++++++++++++++ sddm.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 sddm-0.18.0-autorotate.patch diff --git a/sddm-0.18.0-autorotate.patch b/sddm-0.18.0-autorotate.patch new file mode 100644 index 0000000..8b6f343 --- /dev/null +++ b/sddm-0.18.0-autorotate.patch @@ -0,0 +1,15 @@ +diff -Nru sddm-0.18.0.orig/data/scripts/Xsetup sddm-0.18.0/data/scripts/Xsetup +--- sddm-0.18.0.orig/data/scripts/Xsetup 2018-09-01 22:09:38.000000000 +0200 ++++ sddm-0.18.0/data/scripts/Xsetup 2018-09-15 13:30:03.040962028 +0200 +@@ -1,3 +1,4 @@ + #!/bin/sh + # Xsetup - run as root before the login dialog appears + ++[ -e /usr/share/autorotate/autorotate ] && /usr/share/autorotate/autorotate +diff -Nru sddm-0.18.0.orig/data/scripts/Xstop sddm-0.18.0/data/scripts/Xstop +--- sddm-0.18.0.orig/data/scripts/Xstop 2018-09-01 22:09:38.000000000 +0200 ++++ sddm-0.18.0/data/scripts/Xstop 2018-09-15 13:30:21.253040007 +0200 +@@ -1,2 +1,3 @@ + #!/bin/sh + # Xstop - run as root after stopping X ++killall -9 autorotate diff --git a/sddm.spec b/sddm.spec index 274a281..cebb6c9 100644 --- a/sddm.spec +++ b/sddm.spec @@ -2,7 +2,7 @@ %define group_sddm 68 Name: sddm Version: 0.18.0 -Release: 3mamba +Release: 4mamba Summary: QML based X11 and Wayland display manager Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -14,6 +14,7 @@ URL: https://github.com/sddm/sddm 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 @@ -25,6 +26,7 @@ BuildRequires: libsystemd-devel BuildRequires: libxcb-devel ## AUTOBUILDREQ-END BuildRequires: cmake +Requires: surface-tools %systemd_requires BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -37,6 +39,7 @@ QML based X11 and Wayland display manager. %setup -q %patch0 -p1 #%patch1 -p1 +%patch2 -p1 %build %cmake -d build @@ -131,6 +134,9 @@ fi %doc LICENSE %changelog +* 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