]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
- updated to 5.6
[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.6
5 Release:        2
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 Patch:          vim-fhs.patch
15 BuildRequires:  ncurses-devel
16 BuildRequires:  ncurses-static
17 BuildRequires:  gpm-devel
18 BuildRequires:  Xaw3d-devel
19 BuildRequires:  lesstif-devel
20 BuildRequires:  gtk+-devel
21 BuildRequires:  glib-devel
22 Requires:       %{name}-rt = %{version}
23 Obsoletes:      vim-enhanced
24 Buildroot:      /tmp/%{name}-%{version}-root
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 LessTif
73 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki LessTif
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-lesstif
88 Summary:        Vim for X Window built with LessTif
89 Summary(pl):    Vim dla X Window korzystaj±cy z biblioteki LessTif
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-lesstif
96 The classic Unix text editor now also under X Window System! This version 
97 is build with LessTif.   
98
99 %description -n gvim-lesstif -l pl
100 Wersja edytora Vim pracuj±ca w ¶rodowisku X Window z wykorzystaniem 
101 biblioteki LessTif.   
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 %patch -p1
122
123 %build
124 cd src
125
126 LDFLAGS="-s"; export LDFLAGS
127 %configure \
128         --disable-gui \
129         --without-x \
130         --disable-perlinterp \
131         --disable-pythoninterp \
132         --disable-tclinterp \
133         --disable-cscope \
134         --enable-gmp \
135         --enable-max-features \
136         --with-tlib=ncurses 
137 make vim
138 mv vim vim.ncurses
139
140 make distclean
141 LDFLAGS="-static -s"; export LDFLAGS
142 %configure \
143         --disable-gui \
144         --without-x \
145         --disable-perlinterp \
146         --disable-pythoninterp \
147         --disable-tclinterp \
148         --disable-cscope \
149         --disable-gpm \
150         --disable-multibyte \
151         --enable-min-features \
152         --datadir=/etc \
153         --with-tlib=tinfo
154 make vim
155 make xxd/xxd
156 mv vim vim.static
157 mv xxd/xxd xxd.static
158
159 make distclean
160 LDFLAGS="-s"; export LDFLAGS
161 %configure \
162         --enable-max-features \
163         --enable-gui=athena \
164         --with-x \
165         --disable-perlinterp \
166         --disable-pythoninterp \
167         --disable-tclinterp \
168         --disable-cscope \
169         --disable-gpm
170 make vim
171 mv vim gvim.athena
172
173 make distclean
174 LDFLAGS="-s"; export LDFLAGS
175 %configure \
176         --enable-max-features \
177         --enable-gui=motif \
178         --with-x \
179         --disable-perlinterp \
180         --disable-pythoninterp \
181         --disable-tclinterp \
182         --disable-cscope \
183         --disable-gpm
184 make vim
185 mv vim gvim.lesstif
186  
187 make distclean
188 LDFLAGS="-s"; export LDFLAGS
189 %configure \
190         --enable-max-features \
191         --enable-gui=gtk \
192         --with-x \
193         --disable-perlinterp \
194         --disable-pythoninterp \
195         --disable-tclinterp \
196         --disable-cscope \
197         --disable-gpm
198 make vim
199 mv vim gvim.gtk
200
201 cd ..
202
203 %install
204 rm -rf $RPM_BUILD_ROOT
205 install -d $RPM_BUILD_ROOT{%{_var}/state/vim,%{_sysconfdir},%{_prefix}/{bin,share/{vim/{doc,tutor},man/man1}}} \
206         $RPM_BUILD_ROOT/{bin,usr/X11R6/{bin,share/applnk/Applications/Editors}}
207
208 install -s src/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
209
210 install -s src/vim.static  $RPM_BUILD_ROOT/bin/vi
211 install -s src/xxd.static  $RPM_BUILD_ROOT/bin/xxd
212
213 install -s src/gvim.athena  $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.athena
214 install -s src/gvim.lesstif $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.lesstif
215 install -s src/gvim.gtk     $RPM_BUILD_ROOT/usr/X11R6/bin/gvim.gtk
216  
217 install    src/vimtutor    $RPM_BUILD_ROOT%{_bindir}/vimtutor
218
219 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
220
221 install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
222 install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
223
224 install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
225
226 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
227 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
228 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
229 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
230 echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
231
232 cp -a runtime/macros $RPM_BUILD_ROOT%{_datadir}/vim/macros
233 cp -a runtime/syntax $RPM_BUILD_ROOT%{_datadir}/vim/syntax
234 cp -a runtime/tutor/tutor  $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor
235
236 install runtime/*.vim $RPM_BUILD_ROOT%{_datadir}/vim
237 mv $RPM_BUILD_ROOT%{_datadir}/vim/vimrc_example.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimrc
238 mv $RPM_BUILD_ROOT%{_datadir}/vim/gvimrc_example.vim $RPM_BUILD_ROOT%{_datadir}/vim/gvimrc
239
240 install runtime/doc/*.txt $RPM_BUILD_ROOT%{_datadir}/vim/doc
241 install runtime/doc/tags  $RPM_BUILD_ROOT%{_datadir}/vim/doc
242
243 touch $RPM_BUILD_ROOT/usr/X11R6/bin/gvim
244
245 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
246
247 ln -sf vi $RPM_BUILD_ROOT/bin/ex
248 ln -sf vi $RPM_BUILD_ROOT/bin/view
249 ln -sf vi $RPM_BUILD_ROOT/bin/rview
250
251 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgvim
252 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/gview
253 ln -sf gvim $RPM_BUILD_ROOT/usr/X11R6/bin/rgview
254  
255 install %{SOURCE3} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Applications/Editors
256
257 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
258
259 %post -n gvim-athena
260 ln -sf /usr/X11R6/bin/gvim.athena /usr/X11R6/bin/gvim
261
262 %post -n gvim-lesstif
263 ln -sf /usr/X11R6/bin/gvim.lesstif /usr/X11R6/bin/gvim
264
265 %post -n gvim-gtk
266 ln -sf /usr/X11R6/bin/gvim.gtk /usr/X11R6/bin/gvim
267
268 %clean
269 rm -rf $RPM_BUILD_ROOT
270
271 %files
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_bindir}/vim
274 %attr(755,root,root) %{_bindir}/rvim
275
276 %files static
277 %defattr(644,root,root,755)
278 %attr(755,root,root) /bin/*
279
280 %{_mandir}/man1/vi.1*
281 %{_mandir}/man1/ex.1*
282 %{_mandir}/man1/xxd.1*
283 %{_mandir}/man1/view.1*
284 %{_mandir}/man1/rview.1*
285
286 %files -n gvim-athena
287 %defattr(644,root,root,755)
288 %attr(755,root,root) /usr/X11R6/bin/gvim.athena
289 %attr(755,root,root) /usr/X11R6/bin/rgvim
290 %attr(755,root,root) /usr/X11R6/bin/rgview
291 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
292 /usr/X11R6/share/applnk/Applications/Editors/gvim.desktop
293
294 %files -n gvim-lesstif
295 %defattr(644,root,root,755)
296 %attr(755,root,root) /usr/X11R6/bin/gvim.lesstif
297 %attr(755,root,root) /usr/X11R6/bin/rgvim
298 %attr(755,root,root) /usr/X11R6/bin/rgview
299 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
300 /usr/X11R6/share/applnk/Applications/Editors/gvim.desktop
301
302 %files -n gvim-gtk
303 %defattr(644,root,root,755)
304 %attr(755,root,root) /usr/X11R6/bin/gvim.gtk
305 %attr(755,root,root) /usr/X11R6/bin/rgvim
306 %attr(755,root,root) /usr/X11R6/bin/rgview
307 %attr(755,root,root) %verify(not link) /usr/X11R6/bin/gvim
308 /usr/X11R6/share/applnk/Applications/Editors/gvim.desktop
309
310 %files rt
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_bindir}/vimtutor
313 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/menu.vim
314 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/vimrc
315 %config(noreplace) %verify(not size mtime md5) %{_datadir}/vim/gvimrc
316
317 %dir %{_var}/state/vim
318
319 %dir %{_datadir}/vim
320 %{_datadir}/vim/doc
321 %{_datadir}/vim/macros
322 %{_datadir}/vim/syntax
323 %{_datadir}/vim/tutor
324
325 %{_datadir}/vim/bugreport.vim
326 %{_datadir}/vim/filetype.vim
327 %{_datadir}/vim/scripts.vim
328 %{_datadir}/vim/mswin.vim
329 %{_datadir}/vim/ftoff.vim
330 %{_datadir}/vim/optwin.vim
331
332 %{_mandir}/man1/vim.*
333 %{_mandir}/man1/rvim.*
This page took 0.077192 seconds and 4 git commands to generate.