Add sysusers.d config file to allow rpm to create users/groups automatically
Resolves: RHEL-86305
This commit is contained in:
parent
fda3838871
commit
8faa8da446
@ -1,6 +1,6 @@
|
||||
Name: libservicelog
|
||||
Version: 1.1.19
|
||||
Release: 12%{?dist}
|
||||
Release: 13%{?dist}
|
||||
Summary: Servicelog Database and Library
|
||||
|
||||
#v29_notify_gram.c v29_notify_gram.h are GPLv2+
|
||||
@ -14,7 +14,6 @@ Patch0: libservicelog-1.1.9-libs.patch
|
||||
|
||||
BuildRequires: sqlite-devel autoconf libtool bison librtas-devel flex
|
||||
BuildRequires: make
|
||||
Requires(pre): shadow-utils
|
||||
|
||||
# because of librtas-devel
|
||||
ExclusiveArch: ppc %{power64}
|
||||
@ -39,6 +38,11 @@ Contains header files for building with libservicelog.
|
||||
%setup -q
|
||||
%patch 0 -p1 -b .libs
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >libservicelog.sysusers.conf <<EOF
|
||||
g service -
|
||||
EOF
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --disable-static
|
||||
@ -53,12 +57,11 @@ make CFLAGS="$CFLAGS" %{?_smp_mflags}
|
||||
make install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
install -m0644 -D libservicelog.sysusers.conf %{buildroot}%{_sysusersdir}/libservicelog.conf
|
||||
|
||||
%check
|
||||
make check || true
|
||||
|
||||
%pre
|
||||
getent group service >/dev/null || /usr/sbin/groupadd -r service
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
@ -70,6 +73,7 @@ getent group service >/dev/null || /usr/sbin/groupadd -r service
|
||||
%{_libdir}/libservicelog-*.so.*
|
||||
%dir %attr(755, root, service) /var/lib/servicelog
|
||||
%config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
|
||||
%{_sysusersdir}/libservicelog.conf
|
||||
|
||||
%files devel
|
||||
%{_includedir}/servicelog-1
|
||||
@ -78,6 +82,10 @@ getent group service >/dev/null || /usr/sbin/groupadd -r service
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Apr 08 2025 Than Ngo <than@redhat.com> - 1.1.19-13
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
Resolves: RHEL-86305
|
||||
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.1.19-12
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
Loading…
Reference in New Issue
Block a user