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