Accepting request 1073563 from home:gmbr3:Active

- Generate %pre from sysusers.d file using sysuser-tools

OBS-URL: https://build.opensuse.org/request/show/1073563
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-initial-setup?expand=0&rev=125
This commit is contained in:
Bjørn Lie 2023-03-24 16:52:32 +00:00 committed by Git OBS Bridge
parent 9a03f78ad2
commit 7192870764
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 21 14:03:18 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
- Generate %pre from sysusers.d file using sysuser-tools
-------------------------------------------------------------------
Fri Mar 17 13:10:52 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -29,6 +29,7 @@ BuildRequires: krb5-devel
BuildRequires: meson >= 0.53.0
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: sysuser-tools
BuildRequires: (pkgconfig(webkit2gtk-5.0) or pkgconfig(webkitgtk-6.0))
BuildRequires: pkgconfig(accountsservice)
BuildRequires: pkgconfig(fontconfig)
@ -60,6 +61,7 @@ BuildRequires: pkgconfig(systemd) >= 242
%if !0%{?sle_version}
Requires: gnome-getting-started-docs
%endif
%sysusers_requires
%description
Initial assistant, helping you to get the system up and running.
@ -70,6 +72,7 @@ Initial assistant, helping you to get the system up and running.
%autosetup -p1
%build
%sysusers_generate_pre data/%{name}.conf %{name} %{name}.conf
%meson \
-D parental_controls=disabled \
%if 0%{?sle_version} && 0%{?sle_version} < 160000
@ -87,8 +90,7 @@ Initial assistant, helping you to get the system up and running.
mv %{buildroot}%{_sysconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop %{buildroot}%{_distconfdir}/xdg/autostart/gnome-initial-setup-copy-worker.desktop
mv %{buildroot}%{_sysconfdir}/xdg/autostart/gnome-initial-setup-first-login.desktop %{buildroot}%{_distconfdir}/xdg/autostart/gnome-initial-setup-first-login.desktop
%pre
useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} || :
%pre -f %{name}.pre
%files
%license COPYING