From 789eea031ed11cf4c3c46719c7f78dbd897f252b Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Aug 12 2021 20:06:56 +0000 Subject: Drop build-time RPATH from installed binary Resolves: rhbz#1987608 Signed-off-by: Lon Hohberger --- diff --git a/jq.spec b/jq.spec index bb8b168..c4d6097 100644 --- a/jq.spec +++ b/jq.spec @@ -1,6 +1,6 @@ Name: jq Version: 1.6 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Command-line JSON processor License: MIT and ASL 2.0 and CC-BY and GPLv3 @@ -10,6 +10,7 @@ Source0: https://github.com/stedolan/jq/releases/download/%{name}-%{versi BuildRequires: gcc BuildRequires: flex BuildRequires: bison +BuildRequires: chrpath BuildRequires: oniguruma-devel %ifarch %{valgrind_arches} @@ -66,6 +67,10 @@ make %{?_smp_mflags} make DESTDIR=%{buildroot} install find %{buildroot} -name '*.la' -exec rm -f {} ';' +# Delete build-time RPATH that is unnecessary on an installed +# system - rhbz#1987608 +chrpath -d %{buildroot}%{_bindir}/%{name} + %check # Valgrind used, so restrict architectures for check %ifarch %{ix86} x86_64 @@ -90,6 +95,9 @@ make check %changelog +* Thu Aug 12 2021 Lon Hohberger - 1.6-9 +- Drop build-time RPATH from jq binary (rhbz#1987608) + * Thu Jul 22 2021 Fedora Release Engineering - 1.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild