[packages/vim] do not compress docs

atler atler at pld-linux.org
Mon Aug 1 17:05:55 CEST 2016


commit f8957c504610e689b397a18792f341c869dd3872
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 1 16:59:36 2016 +0200

    do not compress docs
    
    if you'd like to bring back compressed docs please provide full support
    for them first -- modify helptags and add automatic compression to
    build process

 vim-vimrc.patch | 10 ----------
 vim.spec        | 11 ++---------
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/vim.spec b/vim.spec
index 319de7e..e558143 100644
--- a/vim.spec
+++ b/vim.spec
@@ -1004,13 +1004,6 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
 
 %find_lang %{name}
 
-# use compressed docs, see :help gzip-helpfile
-%{__gzip} -9 $RPM_BUILD_ROOT%{_datadir}/vim/doc/*.txt
-%{__sed} -i -e 's=\(\t.*\.txt\)\t=\1.gz\t=' $RPM_BUILD_ROOT%{_datadir}/vim/doc/tags
-
-%{__gzip} -9 $RPM_BUILD_ROOT%{_datadir}/vim/doc/*.??x
-%{__sed} -i -e 's=\(\t.*\.plx\)\t=\1.gz\t=' $RPM_BUILD_ROOT%{_datadir}/vim/doc/tags-pl
-
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/*
 
 %if %{with static}
@@ -1349,10 +1342,10 @@ rm -rf $RPM_BUILD_ROOT
 %files doc
 %defattr(644,root,root,755)
 # English
-%{_datadir}/vim/doc/*.txt.gz
+%{_datadir}/vim/doc/*.txt
 
 # Polish
-%lang(pl) %{_datadir}/vim/doc/*.plx.gz
+%lang(pl) %{_datadir}/vim/doc/*.plx
 
 %files tutor
 %defattr(644,root,root,755)
diff --git a/vim-vimrc.patch b/vim-vimrc.patch
index f0aa1b0..698e41e 100644
--- a/vim-vimrc.patch
+++ b/vim-vimrc.patch
@@ -1,15 +1,5 @@
 --- vim74/runtime/vimrc_example.vim~	2013-09-06 00:10:56.000000000 +0300
 +++ vim74/runtime/vimrc_example.vim	2013-09-06 00:11:24.756404306 +0300
-@@ -31,6 +31,9 @@
- set showcmd		" display incomplete commands
- set incsearch		" do incremental searching
- 
-+" use compressed docs, see :help gzip-helpfile
-+set helpfile=$VIMRUNTIME/doc/help.txt.gz
-+
- " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
- " let &guioptions = substitute(&guioptions, "t", "", "g")
- 
 @@ -46,13 +46,13 @@ map Q gq
  inoremap <C-U> <C-G>u<C-U>
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/f8957c504610e689b397a18792f341c869dd3872



More information about the pld-cvs-commit mailing list