fix rpath error
This commit is contained in:
parent
cdcbabb64f
commit
57a50d1a85
@ -1,6 +1,6 @@
|
|||||||
Name: strongswan
|
Name: strongswan
|
||||||
Version: 5.7.2
|
Version: 5.7.2
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: An OpenSource IPsec-based VPN and TNC solution
|
Summary: An OpenSource IPsec-based VPN and TNC solution
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.strongswan.org/
|
URL: http://www.strongswan.org/
|
||||||
@ -11,7 +11,7 @@ Patch1: fix-use-of-uninitialized-value.patch
|
|||||||
|
|
||||||
BuildRequires: gcc systemd-devel gmp-devel libcurl-devel NetworkManager-libnm-devel openldap-devel
|
BuildRequires: gcc systemd-devel gmp-devel libcurl-devel NetworkManager-libnm-devel openldap-devel
|
||||||
BuildRequires: openssl-devel sqlite-devel gettext-devel trousers-devel libxml2-devel pam-devel
|
BuildRequires: openssl-devel sqlite-devel gettext-devel trousers-devel libxml2-devel pam-devel
|
||||||
BuildRequires: json-c-devel libgcrypt-devel systemd-devel iptables-devel
|
BuildRequires: json-c-devel libgcrypt-devel systemd-devel iptables-devel chrpath
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
@ -107,13 +107,24 @@ install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/{aacerts acerts
|
|||||||
|
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
|
cd $RPM_BUILD_ROOT/usr
|
||||||
|
file `find -type f` | grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
|
||||||
|
do
|
||||||
|
chrpath -d $i
|
||||||
|
done
|
||||||
|
cd -
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/strongswan" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun strongswan.service
|
%systemd_preun strongswan.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
%systemd_post strongswan.service
|
%systemd_post strongswan.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
%systemd_postun_with_restart strongswan.service
|
%systemd_postun_with_restart strongswan.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -147,6 +158,7 @@ install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/{aacerts acerts
|
|||||||
%{_mandir}/man?/*.gz
|
%{_mandir}/man?/*.gz
|
||||||
%{_datadir}/strongswan/templates/config/
|
%{_datadir}/strongswan/templates/config/
|
||||||
%{_datadir}/strongswan/templates/database/
|
%{_datadir}/strongswan/templates/database/
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files sqlite
|
%files sqlite
|
||||||
%{_libdir}/strongswan/plugins/libstrongswan-sqlite.so
|
%{_libdir}/strongswan/plugins/libstrongswan-sqlite.so
|
||||||
@ -174,6 +186,9 @@ install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/{aacerts acerts
|
|||||||
%{_libexecdir}/strongswan/charon-nm
|
%{_libexecdir}/strongswan/charon-nm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 09 2021 caodongxia <caodongxia@huawei.com> - 5.7.2-9
|
||||||
|
- fix rpath error
|
||||||
|
|
||||||
* Wed Sep 1 2021 caodongxia <caodongxia@huawei.com> - 5.7.2-8
|
* Wed Sep 1 2021 caodongxia <caodongxia@huawei.com> - 5.7.2-8
|
||||||
- fix fuzz: use of uninitialized value
|
- fix fuzz: use of uninitialized value
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user