From 074d1301531b005c7463b797df6c6bbb2ac91979 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 6 Oct 2023 16:50:25 +0000 Subject: [PATCH] elfutils: Correctly configure debuginfod Signed-off-by: Michael Tremer --- elfutils/elfutils.nm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/elfutils/elfutils.nm b/elfutils/elfutils.nm index 4fdb6d955..61220a3d0 100644 --- a/elfutils/elfutils.nm +++ b/elfutils/elfutils.nm @@ -5,7 +5,7 @@ name = elfutils version = 0.189 -release = 1 +release = 2 groups = Development/Libraries url = https://sourceware.org/elfutils/ @@ -24,6 +24,8 @@ source_dl = https://sourceware.org/elfutils/ftp/%{version}/ sources = %{thisapp}.tar.bz2 build + DEBUGINFOD_URLS = "https://pakfire.ipfire.org/" + requires bzip2-devel curl-devel @@ -39,6 +41,11 @@ build test make check end + + install_cmds + # Export DEBUGINFOD_URLS + echo "%{DEBUGINFOD_URLS}" > %{BUILDROOT}%{sysconfdir}/debuginfod/%{DISTRO_SNAME}.urls + end end packages @@ -56,8 +63,11 @@ packages package %{name}-libs template LIBS - files += %{libdir}/lib*%{version}.so - files += %{libdir}/elfutils + files + %{sysconfdir}/debuginfod + %{sysconfdir}/profile.d/debuginfod* + %{libdir}/lib*%{version}.so + end end package %{name}-debuginfo -- 2.47.2