From 1e2c7f90e081c674d67b7980075d031c301a66b0 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Mon, 6 Mar 2023 13:55:36 +0300 Subject: [PATCH] Update to 0.189 Change-Id: I3ddaf2d3c995d49efda2e7de0b3f7f1c6d08b616 --- packaging/elfutils.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packaging/elfutils.spec b/packaging/elfutils.spec index 41a5505..34e4315 100755 --- a/packaging/elfutils.spec +++ b/packaging/elfutils.spec @@ -1,6 +1,6 @@ %define keepstatic 1 Name: elfutils -Version: 0.188 +Version: 0.189 Release: 0 License: GPL-3.0+ Summary: Higher-level library to access ELF @@ -17,6 +17,7 @@ BuildRequires: flex BuildRequires: xz-devel BuildRequires: zlib-devel BuildRequires: libdw +BuildRequires: gettext-tools %description This package provides a higher-level library to access ELF files. This @@ -97,7 +98,11 @@ cp %{SOURCE1001} . #find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + CFLAGS+=" -fPIE" LDFLAGS+=" -pie" -%reconfigure CFLAGS="$CFLAGS -Wno-missing-attributes -Wno-implicit-fallthrough -Wno-format-truncation -Wno-absolute-value -Wno-nonnull-compare -Wno-misleading-indentation" --program-prefix=eu- --enable-maintainer-mode --disable-debuginfod +%reconfigure \ + --program-prefix=eu- \ + --enable-maintainer-mode \ + --disable-debuginfod \ + --disable-libdebuginfod make %{?_smp_mflags} %install @@ -107,6 +112,8 @@ rm -f %{buildroot}%{_libdir}/pkgconfig/libdebuginfod.pc rm -rf %{buildroot}/usr/share/man ls -lR %{buildroot}%{_libdir}/libelf* +%find_lang %{name} + %post -n libelf -p /sbin/ldconfig %post -n libdw -p /sbin/ldconfig @@ -120,6 +127,8 @@ ls -lR %{buildroot}%{_libdir}/libelf* %defattr(-,root,root) %{_bindir}/* +%lang_package + %files -n libasm %manifest %{name}.manifest %defattr(-,root,root) -- 2.7.4