!462 remove rpath and runpath of exec files and libraries
From: @wangjiang37 Reviewed-by: @lvying6 Signed-off-by: @lvying6
This commit is contained in:
commit
cd8e3e96d2
18
vim.spec
18
vim.spec
@ -12,7 +12,7 @@
|
||||
Name: vim
|
||||
Epoch: 2
|
||||
Version: 9.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Vim is a highly configurable text editor for efficiently creating and changing any kind of text.
|
||||
License: Vim and MIT
|
||||
URL: http://www.vim.org
|
||||
@ -86,7 +86,7 @@ Patch9000: bugfix-rm-modify-info-version.patch
|
||||
|
||||
BuildRequires: autoconf python3-devel ncurses-devel gettext perl-devel perl-generators gcc
|
||||
BuildRequires: perl(ExtUtils::Embed) perl(ExtUtils::ParseXS) libacl-devel gpm-devel file
|
||||
BuildRequires: desktop-file-utils >= 0.2.93 libtool make
|
||||
BuildRequires: desktop-file-utils >= 0.2.93 libtool make chrpath
|
||||
%if %{_with_selinux__}
|
||||
BuildRequires: libselinux-devel
|
||||
%endif
|
||||
@ -367,6 +367,12 @@ echo ".so man1/vimtutor.1" > %{buildroot}%{_mandir}/man1/gvimtutor.1
|
||||
echo ".so man1/vi.1" > %{buildroot}%{_mandir}/man5/virc.5
|
||||
touch %{buildroot}%{_datadir}/%{name}/vimfiles/doc/tags
|
||||
|
||||
chrpath -d %{buildroot}%{_bindir}/vim
|
||||
chrpath -d %{buildroot}%{_bindir}/xxd
|
||||
|
||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||
echo "%{_libdir}/perl5/CORE" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
pushd runtime
|
||||
ln -sf ../../%{name}/%{vimdir}/doc docs
|
||||
popd
|
||||
@ -453,6 +459,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
||||
%{_mandir}/man1/{gex.*,gview.*,gvim*,rvim.*,vim.*,vimdiff.*}
|
||||
%{_mandir}/man1/{vimtutor.*,vimx.*,xxd.*}
|
||||
%{_mandir}/man5/vimrc.*
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files minimal
|
||||
%config(noreplace) %{_sysconfdir}/virc
|
||||
@ -463,6 +470,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
||||
|
||||
%files enhanced
|
||||
%{_bindir}/{vim,rvim,vimdiff,vimtutor}
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
|
||||
%files filesystem
|
||||
%dir %{_datadir}/%{name}/vimfiles/after/*
|
||||
@ -480,6 +488,12 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
||||
%{_mandir}/man1/evim.*
|
||||
|
||||
%changelog
|
||||
* Mon Dec 12 2022 wangjiang <wangjiang37@h-partners.com> - 2:9.0-5
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove rpath and runpath of exec files and libraries
|
||||
|
||||
* Thu Dec 08 2022 wangjiang <wangjiang37@h-partners.com> - 2:9.0-4
|
||||
- Type:CVE
|
||||
- ID:CVE-2022-4292 CVE-2022-4293
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user