]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
fixed version number
[packages/vim.git] / vim.spec
1 Summary:        Vim built with ncurses
2 Summary(pl):    Vim korzystaj±cy z bibliotek ncurses
3 Name:           vim
4 Version:        5.4k
5 Release:        1
6 Source0:        ftp://ftp.nl.vim.org/pub/vim/unreleased/unix/%{name}-%{version}-src.tar.gz
7 Source1:        ftp://ftp.nl.vim.org/pub/vim/unreleased/unix/%{name}-%{version}-rt.tar.gz
8 Source2:        ftp://ftp.nl.vim.org/pub/vim/unreleased/extra/%{name}-%{version}-extra.tar.gz
9 Source3:        gvim.wmconfig
10 Copyright:      GPL
11 Group:          Applications/Editors/Vim
12 Group(pl):      Aplikacje/Edytory/Vim
13 URL:            http://www.vim.org/
14 BuildPrereq:    ncurses-static
15 BuildPrereq:    lesstif-devel
16 BuildPrereq:    gtk+-devel
17 BuildPrereq:    glib-devel
18 BuildPrereq:    gpm-devel
19 Obsoletes:      vim-gtk
20 Obsoletes:      vim-lesstif
21 Obsoletes:      vim-athena
22 Obsoletes:      vim-ncurses
23 Buildroot:      /tmp/%{name}-%{version}-root
24
25 %description 
26 The classic Unix text editor build with ncurses library. It adds
27 multiple windows, multi-level undo, block highliting, and many other
28 features to the standard vi program.
29
30 %description -l pl
31 Wersja edytora vim skompilowana z bibliotek± ncurses. W porownaniu z
32 edytorem vi, ta wersja oferuje dodatkowo pracê z wieloma plikami,
33 wielopoziomowe operacje cofnij, bloki, pod¶wietlanie sk³adni i wiele
34 innych usprawnieñ.
35
36 %package rt 
37 Summary:        Vim runtime files
38 Summary(pl):    Pliki przydatne edytorowi vim 
39 Group:          Applications/Editors/Vim
40 Group(pl):      Aplikacje/Edytory/Vim
41
42 %description rt
43 This package contains macros, documentation, syntax configuration and
44 manual pages for vim. If you want to take advantage of vim more powerful
45 features, you should install this package.
46
47 %description rt -l pl
48 W tym pakiecie znajdziesz dokumentacjê, makra, pliki konfiguracyjne i strony
49 podrêcznika edytora vim. Je¿eli zamierzasz korzystaæ z vim-a, powiniene¶
50 zainstalowaæ ten pakiet.
51
52 %package static
53 Summary:        Vim static
54 Summary(pl):    Vim skompilowany statycznie
55 Group:          Applications/Editors/Vim
56 Group(pl):      Aplikacje/Edytory/Vim
57 Provides:       vi
58 Obsoletes:      vi
59 Requires:       ncurses >= 4.2-12
60
61 %description static
62 The classic Unix text editor. This version is build with minimal
63 feature and is installed in /bin as a rescue tool. The installation of
64 this package is STRONGLY recommended.
65
66 %description static -l pl
67 Pakiet zawiera vim - klasyczny (unixowy) edytor tekstowy skompilowany 
68 statycznie. Instalacja tego pakietu jest MOCNO zalecana, mo¿e on pomóc
69 Tobie uratowaæ system w czasie awarii.
70
71 %package athena
72 Summary:        Vim built with X11 and athena support
73 Summary(pl):    Vim pod X-Window korzystaj±cy z Athena Widget Set
74 Group:          Applications/Editors/Vim
75 Group(pl):      Aplikacje/Edytory/Vim
76 Requires:       %{name}-rt = %{version}
77 Obsoletes:      vim-lesstif
78 Obsoletes:      vim-gtk
79 Obsoletes:      vim-ncurses
80 Obsoletes:      vim
81
82 %description athena 
83 The classic Unix text editor now also under X Window System! 
84 This version is build with Athena Widget Set. 
85
86 %description athena -l pl
87 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
88 z wykorzystaniem Athena Widget Set.
89
90 %package lesstif
91 Summary:        Vim built with X11 and LessTif support
92 Summary(pl):    Vim pod X-Window korzystaj±cy z bibliotek LessTif
93 Group:          Applications/Editors/Vim
94 Group(pl):      Aplikacje/Edytory/Vim
95 Requires:       %{name}-rt = %{version}
96 Obsoletes:      vim-athena
97 Obsoletes:      vim-gtk
98 Obsoletes:      vim-ncurses
99 Obsoletes:      vim
100
101 %description lesstif
102 The classic Unix text editor now also under X Window System! 
103 This version is build with LessTif.
104
105 %description lesstif -l pl
106 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
107 z wykorzystaniem LessTif.
108
109 %package gtk
110 Summary:        Vim built with X11 and gtk support
111 Summary(pl):    Vim pod X-Window korzystaj±cy z bibliotek gtk
112 Group:          Applications/Editors/Vim
113 Group(pl):      Aplikacje/Edytory/Vim
114 Requires:       %{name}-rt = %{version}
115 Obsoletes:      vim-athena
116 Obsoletes:      vim-lesstif
117 Obsoletes:      vim-ncurses
118 Obsoletes:      vim
119
120 %description gtk
121 The classic Unix text editor now also under X Window System!
122 This version is build with gtk.
123
124 %description gtk -l pl
125 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
126 z wykorzystaniem gtk.
127
128 %prep
129 %setup -q -b 1 -b 2
130
131 %build
132 cd src
133
134 LDFLAGS="-static -s"; export LDFLAGS
135 %configure \
136         --disable-gui \
137         --without-x \
138         --disable-perlinterp \
139         --disable-pythoninterp \
140         --disable-tclinterp \
141         --disable-cscope \
142         --disable-gpm \
143         --enable-min-features \
144         --datadir=/etc \
145         --with-tlib=ncurses 
146 make vim
147 make xxd/xxd
148 mv vim vim.static
149 mv xxd/xxd xxd.static
150
151 make distclean
152 LDFLAGS="-static -s"; export LDFLAGS
153 %configure \
154         --enable-max-features \
155         --disable-gui \
156         --without-x \
157         --disable-perlinterp \
158         --disable-pythoninterp \
159         --disable-tclinterp \
160         --disable-cscope \
161         --enable-gmp \
162         --with-tlib=ncurses 
163 make vim
164 mv vim vim.ncurses
165
166 make distclean
167 LDFLAGS="-static -s"; export LDFLAGS
168 %configure \
169         --enable-max-features \
170         --enable-gui=athena \
171         --with-x \
172         --disable-perlinterp \
173         --disable-pythoninterp \
174         --disable-tclinterp \
175         --disable-cscope \
176         --enable-gmp \
177         --with-tlib=ncurses 
178 make vim
179 mv vim vim.athena
180
181 make distclean
182 LDFLAGS="-static -s"; export LDFLAGS
183 %configure \
184         --enable-max-features \
185         --enable-gui=motif \
186         --with-x \
187         --disable-perlinterp \
188         --disable-pythoninterp \
189         --disable-tclinterp \
190         --disable-cscope \
191         --enable-gmp \
192         --with-tlib=ncurses 
193 make vim
194 mv vim vim.lesstif
195
196 make distclean
197 LDFLAGS="-static -s"; export LDFLAGS
198 %configure \
199         --enable-max-features \
200         --enable-gui=gtk \
201         --with-x \
202         --disable-perlinterp \
203         --disable-pythoninterp \
204         --disable-tclinterp \
205         --disable-cscope \
206         --enable-gmp \
207         --with-tlib=ncurses 
208 make vim
209 mv vim vim.gtk
210
211 cd ..
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215
216 install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
217 install -d $RPM_BUILD_ROOT/bin
218 install -d $RPM_BUILD_ROOT/usr/{bin,X11R6/bin,share/vim/{doc,tutor},man/man1}
219
220 # make prefix=$RPM_BUILD_ROOT/usr install
221
222 install -s src/vim.static $RPM_BUILD_ROOT/bin/vi
223 install -s src/xxd.static $RPM_BUILD_ROOT/bin/xxd
224
225 install -s src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim.ncurses
226 install -s src/vim.athena  $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.athena
227 install -s src/vim.lesstif $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.lesstif
228 install -s src/vim.gtk     $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.gtk
229
230 install    src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
231
232 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
233
234 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
235 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
236 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
237 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
238
239 echo ".so vi.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
240 echo ".so vi.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
241 echo ".so vi.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
242
243 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/gvim.1
244 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/gview.1
245 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
246 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rgvim.1
247 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rgview.1
248
249 cp -a runtime/macros $RPM_BUILD_ROOT%{_datadir}/vim/macros
250 cp -a runtime/syntax $RPM_BUILD_ROOT%{_datadir}/vim/syntax
251 cp -a runtime/tutor/tutor  $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor
252
253 install runtime/*.vim $RPM_BUILD_ROOT%{_datadir}/vim
254 install runtime/vimrc_example.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimrc
255 install %{SOURCE3} $RPM_BUILD_ROOT/etc/X11/wmconfig/gvim
256
257 touch $RPM_BUILD_ROOT%{_bindir}/vim $RPM_BUILD_ROOT/usr/X11R6/bin/gvim
258
259 install runtime/doc/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/doc
260 install runtime/doc/tags  $RPM_BUILD_ROOT%{_datadir}/vim/doc
261
262 ln -sf vi $RPM_BUILD_ROOT/bin/ex
263 ln -sf vi $RPM_BUILD_ROOT/bin/view
264 ln -sf vi $RPM_BUILD_ROOT/bin/rview
265 ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vi
266
267 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
268
269 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgvim
270 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gview
271 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgview
272
273 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
274
275 %clean
276 rm -rf $RPM_BUILD_ROOT
277
278 %post
279 ln -sf %{_bindir}/vim.ncurses /usr/bin/vim
280
281 %post athena
282 ln -sf /usr/X11R6/bin/gvim.athena /usr/X11R6/bin/gvim
283 ln -sf /usr/X11R6/bin/gvim %{_bindir}/vim
284
285 %post lesstif 
286 ln -sf /usr/X11R6/bin/gvim.lesstif /usr/X11R6/bin/gvim
287 ln -sf /usr/X11R6/bin/gvim %{_bindir}/vim
288
289 %post gtk
290 ln -sf /usr/X11R6/bin/gvim.gtk /usr/X11R6/bin/gvim
291 ln -sf /usr/X11R6/bin/gvim %{_bindir}/vim
292
293 %files 
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_bindir}/vim.ncurses
296 %attr(755,root,root) %{_bindir}/rvim
297 %attr(755,root,root) %ghost %{_bindir}/vim
298
299 %files static
300 %defattr(644,root,root,755)
301 %attr(755,root,root) /bin/*
302 %attr(755,root,root) %{_bindir}/vi
303 %{_mandir}/man1/vi.1*
304 %{_mandir}/man1/ex.1*
305 %{_mandir}/man1/xxd.1*
306 %{_mandir}/man1/view.1*
307 %{_mandir}/man1/rview.1*
308
309 %files athena
310 %defattr(644,root,root,755)
311 %attr(755,root,root) /usr/X11R6/bin/gvim.athena
312 %attr(755,root,root) /usr/X11R6/bin/rgvim
313 %attr(755,root,root) /usr/X11R6/bin/rgview
314 /etc/X11/wmconfig/gvim
315 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
316 %attr(755,root,root) %ghost %{_bindir}/vim
317
318 %files lesstif 
319 %defattr(644,root,root,755)
320 %attr(755,root,root) /usr/X11R6/bin/gvim.lesstif
321 %attr(755,root,root) /usr/X11R6/bin/rgvim
322 %attr(755,root,root) /usr/X11R6/bin/rgview
323 /etc/X11/wmconfig/gvim
324 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
325 %attr(755,root,root) %ghost %{_bindir}/vim
326
327 %files gtk
328 %defattr(644,root,root,755)
329 %attr(755,root,root) /usr/X11R6/bin/gvim.gtk
330 %attr(755,root,root) /usr/X11R6/bin/rgvim
331 %attr(755,root,root) /usr/X11R6/bin/rgview
332 /etc/X11/wmconfig/gvim
333 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
334 %attr(755,root,root) %ghost %{_bindir}/vim
335
336 %files rt
337 %defattr(644,root,root,755)
338
339 %attr(755,root,root) %{_bindir}/vimtutor
340
341 %{_mandir}/man1/*
342
343 %dir %{_datadir}/vim
344 %{_datadir}/vim/macros
345
346 %dir %{_datadir}/vim/syntax
347 %{_datadir}/vim/syntax/*.vim
348
349 %{_datadir}/vim/tutor
350 %{_datadir}/vim/bugreport.vim
351 %{_datadir}/vim/filetype.vim
352 %{_datadir}/vim/scripts.vim
353 %{_datadir}/vim/mswin.vim
354 %{_datadir}/vim/ftoff.vim
355 %{_datadir}/vim/doc
356
357 %config %verify(not size mtime md5) %{_datadir}/vim/menu.vim
358 %config %verify(not size mtime md5) %{_datadir}/vim/vimrc
359
360 %changelog
361 * Wed Apr 21 1999 Artur Frysiak <wiget@pld.org.pl>
362   [5.4h-1]
363 - build on rpm 3  
364
365 * Fri Mar 12 1999 Artur Frysiak <wiget@pld.org.pl>
366   [5.4f-1]
367 - removed  vim-hold_gui_events.patch and vim-CMDLINE_COMPL.patch
368 - removed Requires: lesstif gtk+
369 - added --enable-gpm to configure
370
371 * Tue Feb 23 1999 Artur Frysiak <wiget@usa.net>
372   [5.4e-1d]
373 - removed vim-clip.patch (now in 5.4e)
374 - added vim-CMDLINE_COMPL.patch (allow compile with --enable-min-features)
375 - added %%defattr macro to all subpackages
376
377 * Thu Feb 04 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
378   [5.4d-2d]
379 - symlink %{_bindir}/vi -> /bin/vi
380 - doc package moved to %{_datadir}/vim/doc (crazy cpio .. ;)
381
382 * Tue Feb  2 1999 Artur Frysiak <wiget@usa.net>
383   [5.4d-1d]
384 - upgraded to 5.4d
385 - now %{_datadir}/vim/doc is symlink to /usr/doc/%{name}-rt-%{version}
386 - added missingok option to wmconfig files
387
388 * Wed Jan 13 1999 Artur Frysiak <wiget@usa.net>
389   [5.4c-1d]
390 - upgraded to 5.4c
391 - added gtk subpackage
392 - using %%{version} makro in Summary tags
393 - some chenges in %%build section
394 - changed Group to Applications/Editors/Vim
395
396 * Sun Dec 27 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
397   [5.3-4d]
398 - fixed some errors in rt subpackage. 
399   by Ziemek Borowski <ziembor@mail.ceu.edu.pl>
400 - fixed etcdir in vim-static subpackage.
401
402 * Thu Nov 12 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
403   [5.3-2d]
404 - added %{_datadir}/vim/doc/{help.txt,tags} to rt subpackage (was missing)
405
406 * Sun Oct 04 1998 Marcin Korzonek <mkorz@shadow.eu.org>
407   [5.3-1]
408 - completely rewritten spec, added 4 subpackages
409
410 * Thu Aug 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
411   [5.0-1d]
412 - build against glibc-2.1,
413 - translation modified for pl,
414 - added build-root support,
415 - added %changelog,
416 - fixed permissions fo ELF binaries.
This page took 0.07014 seconds and 4 git commands to generate.