]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - elfutils/elfutils.nm
elfutils: Correctly configure debuginfod
[ipfire-3.x.git] / elfutils / elfutils.nm
index a56e6bc00dd54926b98e3678e5bedb267d086174..61220a3d0c16a8ca38c6473dd13a838ce20d2e10 100644 (file)
@@ -4,12 +4,11 @@
 ###############################################################################
 
 name       = elfutils
-version    = 0.152
-release    = 3
+version    = 0.189
+release    = 2
 
-maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Development/Libraries
-url        = https://fedorahosted.org/elfutils/
+url        = https://sourceware.org/elfutils/
 license    = GPLv2 with exceptions
 summary    = A collection of utilities and DSOs to handle compiled objects.
 
@@ -21,37 +20,31 @@ description
        (to check for well-formed ELF files).
 end
 
-source_dl  =
+source_dl  = https://sourceware.org/elfutils/ftp/%{version}/
 sources    = %{thisapp}.tar.bz2
 
 build
+       DEBUGINFOD_URLS = "https://pakfire.ipfire.org/"
+
        requires
                bzip2-devel
+               curl-devel
                m4
                xz-devel
                zlib-devel
+               zstd-devel
        end
 
-       CFLAGS += -Wno-error
-
        configure_options += \
-               --program-prefix=eu-
+               --disable-debuginfod
 
-       prepare_cmds
-               # Fix a compiler warning.
-               sed -i.scanf-m -e 's/%m/%a/g' \
-                       src/addr2line.c tests/line2addr.c
+       test
+               make check
        end
 
-       # fails
-       #test
-       #       make check
-       #end
-end
-
-quality-agent
-       whitelist_rpath
-               /usr/lib/elfutils
+       install_cmds
+               # Export DEBUGINFOD_URLS
+               echo "%{DEBUGINFOD_URLS}" > %{BUILDROOT}%{sysconfdir}/debuginfod/%{DISTRO_SNAME}.urls
        end
 end
 
@@ -61,14 +54,20 @@ packages
        package %{name}-devel
                template DEVEL
 
-               requires = %{name}=%{thisver} %{name}-libs=%{thisver}
+               requires
+                       %{name} = %{thisver}
+                       %{name}-libs = %{thisver}
+               end
        end
 
        package %{name}-libs
                template LIBS
 
-               files += /usr/lib*/lib*%{version}.so
-               files += /usr/lib/elfutils
+               files
+                       %{sysconfdir}/debuginfod
+                       %{sysconfdir}/profile.d/debuginfod*
+                       %{libdir}/lib*%{version}.so
+               end
        end
 
        package %{name}-debuginfo