diff --git a/elfutils-0.188.tar.bz2 b/elfutils-0.189.tar.bz2 similarity index 53% rename from elfutils-0.188.tar.bz2 rename to elfutils-0.189.tar.bz2 index 90a4b4e483ac3ac2001f75948649e9bccb4b7e6b..5150d6431bb5cdc83cf8b241214f40e33d5f489a 100644 Binary files a/elfutils-0.188.tar.bz2 and b/elfutils-0.189.tar.bz2 differ diff --git a/elfutils-debuginfod.sysusers b/elfutils-debuginfod.sysusers new file mode 100644 index 0000000000000000000000000000000000000000..18c2561bb331546c413d9ae2f2a6b047f99b9ad6 --- /dev/null +++ b/elfutils-debuginfod.sysusers @@ -0,0 +1 @@ +u debuginfod - "elfutils debuginfo server" /var/cache/debuginfod - diff --git a/elfutils.spec b/elfutils.spec index 038f14eda8d7f54455124d6ec6d1ae7f9c345655..172854e558ae499d1147addab19eda7581e702b7 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -7,12 +7,13 @@ Name: elfutils -Version: 0.188 +Version: 0.189 Release: %{anolis_release}%{?dist} +Summary: A collection of utilities and DSOs to handle ELF files and DWARF data URL: http://elfutils.org/ License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL -Source: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2 -Summary: A collection of utilities and DSOs to handle ELF files and DWARF data +Source0: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2 +Source1: elfutils-debuginfod.sysusers Requires: elfutils-libelf = %{version}-%{release} Requires: elfutils-libs = %{version}-%{release} @@ -225,6 +226,8 @@ install -Dm0644 config/debuginfod.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysc mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite +install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/elfutils-debuginfod.conf + %check # Record some build root versions in build.log uname -r; rpm -q binutils gcc glibc || true @@ -330,11 +333,12 @@ fi %{_unitdir}/debuginfod.service %{_mandir}/man8/debuginfod.8* %{_mandir}/man8/debuginfod.service.8* - +%{_sysusersdir}/elfutils-debuginfod.conf %dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod %ghost %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite %pre debuginfod +%sysusers_create_compat %{SOURCE1} getent group debuginfod >/dev/null || groupadd -r debuginfod getent passwd debuginfod >/dev/null || \ useradd -r -g debuginfod -d /var/cache/debuginfod -s /sbin/nologin \ @@ -348,6 +352,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Mar 23 2023 happy_orange - 0.188-2 +- update to 0.189 + * Sun Nov 13 2022 Funda Wang - 0.188-1 - New version 0.188