From 3eb62aff83e364093b56c2fd943077ca0b060891 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 28 Nov 2019 20:55:26 +0100 Subject: [PATCH] 0.178-4 - Define %%{depsuffix} before use. --- elfutils.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/elfutils.spec b/elfutils.spec index f9d3913..5ef8b60 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,6 +1,6 @@ Name: elfutils Version: 0.178 -%global baserelease 3 +%global baserelease 4 Release: %{baserelease}%{?dist} URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ @@ -8,6 +8,9 @@ License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL Source: %{?source_url}%{name}-%{version}.tar.bz2 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data +# Needed for isa specific Provides and Requires. +%global depsuffix %{?_isa}%{!?_isa:-%{_arch}} + Requires: elfutils-libelf%{depsuffix} = %{version}-%{release} Requires: elfutils-libs%{depsuffix} = %{version}-%{release} %if 0%{?rhel} >= 8 || 0%{?fedora} >= 20 @@ -50,8 +53,6 @@ BuildRequires: curl %global provide_yama_scope 1 %endif -%global depsuffix %{?_isa}%{!?_isa:-%{_arch}} - # Patches Patch1: elfutils-0.178-pt-gnu-prop.patch @@ -423,9 +424,12 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Nov 28 2019 Mark Wielaard - 0.178-4 +- Define %%{depsuffix} before use. + * Thu Nov 28 2019 Mark Wielaard - 0.178-3 - Add elfutils-debuginfod-client Provides and Requires with depsuffix - to get multilib dependencies correct. Add %{version}-%{release} to + to get multilib dependencies correct. Add %%{version}-%%{release} to keep subpackages in sync. * Wed Nov 27 2019 Mark Wielaard - 0.178-2