]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- version 5.7
[packages/vim.git] / vim.spec
1 Summary:        Vi IMproved - a Vi clone
2 Summary(pl):    Vi IMproved - klon edytora Vi
3 Name:           vim
4 Version:        5.7
5 Release:        1
6 Copyright:      Charityware
7 Group:          Applications/Editors/Vim
8 Group(pl):      Aplikacje/Edytory/Vim
9 URL:            http://www.vim.org
10 Source0:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-src.tar.gz
11 Source1:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-rt.tar.gz
12 Source2:        ftp://ftp.vim.org/pub/editors/vim/unix/%{name}-%{version}-extra.tar.gz
13 Source3:        gvim.desktop
14 Patch0:         vim-fhs.patch
15 Patch1:         vim-visual.patch
16 BuildRequires:  ncurses-devel
17 BuildRequires:  ncurses-static
18 BuildRequires:  gpm-devel
19 BuildRequires:  Xaw3d-devel
20 BuildRequires:  motif-devel
21 BuildRequires:  gtk+-devel
22 Requires:       %{name}-rt = %{version}
23 Obsoletes:      vim-enhanced
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Text editor similar to Vi. Important improvements: multiple windows, 
28 multi-level undo, block highliting, and many other.   
29
30 %description -l pl
31 Edytor tekstu podobny do Vi. Wa¿ne ulepszenia: mo¿liwo¶æ pracy w wielu 
32 wielopoziomowa opcja 'cofnij', bloki, pod¶wietlanie sk³adni i wiele innych. 
33   
34 %package static
35 Summary:        Staticly linked Vim
36 Summary(pl):    Statycznie zlinkowany Vim
37 Group:          Applications/Editors/Vim
38 Group(pl):      Aplikacje/Edytory/Vim
39 Provides:       vi
40 Obsoletes:      vi
41 Obsoletes:      vim-minimal
42  
43 %description static
44 Text editor similar to Vi. This version is build with minimal feature  and 
45 is installed in /bin as a rescue tool. The installation of this package  is 
46 STRONGLY recommended.      
47
48 %description static -l pl
49 Edytor tekstu podobny do Vi. Ta wersja zosta³a skompilowana statycznie i 
50 posiada minimaln± ilo¶ci± dodatków. Jest instalowana w /bin jako narzêdzie 
51 dla administratora. Instalacja tego pakietu jest MOCNO zalecana, mo¿e on 
52 pomóc Tobie uratowaæ system w czasie awarii.      
53
54 %package rt 
55 Summary:        Vim runtime files
56 Summary(pl):    Pliki przydatne edytorowi Vim 
57 Group:          Applications/Editors/Vim
58 Group(pl):      Aplikacje/Edytory/Vim
59 Obsoletes:      vim-common
60
61 %description rt
62 This package contains macros, documentation, syntax configuration and  
63 manual pages for vim. If you want to take advantage of vim more powerful  
64 features, you should install this package.      
65
66 %description rt -l pl
67 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i 
68 strony podrêcznika dla edytora vim. Je¿eli chcesz korzystaæ z 
69 zaawansowanych mo¿liwo¶ci vim-a, powiniene¶ zainstalowaæ ten pakiet.   
70
71 %package -n gvim-athena
72 Summary:        Vim for X Window built with arena
73 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Arena
74 Group:          Applications/Editors/Vim
75 Group(pl):      Aplikacje/Edytory/Vim
76 Requires:       %{name}-rt = %{version}
77 Obsoletes:      vim-X11
78
79 %description -n gvim-athena
80 The classic Unix text editor now also under X Window System! This version 
81 is build with Athena Widget Set.   
82
83 %description -n gvim-athena -l pl
84 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem 
85 biblioteki Athena Widget Set.   
86
87 %package -n gvim-motif
88 Summary:        Vim for X Window built with Motif
89 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki Motif
90 Group:          Applications/Editors/Vim
91 Group(pl):      Aplikacje/Edytory/Vim
92 Requires:       %{name}-rt = %{version}
93 Obsoletes:      vim-X11
94
95 %description -n gvim-motif
96 The classic Unix text editor now also under X Window System! This version 
97 is build with Motif.
98
99 %description -n gvim-motif -l pl
100 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem 
101 biblioteki Motif.
102
103 %package -n gvim-gtk
104 Summary:        Vim for X Window built with gtk
105 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki GTK
106 Group:          Applications/Editors/Vim
107 Group(pl):      Aplikacje/Edytory/Vim
108 Requires:       %{name}-rt = %{version}
109 Obsoletes:      vim-X11
110
111 %description -n gvim-gtk
112 The classic Unix text editor now also under X Window System! This version 
113 is build with GTK.   
114
115 %description -n gvim-gtk -l pl
116 Wersja edytora vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem 
117 biblioteki GTK.    
118
119 %prep
120 %setup -q -b 1 -b 2
121 %patch0 -p1
122 %patch1 -p1
123
124 %build
125 cd src
126
127 LDFLAGS="-s"; export LDFLAGS
128 %configure \
129         --disable-gui \
130         --without-x \
131         --disable-perlinterp \
132         --disable-pythoninterp \
133         --disable-tclinterp \
134         --disable-cscope \
135         --enable-gmp \
136         --enable-max-features \
137         --with-tlib=ncurses 
138 %{__make} vim
139 mv vim vim.ncurses
140
141 %{__make} distclean
142 LDFLAGS="-static -s"; export LDFLAGS
143 %configure \
144         --disable-gui \
145         --without-x \
146         --disable-perlinterp \
147         --disable-pythoninterp \
148         --disable-tclinterp \
149         --disable-cscope \
150         --disable-gpm \
151         --disable-multibyte \
152         --enable-min-features \
153         --datadir=/etc \
154         --with-tlib=tinfo
155 %{__make} vim
156 %{__make} xxd/xxd
157 mv vim vim.static
158 mv xxd/xxd xxd.static
159
160 %{__make} distclean
161 LDFLAGS="-s"; export LDFLAGS
162 %configure \
163         --enable-max-features \
164         --enable-gui=athena \
165         --with-x \
166         --disable-perlinterp \
167         --disable-pythoninterp \
168         --disable-tclinterp \
169         --disable-cscope \
170         --disable-gpm
171 %{__make} vim
172 mv vim gvim.athena
173
174 %{__make} distclean
175 LDFLAGS="-s"; export LDFLAGS
176 %configure \
177         --enable-max-features \
178         --enable-gui=motif \
179         --with-x \
180         --disable-perlinterp \
181         --disable-pythoninterp \
182         --disable-tclinterp \
183         --disable-cscope \
184         --disable-gpm
185 %{__make} vim
186 mv vim gvim.motif
187  
188 %{__make} distclean
189 LDFLAGS="-s"; export LDFLAGS
190 %configure \
191         --enable-max-features \
192         --enable-gui=gtk \
193         --with-x \
194         --disable-perlinterp \
195         --disable-pythoninterp \
196         --disable-tclinterp \
197         --disable-cscope \
198         --disable-gpm
199 %{__make} vim
200 mv vim gvim.gtk
201
202 cd ..
203
204 %install
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT{%{_var}/lib/vim,%{_sysconfdir},%{_prefix}/{bin,share/{vim/{doc,tutor},man/man1}}} \
207         $RPM_BUILD_ROOT/{bin,usr/X11R6/{bin,share/applnk/Office/Editors}}
208
209 install -s src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
210
211 install -s src/vim.static  $RPM_BUILD_ROOT/bin/vi
212 install -s src/xxd.static  $RPM_BUILD_ROOT/bin/xxd
213
214 install -s src/gvim.athena  $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.athena
215 install -s src/gvim.motif   $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.motif
216 install -s src/gvim.gtk     $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.gtk
217  
218 install    src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
219
220 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
221
222 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
223 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
224
225 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
226
227 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
228 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
229 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
230 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
231 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
232
233 cp -a runtime/macros $RPM_BUILD_ROOT%{_datadir}/vim/macros
234 cp -a runtime/syntax $RPM_BUILD_ROOT%{_datadir}/vim/syntax
235 cp -a runtime/tutor/tutor  $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor
236
237 install runtime/*.vim $RPM_BUILD_ROOT%{_datadir}/vim
238 mv $RPM_BUILD_ROOT%{_datadir}/vim/vimrc_example.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimrc
239 mv $RPM_BUILD_ROOT%{_datadir}/vim/gvimrc_example.vim $RPM_BUILD_ROOT%{_datadir}/vim/gvimrc
240
241 install runtime/doc/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/doc
242 install runtime/doc/tags  $RPM_BUILD_ROOT%{_datadir}/vim/doc
243
244 touch $RPM_BUILD_ROOT/usr/X11R6/bin/gvim
245
246 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
247
248 ln -sf vi $RPM_BUILD_ROOT/bin/ex
249 ln -sf vi $RPM_BUILD_ROOT/bin/view
250 ln -sf vi $RPM_BUILD_ROOT/bin/rview
251
252 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgvim
253 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gview
254 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgview
255  
256 install %{SOURCE3} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Office/Editors
257
258 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
259
260 %post -n gvim-athena
261 ln -sf /usr/X11R6/bin/gvim.athena /usr/X11R6/bin/gvim
262
263 %post -n gvim-motif
264 ln -sf /usr/X11R6/bin/gvim.motif /usr/X11R6/bin/gvim
265
266 %post -n gvim-gtk
267 ln -sf /usr/X11R6/bin/gvim.gtk /usr/X11R6/bin/gvim
268
269 %clean
270 rm -rf $RPM_BUILD_ROOT
271
272 %files
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_bindir}/vim
275 %attr(755,root,root) %{_bindir}/rvim
276
277 %files static
278 %defattr(644,root,root,755)
279 %attr(755,root,root) /bin/*
280
281 %{_mandir}/man1/vi.1*
282 %{_mandir}/man1/ex.1*
283 %{_mandir}/man1/xxd.1*
284 %{_mandir}/man1/view.1*
285 %{_mandir}/man1/rview.1*
286
287 %files -n gvim-athena
288 %defattr(644,root,root,755)
289 %attr(755,root,root) /usr/X11R6/bin/gvim.athena
290 %attr(755,root,root) /usr/X11R6/bin/rgvim
291 %attr(755,root,root) /usr/X11R6/bin/rgview
292 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
293 /usr/X11R6/share/applnk/Office/Editors/gvim.desktop
294
295 %files -n gvim-motif
296 %defattr(644,root,root,755)
297 %attr(755,root,root) /usr/X11R6/bin/gvim.motif
298 %attr(755,root,root) /usr/X11R6/bin/rgvim
299 %attr(755,root,root) /usr/X11R6/bin/rgview
300 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
301 /usr/X11R6/share/applnk/Office/Editors/gvim.desktop
302
303 %files -n gvim-gtk
304 %defattr(644,root,root,755)
305 %attr(755,root,root) /usr/X11R6/bin/gvim.gtk
306 %attr(755,root,root) /usr/X11R6/bin/rgvim
307 %attr(755,root,root) /usr/X11R6/bin/rgview
308 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
309 /usr/X11R6/share/applnk/Office/Editors/gvim.desktop
310
311 %files rt
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_bindir}/vimtutor
314 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/menu.vim
315 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/vimrc
316 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/gvimrc
317
318 %dir %{_var}/lib/vim
319
320 %dir %{_datadir}/vim
321 %{_datadir}/vim/doc
322 %{_datadir}/vim/macros
323 %{_datadir}/vim/syntax
324 %{_datadir}/vim/tutor
325
326 %{_datadir}/vim/bugreport.vim
327 %{_datadir}/vim/filetype.vim
328 %{_datadir}/vim/scripts.vim
329 %{_datadir}/vim/mswin.vim
330 %{_datadir}/vim/ftoff.vim
331 %{_datadir}/vim/optwin.vim
332
333 %{_mandir}/man1/vim.*
334 %{_mandir}/man1/rvim.*
This page took 0.14084 seconds and 4 git commands to generate.