]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- added Obsoletes: vi to static subpackage
[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.4h
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 Obsoletes:      vim-lesstif
77 Obsoletes:      vim-gtk
78 Obsoletes:      vim-ncurses
79 Obsoletes:      vim
80
81 %description athena 
82 The classic Unix text editor now also under X Window System! 
83 This version is build with Athena Widget Set. 
84
85 %description athena -l pl
86 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
87 z wykorzystaniem Athena Widget Set.
88
89 %package lesstif
90 Summary:        Vim built with X11 and LessTif support
91 Summary(pl):    Vim pod X-Window korzystaj±cy z bibliotek LessTif
92 Group:          Applications/Editors/Vim
93 Group(pl):      Aplikacje/Edytory/Vim
94 Obsoletes:      vim-athena
95 Obsoletes:      vim-gtk
96 Obsoletes:      vim-ncurses
97 Obsoletes:      vim
98
99 %description lesstif
100 The classic Unix text editor now also under X Window System! 
101 This version is build with LessTif.
102
103 %description lesstif -l pl
104 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
105 z wykorzystaniem LessTif.
106
107 %package gtk
108 Summary:        Vim built with X11 and gtk support
109 Summary(pl):    Vim pod X-Window korzystaj±cy z bibliotek gtk
110 Group:          Applications/Editors/Vim
111 Group(pl):      Aplikacje/Edytory/Vim
112 Obsoletes:      vim-athena
113 Obsoletes:      vim-lesstif
114 Obsoletes:      vim-ncurses
115 Obsoletes:      vim
116
117 %description gtk
118 The classic Unix text editor now also under X Window System!
119 This version is build with gtk.
120
121 %description gtk -l pl
122 Wersja edytora vim pracuj±ca w graficznym ¶rodowisku X Window
123 z wykorzystaniem gtk.
124
125 %prep
126 %setup -q -b 1 -b 2
127
128 %build
129 cd src
130
131 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-static -s" \
132 ./configure \
133         --disable-gui \
134         --without-x \
135         --disable-perlinterp \
136         --disable-pythoninterp \
137         --disable-tclinterp \
138         --disable-cscope \
139         --disable-gpm \
140         --enable-min-features \
141         --datadir=/etc \
142         --with-tlib=ncurses \
143         --prefix=/usr
144 make vim
145 make xxd/xxd
146 mv vim vim.static
147 mv xxd/xxd xxd.static
148
149 make distclean
150 LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" \
151 ./configure \
152         --enable-max-features \
153         --disable-gui \
154         --without-x \
155         --disable-perlinterp \
156         --disable-pythoninterp \
157         --disable-tclinterp \
158         --disable-cscope \
159         --enable-gmp \
160         --with-tlib=ncurses \
161         --prefix=/usr
162 make vim
163 mv vim vim.ncurses
164
165 make distclean
166 LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" \
167 ./configure \
168         --enable-max-features \
169         --enable-gui=athena \
170         --with-x \
171         --disable-perlinterp \
172         --disable-pythoninterp \
173         --disable-tclinterp \
174         --disable-cscope \
175         --enable-gmp \
176         --with-tlib=ncurses \
177         --prefix=/usr
178 make vim
179 mv vim vim.athena
180
181 make distclean
182 LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" \
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         --prefix=/usr
194 make vim
195 mv vim vim.lesstif
196
197 make distclean
198 LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" \
199 ./configure \
200         --enable-max-features \
201         --enable-gui=gtk \
202         --with-x \
203         --disable-perlinterp \
204         --disable-pythoninterp \
205         --disable-tclinterp \
206         --disable-cscope \
207         --enable-gmp \
208         --with-tlib=ncurses \
209         --prefix=/usr
210 make vim
211 mv vim vim.gtk
212
213 cd ..
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217
218 install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
219 install -d $RPM_BUILD_ROOT/bin
220 install -d $RPM_BUILD_ROOT/usr/{bin,X11R6/bin,share/vim/{doc,tutor},man/man1}
221
222 # make prefix=$RPM_BUILD_ROOT/usr install
223
224 install -s src/vim.static $RPM_BUILD_ROOT/bin/vi
225 install -s src/xxd.static $RPM_BUILD_ROOT/bin/xxd
226
227 install -s src/vim.ncurses $RPM_BUILD_ROOT/usr/bin/vim.ncurses
228 install -s src/vim.athena  $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.athena
229 install -s src/vim.lesstif $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.lesstif
230 install -s src/vim.gtk     $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.gtk
231
232 install    src/vimtutor    $RPM_BUILD_ROOT/usr/bin/vimtutor
233
234 rm -f $RPM_BUILD_ROOT/usr/man/man1/*.1
235
236 install runtime/doc/vim.1 $RPM_BUILD_ROOT/usr/man/man1
237 install runtime/doc/xxd.1 $RPM_BUILD_ROOT/usr/man/man1
238 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT/usr/man/man1
239
240 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/vi.1
241 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/ex.1
242 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/view.1
243 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/gvim.1
244 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/gview.1
245 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rvim.1
246 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rview.1
247 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rgvim.1
248 echo ".so vim.1" > $RPM_BUILD_ROOT/usr/man/man1/rgview.1
249
250 cp -a runtime/macros $RPM_BUILD_ROOT/usr/share/vim/macros
251 cp -a runtime/syntax $RPM_BUILD_ROOT/usr/share/vim/syntax
252 cp -a runtime/tutor/tutor  $RPM_BUILD_ROOT/usr/share/vim/tutor/tutor
253
254 install runtime/*.vim $RPM_BUILD_ROOT/usr/share/vim
255 install runtime/vimrc_example.vim $RPM_BUILD_ROOT/usr/share/vim/vimrc
256 install %{SOURCE3} $RPM_BUILD_ROOT/etc/X11/wmconfig/gvim
257
258 touch $RPM_BUILD_ROOT/usr/bin/vim $RPM_BUILD_ROOT/usr/X11R6/bin/gvim
259
260 install runtime/doc/*.txt $RPM_BUILD_ROOT/usr/share/vim/doc
261 install runtime/doc/tags  $RPM_BUILD_ROOT/usr/share/vim/doc
262
263 ln -sf vi $RPM_BUILD_ROOT/bin/ex
264 ln -sf vi $RPM_BUILD_ROOT/bin/view
265 ln -sf vi $RPM_BUILD_ROOT/bin/rview
266 ln -sf /bin/vi $RPM_BUILD_ROOT/usr/bin/vi
267 ln -sf vim $RPM_BUILD_ROOT/usr/bin/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/usr/man/man1/*
274
275 %clean
276 rm -rf $RPM_BUILD_ROOT
277
278 %post
279 ln -sf /usr/bin/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 /usr/bin/vim
284
285 %post lesstif 
286 ln -sf /usr/X11R6/bin/gvim.lesstif /usr/X11R6/bin/gvim
287 ln -sf /usr/X11R6/bin/gvim /usr/bin/vim
288
289 %post gtk
290 ln -sf /usr/X11R6/bin/gvim.gtk /usr/X11R6/bin/gvim
291 ln -sf /usr/X11R6/bin/gvim /usr/bin/vim
292
293 %files 
294 %defattr(644,root,root,755)
295 %attr(755,root,root) /usr/bin/vim.ncurses
296 %attr(755,root,root) /usr/bin/rvim
297 %attr(755,root,root) %ghost /usr/bin/vim
298
299 %files static
300 %defattr(644,root,root,755)
301 %attr(755,root,root) /bin/*
302 %attr(755,root,root) /usr/bin/vi
303
304 %files athena
305 %defattr(644,root,root,755)
306 %attr(755,root,root) /usr/X11R6/bin/gvim.athena
307 %attr(755,root,root) /usr/X11R6/bin/rgvim
308 %attr(755,root,root) /usr/X11R6/bin/rgview
309 /etc/X11/wmconfig/gvim
310 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
311 %attr(755,root,root) %ghost /usr/bin/vim
312
313 %files lesstif 
314 %defattr(644,root,root,755)
315 %attr(755,root,root) /usr/X11R6/bin/gvim.lesstif
316 %attr(755,root,root) /usr/X11R6/bin/rgvim
317 %attr(755,root,root) /usr/X11R6/bin/rgview
318 /etc/X11/wmconfig/gvim
319 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
320 %attr(755,root,root) %ghost /usr/bin/vim
321
322 %files gtk
323 %defattr(644,root,root,755)
324 %attr(755,root,root) /usr/X11R6/bin/gvim.gtk
325 %attr(755,root,root) /usr/X11R6/bin/rgvim
326 %attr(755,root,root) /usr/X11R6/bin/rgview
327 /etc/X11/wmconfig/gvim
328 %attr(755,root,root) %ghost /usr/X11R6/bin/gvim
329 %attr(755,root,root) %ghost /usr/bin/vim
330
331 %files rt
332 %defattr(644,root,root,755)
333
334 %attr(755,root,root) /usr/bin/vimtutor
335
336 /usr/man/man1/*
337
338 %dir /usr/share/vim
339 /usr/share/vim/macros
340
341 %dir /usr/share/vim/syntax
342 /usr/share/vim/syntax/*.vim
343
344 /usr/share/vim/tutor
345 /usr/share/vim/bugreport.vim
346 /usr/share/vim/filetype.vim
347 /usr/share/vim/scripts.vim
348 /usr/share/vim/mswin.vim
349 /usr/share/vim/ftoff.vim
350 /usr/share/vim/doc
351
352 %config %verify(not size mtime md5) /usr/share/vim/menu.vim
353 %config %verify(not size mtime md5) /usr/share/vim/vimrc
354
355 %changelog
356 * Wed Apr 21 1999 Artur Frysiak <wiget@pld.org.pl>
357   [5.4h-1]
358 - build on rpm 3  
359
360 * Fri Mar 12 1999 Artur Frysiak <wiget@pld.org.pl>
361   [5.4f-1]
362 - removed  vim-hold_gui_events.patch and vim-CMDLINE_COMPL.patch
363 - removed Requires: lesstif gtk+
364 - added --enable-gpm to configure
365
366 * Tue Feb 23 1999 Artur Frysiak <wiget@usa.net>
367   [5.4e-1d]
368 - removed vim-clip.patch (now in 5.4e)
369 - added vim-CMDLINE_COMPL.patch (allow compile with --enable-min-features)
370 - added %%defattr macro to all subpackages
371
372 * Thu Feb 04 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
373   [5.4d-2d]
374 - symlink /usr/bin/vi -> /bin/vi
375 - doc package moved to /usr/share/vim/doc (crazy cpio .. ;)
376
377 * Tue Feb  2 1999 Artur Frysiak <wiget@usa.net>
378   [5.4d-1d]
379 - upgraded to 5.4d
380 - now /usr/share/vim/doc is symlink to /usr/doc/%{name}-rt-%{version}
381 - added missingok option to wmconfig files
382
383 * Wed Jan 13 1999 Artur Frysiak <wiget@usa.net>
384   [5.4c-1d]
385 - upgraded to 5.4c
386 - added gtk subpackage
387 - using %%{version} makro in Summary tags
388 - some chenges in %%build section
389 - changed Group to Applications/Editors/Vim
390
391 * Sun Dec 27 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
392   [5.3-4d]
393 - fixed some errors in rt subpackage. 
394   by Ziemek Borowski <ziembor@mail.ceu.edu.pl>
395 - fixed etcdir in vim-static subpackage.
396
397 * Thu Nov 12 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
398   [5.3-2d]
399 - added /usr/share/vim/doc/{help.txt,tags} to rt subpackage (was missing)
400
401 * Sun Oct 04 1998 Marcin Korzonek <mkorz@shadow.eu.org>
402   [5.3-1]
403 - completely rewritten spec, added 4 subpackages
404
405 * Thu Aug 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
406   [5.0-1d]
407 - build against glibc-2.1,
408 - translation modified for pl,
409 - added build-root support,
410 - added %changelog,
411 - fixed permissions fo ELF binaries.
This page took 0.053639 seconds and 4 git commands to generate.