a70d4fea |
%define debug_package %{nil}
|
6f82adaa |
Summary: Text editor
Name: vim
Version: 8.0.0533 |
beebedf1 |
Release: 4%{?dist} |
6f82adaa |
License: Charityware
URL: http://www.vim.org
Group: Applications/Editors
Vendor: VMware, Inc. |
6446b891 |
Distribution: Photon |
6f82adaa |
Source0: %{name}-%{version}.tar.gz
%define sha1 vim=6169cece15cb139db3ceff9c9ba2bf74013b1e02 |
6446b891 |
BuildRequires: ncurses-devel |
beebedf1 |
Patch0: CVE-2017-17087.patch |
b76471af |
|
f4d17450 |
%description
The Vim package contains a powerful text editor. |
b76471af |
|
6446b891 |
%package extra
Summary: Extra files for Vim text editor
Group: Applications/Editors
Requires: tcsh |
b76471af |
%description extra
The vim extra package contains a extra files for powerful text editor.
|
f4d17450 |
%prep |
6f82adaa |
%setup -q |
beebedf1 |
%patch0 -p1
|
f4d17450 |
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
%build
./configure \ |
6446b891 |
--prefix=%{_prefix} \
--enable-multibyte |
f4d17450 |
make VERBOSE=1 %{?_smp_mflags}
%install |
6f82adaa |
#cd %{_builddir}/%{name}74 |
f4d17450 |
make DESTDIR=%{buildroot} install
ln -sv vim %{buildroot}%{_bindir}/vi
install -vdm 755 %{buildroot}/etc
cat > %{buildroot}/etc/vimrc << "EOF"
" Begin /etc/vimrc
set nocompatible
set backspace=2
set ruler
syntax on |
55af304e |
set tags=./tags;/ |
a70d4fea |
color desert |
f4d17450 |
if (&term == "iterm") || (&term == "putty")
set background=dark
endif |
55af304e |
" Binds
nmap <F2> :w<CR>
imap <F2> <Esc>:w<CR>
nmap <F10> :q!<CR>
nmap <Esc><Esc> :q<CR>
" Use 4 space characters instead of tab for python files
au BufEnter,BufNew *.py set tabstop=4 shiftwidth=4 expandtab |
beebedf1 |
" Move the swap file location to protect against CVE-2017-1000382
" More information at http://security.cucumberlinux.com/security/details.php?id=120
if ! isdirectory("~/.vim/swap/")
call system('install -d -m 700 ~/.vim/swap')
endif
set directory=~/.vim/swap// |
f4d17450 |
" End /etc/vimrc
EOF |
b76471af |
|
35224633 |
%check |
dc67913c |
sed -i '/source test_recover.vim/d' src/testdir/test_alot.vim |
28926996 |
make test |
35224633 |
|
b76471af |
%files extra |
f4d17450 |
%defattr(-,root,root) |
b76471af |
%{_bindir}/vimtutor
%{_bindir}/xxd |
f4d17450 |
%{_mandir}/*/* |
6f82adaa |
%doc %{_datarootdir}/vim/vim80/doc/*
%{_datarootdir}/vim/vim80/autoload/*
%{_datarootdir}/vim/vim80/bugreport.vim
%{_datarootdir}/vim/vim80/colors/*
%exclude %{_datarootdir}/vim/vim80/colors/desert.vim
%{_datarootdir}/applications/gvim.desktop
%{_datarootdir}/applications/vim.desktop
%{_datarootdir}/icons/hicolor/48x48/apps/gvim.png
%{_datarootdir}/icons/locolor/16x16/apps/gvim.png
%{_datarootdir}/icons/locolor/32x32/apps/gvim.png
%{_datarootdir}/vim/vim80/defaults.vim
%{_datarootdir}/vim/vim80/pack/dist/opt/*
%{_datarootdir}/vim/vim80/compiler/*
%{_datarootdir}/vim/vim80/delmenu.vim
%{_datarootdir}/vim/vim80/evim.vim
%{_datarootdir}/vim/vim80/filetype.vim
%{_datarootdir}/vim/vim80/ftoff.vim
%{_datarootdir}/vim/vim80/ftplugin.vim
%{_datarootdir}/vim/vim80/ftplugin/*
%{_datarootdir}/vim/vim80/ftplugof.vim
%{_datarootdir}/vim/vim80/gvimrc_example.vim
%{_datarootdir}/vim/vim80/indent.vim
%{_datarootdir}/vim/vim80/indent/*
%{_datarootdir}/vim/vim80/indoff.vim
%{_datarootdir}/vim/vim80/keymap/*
%{_datarootdir}/vim/vim80/macros/*
%{_datarootdir}/vim/vim80/menu.vim
%{_datarootdir}/vim/vim80/mswin.vim
%{_datarootdir}/vim/vim80/optwin.vim
%{_datarootdir}/vim/vim80/plugin/*
%{_datarootdir}/vim/vim80/synmenu.vim
%{_datarootdir}/vim/vim80/vimrc_example.vim
%{_datarootdir}/vim/vim80/print/*
%{_datarootdir}/vim/vim80/scripts.vim
%{_datarootdir}/vim/vim80/spell/*
%{_datarootdir}/vim/vim80/syntax/*
%exclude %{_datarootdir}/vim/vim80/syntax/syntax.vim
%{_datarootdir}/vim/vim80/tools/*
%{_datarootdir}/vim/vim80/tutor/*
%{_datarootdir}/vim/vim80/lang/*.vim
%doc %{_datarootdir}/vim/vim80/lang/*.txt
%lang(af) %{_datarootdir}/vim/vim80/lang/af/LC_MESSAGES/vim.mo
%lang(ca) %{_datarootdir}/vim/vim80/lang/ca/LC_MESSAGES/vim.mo
%lang(cs) %{_datarootdir}/vim/vim80/lang/cs/LC_MESSAGES/vim.mo
%lang(de) %{_datarootdir}/vim/vim80/lang/de/LC_MESSAGES/vim.mo
%lang(eb_GB) %{_datarootdir}/vim/vim80/lang/en_GB/LC_MESSAGES/vim.mo
%lang(eo) %{_datarootdir}/vim/vim80/lang/eo/LC_MESSAGES/vim.mo
%lang(es) %{_datarootdir}/vim/vim80/lang/es/LC_MESSAGES/vim.mo
%lang(fi) %{_datarootdir}/vim/vim80/lang/fi/LC_MESSAGES/vim.mo
%lang(fr) %{_datarootdir}/vim/vim80/lang/fr/LC_MESSAGES/vim.mo
%lang(ga) %{_datarootdir}/vim/vim80/lang/ga/LC_MESSAGES/vim.mo
%lang(it) %{_datarootdir}/vim/vim80/lang/it/LC_MESSAGES/vim.mo
%lang(ja) %{_datarootdir}/vim/vim80/lang/ja/LC_MESSAGES/vim.mo
%lang(ko.UTF-8) %{_datarootdir}/vim/vim80/lang/ko.UTF-8/LC_MESSAGES/vim.mo
%lang(ko) %{_datarootdir}/vim/vim80/lang/ko/LC_MESSAGES/vim.mo
%lang(nb) %{_datarootdir}/vim/vim80/lang/nb/LC_MESSAGES/vim.mo
%lang(no) %{_datarootdir}/vim/vim80/lang/no/LC_MESSAGES/vim.mo
%lang(pl) %{_datarootdir}/vim/vim80/lang/pl/LC_MESSAGES/vim.mo
%lang(pt_BR) %{_datarootdir}/vim/vim80/lang/pt_BR/LC_MESSAGES/vim.mo
%lang(ru) %{_datarootdir}/vim/vim80/lang/ru/LC_MESSAGES/vim.mo
%lang(sk) %{_datarootdir}/vim/vim80/lang/sk/LC_MESSAGES/vim.mo
%lang(sv) %{_datarootdir}/vim/vim80/lang/sv/LC_MESSAGES/vim.mo
%lang(uk) %{_datarootdir}/vim/vim80/lang/uk/LC_MESSAGES/vim.mo
%lang(vi) %{_datarootdir}/vim/vim80/lang/vi/LC_MESSAGES/vim.mo
%lang(zh_CN.UTF-8) %{_datarootdir}/vim/vim80/lang/zh_CN.UTF-8/LC_MESSAGES/vim.mo
%lang(zh_CN) %{_datarootdir}/vim/vim80/lang/zh_CN/LC_MESSAGES/vim.mo
%lang(zh_TW.UTF-8) %{_datarootdir}/vim/vim80/lang/zh_TW.UTF-8/LC_MESSAGES/vim.mo
%lang(zh_TW) %{_datarootdir}/vim/vim80/lang/zh_TW/LC_MESSAGES/vim.mo
%lang(cs.cp1250) %{_datarootdir}/vim/vim80/lang/cs.cp1250/LC_MESSAGES/vim.mo
%lang(ja.euc-jp) %{_datarootdir}/vim/vim80/lang/ja.euc-jp/LC_MESSAGES/vim.mo
%lang(ja.sjis) %{_datarootdir}/vim/vim80/lang/ja.sjis/LC_MESSAGES/vim.mo
%lang(nl) %{_datarootdir}/vim/vim80/lang/nl/LC_MESSAGES/vim.mo
%lang(pl.UTF-8) %{_datarootdir}/vim/vim80/lang/pl.UTF-8/LC_MESSAGES/vim.mo
%lang(pl.cp1250) %{_datarootdir}/vim/vim80/lang/pl.cp1250/LC_MESSAGES/vim.mo
%lang(ru.cp1251) %{_datarootdir}/vim/vim80/lang/ru.cp1251/LC_MESSAGES/vim.mo
%lang(sk.cp1250) %{_datarootdir}/vim/vim80/lang/sk.cp1250/LC_MESSAGES/vim.mo
%lang(uk.cp1251) %{_datarootdir}/vim/vim80/lang/uk.cp1251/LC_MESSAGES/vim.mo
%lang(zh_CN.cp936) %{_datarootdir}/vim/vim80/lang/zh_CN.cp936/LC_MESSAGES/vim.mo |
b76471af |
%files
%defattr(-,root,root) |
2c824fbf |
%config(noreplace) /etc/vimrc |
6f82adaa |
%{_datarootdir}/vim/vim80/colors/desert.vim
%{_datarootdir}/vim/vim80/syntax/syntax.vim
%{_datarootdir}/vim/vim80/rgb.txt
|
b76471af |
%{_bindir}/ex
%{_bindir}/vi
%{_bindir}/view
%{_bindir}/rvim
%{_bindir}/rview
%{_bindir}/vim
%{_bindir}/vimdiff
|
f4d17450 |
%changelog |
beebedf1 |
* Tue Jul 10 2018 Tapas Kundu <tkundu@vmware.com> 8.0.0533-4
- Fix for CVE-2017-17087 and CVE-2017-1000382. |
dc67913c |
* Mon Aug 14 2017 Chang Lee <changlee@vmware.com> 8.0.0533-3
- Disabled Test_recover_root_dir in %check |
40184939 |
* Tue May 02 2017 Anish Swaminathan <anishs@vmware.com> 8.0.0533-2
- Remove tcsh requires |
6f82adaa |
* Fri Apr 14 2017 Xiaolin Li <xiaolinl@vmware.com> 8.0.0533-1
- Updated to version 8.0.0533. |
302708b2 |
* Tue Feb 28 2017 Anish Swaminathan <anishs@vmware.com> 7.4-10
- Fix for CVE-2017-6349 and CVE-2017-6350 |
6e29c9d9 |
* Fri Feb 17 2017 Anish Swaminathan <anishs@vmware.com> 7.4-9
- Fix for CVE-2017-5953 |
6446b891 |
* Fri Nov 18 2016 Anish Swaminathan <anishs@vmware.com> 7.4-8
- Fix for CVE-2016-1248
* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 7.4-7
- Modified %check |
55af304e |
* Wed Aug 24 2016 Alexey Makhalov <amakhalov@vmware.com> 7.4-6
- vimrc: Added tags search, tab->spaces and some bindings
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.4-5
- GA - Bump release of all rpms |
2c824fbf |
* Thu Jul 16 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
- Added profile related files in minimal vim package. |
b76471af |
* Tue Jun 30 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
- Pack extra files separately, to make vim package small. |
55af304e |
* Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
- Disable debug package. Use 'desert' colorscheme.
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
- Initial build. First version |