- Manual creation of users and groups for old release

Resolves: RHEL-86305
This commit is contained in:
Than Ngo 2025-04-10 16:45:53 +02:00
parent 8faa8da446
commit f2590baa4e
3 changed files with 16 additions and 7 deletions

View File

@ -3,4 +3,4 @@ product_versions:
- rhel-10 - rhel-10
decision_context: osci_compose_gate decision_context: osci_compose_gate
rules: rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}

View File

@ -1,6 +1,6 @@
Name: libservicelog Name: libservicelog
Version: 1.1.19 Version: 1.1.19
Release: 13%{?dist} Release: 14%{?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+
@ -8,10 +8,15 @@ License: LGPL-2.0-only AND GPL-2.0-or-later
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
@ -38,10 +43,6 @@ 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
@ -57,11 +58,14 @@ 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 install -m0644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/libservicelog.conf
%check %check
make check || true make check || true
%pre
%sysusers_create_compat %{SOURCE1}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -82,6 +86,10 @@ make check || true
%changelog %changelog
* Thu Apr 10 2025 Than Ngo <than@redhat.com> - 1.1.19-14
- Manual creation of users and groups for old release
Resolves: RHEL-86305
* Tue Apr 08 2025 Than Ngo <than@redhat.com> - 1.1.19-13 * 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 - Add sysusers.d config file to allow rpm to create users/groups automatically
Resolves: RHEL-86305 Resolves: RHEL-86305

View File

@ -0,0 +1 @@
g service -