!9 remove runpath of ebtables

From: @eaglegai
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2021-09-07 11:21:28 +00:00 committed by Gitee
commit d5db5a7aa8

View File

@ -1,7 +1,7 @@
Name: ebtables Name: ebtables
Version: 2.0.11 Version: 2.0.11
Release: 1 Release: 2
Summary: A filtering tool for a Linux-based bridging firewall Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+ License: GPLv2+
URL: http://ebtables.sourceforge.net/ URL: http://ebtables.sourceforge.net/
@ -12,6 +12,7 @@ Source4: ebtables-config
BuildRequires: systemd libtool BuildRequires: systemd libtool
BuildRequires: chrpath
Requires: systemd %{_sbindir}/update-alternatives Requires: systemd %{_sbindir}/update-alternatives
Conflicts: setup < 2.10.4-1 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}/ 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 %post
%systemd_post ebtables.service %systemd_post ebtables.service
%?ldconfig %?ldconfig
@ -82,6 +91,7 @@ fi
%exclude %{_initrddir} %exclude %{_initrddir}
%exclude %{_sysconfdir}/ethertypes %exclude %{_sysconfdir}/ethertypes
%config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config %config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config
%config(noreplace) /etc/ld.so.conf.d/*
%ghost %{_sbindir}/ebtables %ghost %{_sbindir}/ebtables
%ghost %{_sbindir}/ebtables-restore %ghost %{_sbindir}/ebtables-restore
%ghost %{_sbindir}/ebtables-save %ghost %{_sbindir}/ebtables-save
@ -92,6 +102,12 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8* %doc %{_mandir}/man8/ebtables-legacy.8*
%changelog %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 * Mon Jul 27 2020 openEuler Buildteam <buildteam@huawei.com> - 2.0.11-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA