summaryrefslogtreecommitdiffstats
path: root/build-root/rpm
diff options
context:
space:
mode:
Diffstat (limited to 'build-root/rpm')
-rw-r--r--build-root/rpm/vpp.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 4a3513481b7..ed382349319 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -26,7 +26,7 @@ License: MIT
Version: %{_version}
Release: %{_release}
Requires: vpp-lib = %{_version}-%{_release}, net-tools, pciutils, python
-BuildRequires: systemd
+BuildRequires: systemd, chrpath
Source: %{name}-%{_version}-%{_release}.tar.gz
@@ -189,6 +189,11 @@ do
install -p -m 644 $file %{buildroot}/usr/share/vpp/api
done
+#
+# remove RPATH from ELF binaries
+#
+%{_mu_build_dir}/scripts/remove-rpath %{buildroot}
+
%post
sysctl --system
%systemd_post vpp.service