patch for autorotate support and require surface-tools [release 0.18.0-4mamba;Sat Sep 15 2018]

This commit is contained in:
Silvan Calarco 2024-01-05 17:41:28 +01:00
parent 531f186f7c
commit 1477b6b5ba
2 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -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 <silvan.calarco@mambasoft.it> 0.18.0-4mamba
- patch for autorotate support and require surface-tools
* Sun Sep 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-3mamba
- sddm.conf: also configure Session for autologin to work