Accepting request 1233709 from devel:microos:kalpa
- Lifted pam configuration installation from default sddm package, fixes pam failures OBS-URL: https://build.opensuse.org/request/show/1233709 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sddm-kalpa?expand=0&rev=2
This commit is contained in:
commit
b2ab01459d
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 28 19:41:01 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
|
||||||
|
|
||||||
|
- Lifted pam configuration installation from default sddm package,
|
||||||
|
fixes pam failures
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 19 18:56:10 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
|
Thu Dec 19 18:56:10 UTC 2024 - Shawn Dunn <sfalken@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package sddm-kalpa
|
# spec file for package sddm-kalpa
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2024 Neal Gompa
|
# Copyright (c) 2024 Neal Gompa
|
||||||
# Copyright (c) 2024 Shawn W Dunn
|
# Copyright (c) 2024 Shawn W Dunn
|
||||||
#
|
#
|
||||||
@ -16,7 +17,7 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# Disable X11
|
|
||||||
%bcond x11 0
|
%bcond x11 0
|
||||||
|
|
||||||
%define _name sddm
|
%define _name sddm
|
||||||
@ -56,10 +57,10 @@ Patch4: sddm-0.21.0-qt6greeter.patch
|
|||||||
|
|
||||||
BuildRequires: cmake >= 3.5.0
|
BuildRequires: cmake >= 3.5.0
|
||||||
BuildRequires: docutils
|
BuildRequires: docutils
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: shadow
|
BuildRequires: shadow
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: fdupes
|
|
||||||
|
|
||||||
BuildRequires: cmake(Qt6Core)
|
BuildRequires: cmake(Qt6Core)
|
||||||
BuildRequires: cmake(Qt6DBus)
|
BuildRequires: cmake(Qt6DBus)
|
||||||
@ -68,7 +69,7 @@ BuildRequires: cmake(Qt6LinguistTools)
|
|||||||
BuildRequires: cmake(Qt6Qml)
|
BuildRequires: cmake(Qt6Qml)
|
||||||
BuildRequires: cmake(Qt6Quick)
|
BuildRequires: cmake(Qt6Quick)
|
||||||
BuildRequires: cmake(Qt6QuickTest)
|
BuildRequires: cmake(Qt6QuickTest)
|
||||||
BuildRequires: cmake(Qt6Test)
|
BuildRequires: cmake(Qt6Test)
|
||||||
|
|
||||||
BuildRequires: pkgconfig(libsystemd)
|
BuildRequires: pkgconfig(libsystemd)
|
||||||
BuildRequires: pkgconfig(pam)
|
BuildRequires: pkgconfig(pam)
|
||||||
@ -76,9 +77,9 @@ BuildRequires: pkgconfig(systemd)
|
|||||||
BuildRequires: pkgconfig(xcb)
|
BuildRequires: pkgconfig(xcb)
|
||||||
BuildRequires: pkgconfig(xcb-xkb)
|
BuildRequires: pkgconfig(xcb-xkb)
|
||||||
|
|
||||||
|
Requires: sddm-greeter-displayserver
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
Requires: group(sddm)
|
Requires: group(sddm)
|
||||||
Requires: sddm-greeter-displayserver
|
|
||||||
%if %{with x11}
|
%if %{with x11}
|
||||||
Requires: xinit
|
Requires: xinit
|
||||||
%endif
|
%endif
|
||||||
@ -103,8 +104,8 @@ designer the ability to create smooth, animated user interfaces.
|
|||||||
Summary: Generic Wayland SDDM greeter configuration
|
Summary: Generic Wayland SDDM greeter configuration
|
||||||
Provides: sddm-greeter-displayserver
|
Provides: sddm-greeter-displayserver
|
||||||
Conflicts: sddm-greeter-displayserver
|
Conflicts: sddm-greeter-displayserver
|
||||||
Requires: weston
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
Requires: weston
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description wayland-generic
|
%description wayland-generic
|
||||||
@ -118,8 +119,8 @@ This is the generic default Wayland configuration provided by SDDM.
|
|||||||
Summary: X11 SDDM greeter configuration
|
Summary: X11 SDDM greeter configuration
|
||||||
Provides: sddm-greeter-displayserver
|
Provides: sddm-greeter-displayserver
|
||||||
Conflicts: sddm-greeter-displayserver
|
Conflicts: sddm-greeter-displayserver
|
||||||
Requires: xorg-x11-server
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
Requires: xorg-x11-server
|
||||||
Recommends: libQt6VirtualKeyboard6
|
Recommends: libQt6VirtualKeyboard6
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -148,34 +149,36 @@ LOGIN_DEFS_PATH="%{_sysconfdir}/login.defs"
|
|||||||
%cmake -DBUILD_WITH_QT6:BOOL=ON \
|
%cmake -DBUILD_WITH_QT6:BOOL=ON \
|
||||||
-DBUILD_MAN_PAGES:BOOL=ON \
|
-DBUILD_MAN_PAGES:BOOL=ON \
|
||||||
-DCMAKE_BUILD_TYPE:STRING="Release" \
|
-DCMAKE_BUILD_TYPE:STRING="Release" \
|
||||||
-DCMAKE_INSTALL_SYSCONFDIR=%{_distconfdir} \
|
|
||||||
-DENABLE_JOURNALD:BOOL=ON \
|
-DENABLE_JOURNALD:BOOL=ON \
|
||||||
-DPID_FILE="/run/sddm.pid" \
|
-DPID_FILE="/run/sddm.pid" \
|
||||||
-DLOGIN_DEFS_PATH:PATH="${LOGIN_DEFS_PATH}" \
|
-DLOGIN_DEFS_PATH:PATH="${LOGIN_DEFS_PATH}" \
|
||||||
-DSESSION_COMMAND:PATH=/etc/X11/xdm/Xsession \
|
-DSESSION_COMMAND:PATH=%{_sysconfdir}/X11/xdm/Xsession \
|
||||||
-DWAYLAND_SESSION_COMMAND:PATH=/etc/sddm/wayland-session
|
-DWAYLAND_SESSION_COMMAND:PATH=%{_sysconfdir}/sddm/wayland-session \
|
||||||
|
-DINSTALL_PAM_CONFIGURATION:BOOL=OFF
|
||||||
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_distconfdir}/sddm.conf.d
|
mkdir -p %{buildroot}%{_sysconfdir}/sddm.conf.d
|
||||||
mkdir -p %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d
|
mkdir -p %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d
|
||||||
mkdir -p %{buildroot}%{_distconfdir}/pam.d
|
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
||||||
%dnl mv %{buildroot}%{_sysconfdir}/pam.d/* %{buildroot}%{_distconfdir}/pam.d
|
# Install PAM Configuration
|
||||||
install -Dpm 644 %{SOURCE1} %{buildroot}%{_distconfdir}/pam.d/sddm
|
pam_dest="%{?_pam_vendordir}%{!?_pam_vendordir:%{_sysconfdir}/pam.d}"
|
||||||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_distconfdir}/pam.d/sddm-autologin
|
install -Dm 0644 %{SOURCE1} %{buildroot}${pam_dest}/sddm
|
||||||
install -Dpm 644 %{SOURCE7} %{buildroot}%{_distconfdir}/pam.d/sddm-greeter
|
install -Dm 0644 %{SOURCE2} %{buildroot}${pam_dest}/sddm-autologin
|
||||||
install -Dpm 644 %{SOURCE3} %{buildroot}%{_distconfdir}/sddm.conf
|
install -Dm 0644 %{SOURCE7} %{buildroot}${pam_dest}/sddm-greeter
|
||||||
|
|
||||||
|
install -Dpm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sddm.conf
|
||||||
install -Dpm 644 %{SOURCE4} %{buildroot}%{_datadir}/sddm/scripts/README.scripts
|
install -Dpm 644 %{SOURCE4} %{buildroot}%{_datadir}/sddm/scripts/README.scripts
|
||||||
%if %{with x11}
|
%if %{with x11}
|
||||||
install -Dpm 644 %{SOURCE5} %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/x11.conf
|
install -Dpm 644 %{SOURCE5} %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/x11.conf
|
||||||
%endif
|
%endif
|
||||||
mkdir -p %{buildroot}/run/sddm
|
mkdir -p %{buildroot}/run/sddm
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/sddm
|
mkdir -p %{buildroot}%{_localstatedir}/lib/sddm
|
||||||
mkdir -p %{buildroot}%{_distconfdir}/sddm/
|
mkdir -p %{buildroot}%{_sysconfdir}/sddm/
|
||||||
cp -a %{buildroot}%{_datadir}/sddm/scripts/* %{buildroot}%{_distconfdir}/sddm/
|
cp -a %{buildroot}%{_datadir}/sddm/scripts/* %{buildroot}%{_sysconfdir}/sddm/
|
||||||
# We're using /etc/X11/xinit/Xsession (by default) instead
|
# We're using /etc/X11/xinit/Xsession (by default) instead
|
||||||
rm -fv %{buildroot}%{_sysconfdir}/sddm/Xsession
|
rm -fv %{buildroot}%{_sysconfdir}/sddm/Xsession
|
||||||
|
|
||||||
@ -211,18 +214,17 @@ ln -sr %{buildroot}%{_bindir}/sddm-greeter-qt6 %{buildroot}%{_bindir}/sddm-greet
|
|||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md CONTRIBUTORS
|
%doc README.md CONTRIBUTORS
|
||||||
%dir %{_distconfdir}/pam.d
|
%dir %{_sysconfdir}/sddm/
|
||||||
%dir %{_distconfdir}/sddm/
|
%dir %{_sysconfdir}/sddm.conf.d
|
||||||
%dir %{_distconfdir}/sddm.conf.d
|
|
||||||
%dir %{_prefix}/lib/sddm
|
%dir %{_prefix}/lib/sddm
|
||||||
%dir %{_prefix}/lib/sddm/sddm.conf.d
|
%dir %{_prefix}/lib/sddm/sddm.conf.d
|
||||||
%dir %{_datadir}/sddm
|
%dir %{_datadir}/sddm
|
||||||
%dir %{_datadir}/sddm/themes
|
%dir %{_datadir}/sddm/themes
|
||||||
%{_distconfdir}/sddm/*
|
%config %{_sysconfdir}/sddm/*
|
||||||
%{_distconfdir}/sddm.conf
|
%config %{_sysconfdir}/sddm.conf
|
||||||
%{_distconfdir}/pam.d/sddm
|
%{_pam_vendordir}/sddm
|
||||||
%{_distconfdir}/pam.d/sddm-autologin
|
%{_pam_vendordir}/sddm-autologin
|
||||||
%{_distconfdir}/pam.d/sddm-greeter
|
%{_pam_vendordir}/sddm-greeter
|
||||||
%{_datadir}/dbus-1/system.d/org.freedesktop.DisplayManager-sddm.conf
|
%{_datadir}/dbus-1/system.d/org.freedesktop.DisplayManager-sddm.conf
|
||||||
%{_bindir}/sddm
|
%{_bindir}/sddm
|
||||||
%{_bindir}/sddm-greeter*
|
%{_bindir}/sddm-greeter*
|
||||||
@ -257,4 +259,3 @@ ln -sr %{buildroot}%{_bindir}/sddm-greeter-qt6 %{buildroot}%{_bindir}/sddm-greet
|
|||||||
%dir %{_datadir}/sddm/translations-qt6
|
%dir %{_datadir}/sddm/translations-qt6
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user