- Add sysusers.d config file to allow rpm to create users/groups automatically
Resolves: RHEL-86310
This commit is contained in:
parent
d8aefeb2cb
commit
b6d60225a5
@ -1,19 +1,23 @@
|
|||||||
Name: libservicelog
|
Name: libservicelog
|
||||||
Version: 1.1.19
|
Version: 1.1.19
|
||||||
Release: 4%{?dist}
|
Release: 5%{?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+
|
||||||
License: LGPLv2 and GPLv2+
|
License: LGPLv2 and GPLv2+
|
||||||
URL: https://github.com/power-ras/%{name}/releases
|
URL: https://github.com/power-ras/%{name}/releases
|
||||||
Source: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
# sysusers.d config file
|
||||||
|
Source1: libservicelog.sysusers.conf
|
||||||
|
|
||||||
# Link with needed libraries
|
# Link with needed libraries
|
||||||
Patch0: libservicelog-1.1.9-libs.patch
|
Patch0: libservicelog-1.1.9-libs.patch
|
||||||
|
|
||||||
|
# sysusers_create_compat macro
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%{?sysusers_requires_compat}
|
||||||
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}
|
||||||
@ -52,11 +56,13 @@ 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 %{SOURCE1} %{buildroot}%{_sysusersdir}/libservicelog.conf
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check || true
|
make check || true
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group service >/dev/null || /usr/sbin/groupadd -r service
|
%sysusers_create_compat %{SOURCE1}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -69,6 +75,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
|
||||||
@ -77,6 +84,10 @@ getent group service >/dev/null || /usr/sbin/groupadd -r service
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 13 2025 Than Ngo <than@redhat.com> - 1.1.19-5
|
||||||
|
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||||
|
Resolves: RHEL-86310
|
||||||
|
|
||||||
* Thu Feb 10 2022 Than Ngo <than@redhat.com> - 1.1.19-4
|
* Thu Feb 10 2022 Than Ngo <than@redhat.com> - 1.1.19-4
|
||||||
- Resolves: #2051467, add libservicelog-devel to compose
|
- Resolves: #2051467, add libservicelog-devel to compose
|
||||||
|
|
||||||
|
1
libservicelog.sysusers.conf
Normal file
1
libservicelog.sysusers.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
g service -
|
Loading…
Reference in New Issue
Block a user