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