a70d4fea |
%define debug_package %{nil}
|
f4d17450 |
Summary: Text editor
Name: vim
Version: 7.4 |
2c824fbf |
Release: 4%{?dist} |
f4d17450 |
License: Charityware
URL: http://www.vim.org
Group: Applications/Editors
Vendor: VMware, Inc.
Distribution: Photon
Source0: %{name}-%{version}.tar.bz2 |
3cc43c92 |
%define sha1 vim=601abf7cc2b5ab186f40d8790e542f86afca86b7 |
f4d17450 |
BuildRequires: ncurses-devel
Requires: tcsh |
b76471af |
|
f4d17450 |
%description
The Vim package contains a powerful text editor. |
b76471af |
%package extra
Summary: Extra files for Vim text editor
Group: Applications/Editors
%description extra
The vim extra package contains a extra files for powerful text editor.
|
f4d17450 |
%prep
%setup -q -n %{name}74
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
%build
./configure \
--prefix=%{_prefix} \
--enable-multibyte
make VERBOSE=1 %{?_smp_mflags}
%install
cd %{_builddir}/%{name}74
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 |
a70d4fea |
color desert |
f4d17450 |
if (&term == "iterm") || (&term == "putty")
set background=dark
endif
" End /etc/vimrc
EOF |
b76471af |
%files extra |
f4d17450 |
%defattr(-,root,root) |
b76471af |
%{_bindir}/vimtutor
%{_bindir}/xxd |
f4d17450 |
%{_mandir}/*/*
%doc %{_datarootdir}/vim/vim74/doc/*
%{_datarootdir}/vim/vim74/autoload/*
%{_datarootdir}/vim/vim74/bugreport.vim
%{_datarootdir}/vim/vim74/colors/* |
2c824fbf |
%exclude %{_datarootdir}/vim/vim74/colors/desert.vim |
f4d17450 |
%{_datarootdir}/vim/vim74/compiler/*
%{_datarootdir}/vim/vim74/delmenu.vim
%{_datarootdir}/vim/vim74/evim.vim
%{_datarootdir}/vim/vim74/filetype.vim
%{_datarootdir}/vim/vim74/ftoff.vim
%{_datarootdir}/vim/vim74/ftplugin.vim
%{_datarootdir}/vim/vim74/ftplugin/*
%{_datarootdir}/vim/vim74/ftplugof.vim
%{_datarootdir}/vim/vim74/gvimrc_example.vim
%{_datarootdir}/vim/vim74/indent.vim
%{_datarootdir}/vim/vim74/indent/*
%{_datarootdir}/vim/vim74/indoff.vim
%{_datarootdir}/vim/vim74/keymap/*
%{_datarootdir}/vim/vim74/macros/*
%{_datarootdir}/vim/vim74/menu.vim
%{_datarootdir}/vim/vim74/mswin.vim
%{_datarootdir}/vim/vim74/optwin.vim
%{_datarootdir}/vim/vim74/plugin/*
%{_datarootdir}/vim/vim74/synmenu.vim
%{_datarootdir}/vim/vim74/vimrc_example.vim
%{_datarootdir}/vim/vim74/print/*
%{_datarootdir}/vim/vim74/scripts.vim
%{_datarootdir}/vim/vim74/spell/*
%{_datarootdir}/vim/vim74/syntax/* |
2c824fbf |
%exclude %{_datarootdir}/vim/vim74/syntax/syntax.vim |
f4d17450 |
%{_datarootdir}/vim/vim74/tools/*
%{_datarootdir}/vim/vim74/tutor/*
%{_datarootdir}/vim/vim74/lang/*.vim
%doc %{_datarootdir}/vim/vim74/lang/*.txt
%lang(af) %{_datarootdir}/vim/vim74/lang/af/LC_MESSAGES/vim.mo
%lang(ca) %{_datarootdir}/vim/vim74/lang/ca/LC_MESSAGES/vim.mo
%lang(cs) %{_datarootdir}/vim/vim74/lang/cs/LC_MESSAGES/vim.mo
%lang(de) %{_datarootdir}/vim/vim74/lang/de/LC_MESSAGES/vim.mo
%lang(eb_GB) %{_datarootdir}/vim/vim74/lang/en_GB/LC_MESSAGES/vim.mo
%lang(eo) %{_datarootdir}/vim/vim74/lang/eo/LC_MESSAGES/vim.mo
%lang(es) %{_datarootdir}/vim/vim74/lang/es/LC_MESSAGES/vim.mo
%lang(fi) %{_datarootdir}/vim/vim74/lang/fi/LC_MESSAGES/vim.mo
%lang(fr) %{_datarootdir}/vim/vim74/lang/fr/LC_MESSAGES/vim.mo
%lang(ga) %{_datarootdir}/vim/vim74/lang/ga/LC_MESSAGES/vim.mo
%lang(it) %{_datarootdir}/vim/vim74/lang/it/LC_MESSAGES/vim.mo
%lang(ja) %{_datarootdir}/vim/vim74/lang/ja/LC_MESSAGES/vim.mo
%lang(ko.UTF-8) %{_datarootdir}/vim/vim74/lang/ko.UTF-8/LC_MESSAGES/vim.mo
%lang(ko) %{_datarootdir}/vim/vim74/lang/ko/LC_MESSAGES/vim.mo
%lang(nb) %{_datarootdir}/vim/vim74/lang/nb/LC_MESSAGES/vim.mo
%lang(no) %{_datarootdir}/vim/vim74/lang/no/LC_MESSAGES/vim.mo
%lang(pl) %{_datarootdir}/vim/vim74/lang/pl/LC_MESSAGES/vim.mo
%lang(pt_BR) %{_datarootdir}/vim/vim74/lang/pt_BR/LC_MESSAGES/vim.mo
%lang(ru) %{_datarootdir}/vim/vim74/lang/ru/LC_MESSAGES/vim.mo
%lang(sk) %{_datarootdir}/vim/vim74/lang/sk/LC_MESSAGES/vim.mo
%lang(sv) %{_datarootdir}/vim/vim74/lang/sv/LC_MESSAGES/vim.mo
%lang(uk) %{_datarootdir}/vim/vim74/lang/uk/LC_MESSAGES/vim.mo
%lang(vi) %{_datarootdir}/vim/vim74/lang/vi/LC_MESSAGES/vim.mo
%lang(zh_CN.UTF-8) %{_datarootdir}/vim/vim74/lang/zh_CN.UTF-8/LC_MESSAGES/vim.mo
%lang(zh_CN) %{_datarootdir}/vim/vim74/lang/zh_CN/LC_MESSAGES/vim.mo
%lang(zh_TW.UTF-8) %{_datarootdir}/vim/vim74/lang/zh_TW.UTF-8/LC_MESSAGES/vim.mo
%lang(zh_TW) %{_datarootdir}/vim/vim74/lang/zh_TW/LC_MESSAGES/vim.mo
%lang(cs.cp1250) %{_datarootdir}/vim/vim74/lang/cs.cp1250/LC_MESSAGES/vim.mo
%lang(ja.euc-jp) %{_datarootdir}/vim/vim74/lang/ja.euc-jp/LC_MESSAGES/vim.mo
%lang(ja.sjis) %{_datarootdir}/vim/vim74/lang/ja.sjis/LC_MESSAGES/vim.mo |
b76471af |
%lang(nl) %{_datarootdir}/vim/vim74/lang/nl/LC_MESSAGES/vim.mo |
f4d17450 |
%lang(pl.UTF-8) %{_datarootdir}/vim/vim74/lang/pl.UTF-8/LC_MESSAGES/vim.mo
%lang(pl.cp1250) %{_datarootdir}/vim/vim74/lang/pl.cp1250/LC_MESSAGES/vim.mo
%lang(ru.cp1251) %{_datarootdir}/vim/vim74/lang/ru.cp1251/LC_MESSAGES/vim.mo
%lang(sk.cp1250) %{_datarootdir}/vim/vim74/lang/sk.cp1250/LC_MESSAGES/vim.mo
%lang(uk.cp1251) %{_datarootdir}/vim/vim74/lang/uk.cp1251/LC_MESSAGES/vim.mo
%lang(zh_CN.cp936) %{_datarootdir}/vim/vim74/lang/zh_CN.cp936/LC_MESSAGES/vim.mo |
b76471af |
%files
%defattr(-,root,root) |
2c824fbf |
%config(noreplace) /etc/vimrc
%{_datarootdir}/vim/vim74/colors/desert.vim
%{_datarootdir}/vim/vim74/syntax/syntax.vim |
b76471af |
%{_bindir}/ex
%{_bindir}/vi
%{_bindir}/view
%{_bindir}/rvim
%{_bindir}/rview
%{_bindir}/vim
%{_bindir}/vimdiff
|
f4d17450 |
%changelog |
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. |
a70d4fea |
* Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
- Disable debug package. Use 'desert' colorscheme. |
f4d17450 |
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
- Initial build. First version |