!9 remove runpath of ebtables
From: @eaglegai Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
d5db5a7aa8
@ -1,7 +1,7 @@
|
||||
|
||||
Name: ebtables
|
||||
Version: 2.0.11
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A filtering tool for a Linux-based bridging firewall
|
||||
License: GPLv2+
|
||||
URL: http://ebtables.sourceforge.net/
|
||||
@ -12,6 +12,7 @@ Source4: ebtables-config
|
||||
|
||||
|
||||
BuildRequires: systemd libtool
|
||||
BuildRequires: chrpath
|
||||
Requires: systemd %{_sbindir}/update-alternatives
|
||||
Conflicts: setup < 2.10.4-1
|
||||
|
||||
@ -46,6 +47,14 @@ touch %{buildroot}%{_sysconfdir}/sysconfig/{ebtables.nat,ebtables.filter,ebtable
|
||||
|
||||
mv %{buildroot}/%{_lib}/ebtables/libebtc.so %{buildroot}/%{_lib}/
|
||||
|
||||
# remove rpath or runpath
|
||||
chrpath -d %{buildroot}%{_sbindir}/ebtablesd
|
||||
chrpath -d %{buildroot}%{_sbindir}/ebtables-legacy
|
||||
chrpath -d %{buildroot}%{_sbindir}/ebtables-legacy-restore
|
||||
|
||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||
echo "%{_libdir}/ebtables" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
%post
|
||||
%systemd_post ebtables.service
|
||||
%?ldconfig
|
||||
@ -82,6 +91,7 @@ fi
|
||||
%exclude %{_initrddir}
|
||||
%exclude %{_sysconfdir}/ethertypes
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
%ghost %{_sbindir}/ebtables
|
||||
%ghost %{_sbindir}/ebtables-restore
|
||||
%ghost %{_sbindir}/ebtables-save
|
||||
@ -92,6 +102,12 @@ fi
|
||||
%doc %{_mandir}/man8/ebtables-legacy.8*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.0.11-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove runpath of ebtables
|
||||
|
||||
* Mon Jul 27 2020 openEuler Buildteam <buildteam@huawei.com> - 2.0.11-1
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user