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