]> git.pld-linux.org Git - packages/vim.git/blob - vim.spec
add python3 bcond
[packages/vim.git] / vim.spec
1 #
2 # Conditional build:
3 %bcond_without  static          # don't build static version
4 %bcond_without  athena          # don't build Athena Widgets-based gvim
5 %bcond_without  motif           # don't build Motif-based gvim
6 %bcond_without  gtk             # don't build GTK+-based gvim support
7 %bcond_without  gtk3            # use GTK+ 2.x instead of 3.x
8 %bcond_without  gnome           # don't build GNOME-based gvim support
9 %bcond_without  heavy           # don't build heavy (full-featured GNOME-based gvim/vim)
10 %bcond_without  gui             # don't build any GUI
11 %bcond_without  light           # don't build light (minimal, ncurses, but not static)
12 %bcond_without  x11             # don't build vimx (non-GUI with X11 clipboard support)
13 %bcond_with     lua             # with Lua interp in vim package
14 %bcond_with     perl            # with Perl interp in vim package
15 %bcond_with     python          # with Python 2 interp in vim package
16 %bcond_with     python3         # with Python 3 interp in vim package
17 %bcond_with     ruby            # with Ruby interp in vim package
18 %bcond_with     tcl             # with Tcl interp
19 %bcond_without  selinux         # without selinux support
20 %bcond_without  home_etc        # without home_etc support
21
22 %if %{without gui}
23 %undefine       with_athena
24 %undefine       with_motif
25 %undefine       with_gtk
26 %undefine       with_gnome
27 %endif
28
29 # Command to check for latest patch:
30 # wget ftp://ftp.vim.org/pub/editors/vim/patches/8.0/MD5SUMS -O - | tail -n1 | awk '{print $2}'
31 # VCS Commits: https://github.com/vim/vim/commits/master
32
33 %define         ver             8.2.0011
34 %define         rel             1
35 Summary:        Vi IMproved - a Vi clone
36 Summary(de.UTF-8):      VIsual editor iMproved
37 Summary(es.UTF-8):      Editor visual incrementado
38 Summary(fr.UTF-8):      Editeur VIM : VIsual editor iMproved
39 Summary(hu.UTF-8):      Vi IMproved - a Vi szerkesztő bővítése
40 Summary(pl.UTF-8):      Vi IMproved - klon edytora Vi
41 Summary(pt_BR.UTF-8):   Editor visual incrementado
42 Summary(ru.UTF-8):      Visual editor IMproved - Единственно Правильный Редактор :)
43 Summary(tr.UTF-8):      Gelişmiş bir vi sürümü
44 Summary(uk.UTF-8):      Visual editor IMproved - Єдино Вірний Редактор :)
45 Name:           vim
46 Version:        %{ver}
47 # keep macro for release, otherwise people tend to increment Epoch instead
48 Release:        %{rel}
49 Epoch:          4
50 License:        Charityware
51 Group:          Applications/Editors/Vim
52 #Source0:       ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
53 Source0:        https://github.com/vim/vim/archive/v%{ver}.tar.gz
54 # Source0-md5:  9ff52728337b4053fcf11f2a65a19296
55 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
56 # Source1-md5:  bc4d1e115ca506ad7751b9bd2b773a7f
57 Source2:        http://skawina.eu.org/mikolaj/usr_doc_pl.zip
58 # Source2-md5:  ff96284b1c913d55cf0877839b34d490
59 Source15:       update-source.sh
60 # syntax files
61 # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.5)
62 Source20:       javascript.vim
63 # http://www.vim.org/scripts/script.php?script_id=447 (20040206)
64 Source22:       exim.vim
65 # color schemes
66 # http://www.vim.org/scripts/script.php?script_id=415 (1.15)
67 Source30:       zenburn.vim
68 # http://www.vim.org/scripts/script.php?script_id=92 (1.0)
69 Source31:       borland.vim
70 # http://www.vim.org/scripts/script.php?script_id=368 (1.2.5)
71 Source32:       oceandeep.vim
72 # http://www.vim.org/scripts/script.php?script_id=1464 (2.6.3)
73 Source33:       moria.vim
74 Patch0:         %{name}-sysconfdir.patch
75
76 Patch2:         %{name}-paths.patch
77 Patch3:         %{name}-no_libelf.patch
78
79 Patch5:         %{name}-awk.patch
80 Patch6:         %{name}-filetype_vim-perl_tests.patch
81 Patch7:         %{name}-apache.patch
82 Patch8:         %{name}-po-syntax.patch
83 Patch9:         %{name}-modprobe.patch
84 Patch10:        %{name}-doubleparenthesis.patch
85 Patch11:        %{name}-syntax-fstab.patch
86 Patch12:        010_all_%{name}-6.3-vixie.patch
87 Patch14:        020_all_%{name}-7.0-fstab-tmpfs-size.patch
88 Patch15:        021_all_%{name}-7.0-fstab-bogus-errors.patch
89 Patch17:        027_all_%{name}-7.0-automake-substitutions-93378.patch
90 Patch18:        %{name}-smarty.patch
91 Patch19:        %{name}-tutor-lessdeps.patch
92 Patch20:        %{name}-nagios.patch
93 Patch21:        %{name}-filetypes.patch
94 Patch22:        %{name}-man_installation.patch
95 Patch23:        %{name}-vimrc.patch
96 Patch24:        %{name}-syntax-exports.patch
97 Patch25:        sudoers-include.patch
98 Patch26:        %{name}-home_etc.patch
99 Patch27:        %{name}-autopaste.patch
100 Patch28:        %{name}-ft-cron.patch
101 Patch29:        %{name}-phpscript.patch
102 Patch30:        %{name}-pam.patch
103 Patch32:        %{name}-localedir.patch
104
105 Patch34:        %{name}-rtdir.patch
106 Patch35:        %{name}-ft-mib.patch
107 Patch36:        %{name}-ft-lib-udevrules.patch
108 Patch37:        %{name}-ft-mysql.patch
109 Patch38:        %{name}-ft-gyp.patch
110 Patch39:        %{name}-revert-7.4.165-noundo.patch
111 Patch40:        desktop.patch
112 Patch41:        %{name}-lua.patch
113 URL:            http://www.vim.org/
114 BuildRequires:  acl-devel
115 BuildRequires:  attr-devel
116 BuildRequires:  autoconf >= 2.12
117 BuildRequires:  gpm-devel
118 %if "%{pld_release}" == "ac"
119 %if %{with athena} || %{with x11}
120 BuildRequires:  XFree86-devel
121 %endif
122 BuildRequires:  gettext-devel
123 %else
124 BuildRequires:  gettext-tools
125 %{?with_athena:BuildRequires:   xorg-lib-libXaw-devel}
126 %if %{with x11} || %{with gui}
127 BuildRequires:  xorg-lib-libICE-devel
128 BuildRequires:  xorg-lib-libSM-devel
129 BuildRequires:  xorg-lib-libX11-devel
130 BuildRequires:  xorg-lib-libXt-devel
131 %endif
132 %endif
133 BuildRequires:  grep
134 %if %{with gtk} || %{with heavy}
135 %if %{with gtk3}
136 BuildRequires:  gtk+3-devel >= 3.0
137 %else
138 BuildRequires:  gtk+2-devel >= 2:2.6.0
139 %endif
140 %endif
141 BuildRequires:  libcanberra-devel
142 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.2.0.1}
143 %if %{with selinux} || %{with heavy}
144 BuildRequires:  libselinux-devel
145 %endif
146 %if %{with lua} || %{with heavy}
147 BuildRequires:  lua52-devel >= 5.2
148 %endif
149 %{?with_motif:BuildRequires:    motif-devel}
150 BuildRequires:  ncurses-devel
151 BuildRequires:  pkgconfig
152 %if %{with perl} || %{with heavy}
153 BuildRequires:  perl-devel
154 %endif
155 %if %{with python} || %{with heavy}
156 BuildRequires:  python-devel >= 2.3
157 %endif
158 %if %{with python3} || %{with heavy}
159 BuildRequires:  python3-devel
160 %endif
161 %if %{with python} || %{with python3} || %{with heavy}
162 BuildRequires:  rpm-pythonprov
163 %endif
164 BuildRequires:  rpm >= 4.4.9-56
165 BuildRequires:  rpmbuild(macros) >= 1.718
166 %if %{with ruby} || %{with heavy}
167 BuildRequires:  ruby-devel >= 1.6.0
168 %endif
169 %if %{with tcl} || %{with heavy}
170 BuildRequires:  tcl-devel >= 8.0
171 %endif
172 Obsoletes:      kvim
173 %if %{with static}
174 BuildRequires:  acl-static
175 BuildRequires:  attr-static
176 BuildRequires:  glibc-static
177 %{?with_selinux:BuildRequires:  libselinux-static}
178 BuildRequires:  ncurses-static
179 %else
180 Provides:       %{name}-static = %{epoch}:%{version}-%{release}
181 Obsoletes:      elvis-static
182 Obsoletes:      nvi
183 Obsoletes:      vi
184 Obsoletes:      vim-minimal
185 Obsoletes:      vim-static
186 %endif
187 BuildRequires:  unzip
188 Suggests:       %{name}-rt = %{epoch}:%{version}-%{release}
189 Provides:       vi-editor
190 Provides:       vi
191 Provides:       vim-editor = %{epoch}:%{version}-%{release}
192 Obsoletes:      vim-enhanced
193 Obsoletes:      vim-ispell
194 Obsoletes:      vim-plugin-multvals
195 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
196
197 # configure redefines it to =1
198 %define         filterout_cpp   -D_FORTIFY_SOURCE=[0-9]*
199 %define         filterout_c             -Wp,-D_FORTIFY_SOURCE=2
200
201 # that's example script
202 %define         _noautoreq      '/bin/csh'
203
204 # cflags get changed while configuring
205 %undefine       configure_cache
206
207 %description
208 Text editor similar to Vi. Important improvements: multiple windows,
209 multi-level undo, block highliting, folding, and many other.
210
211 %description -l cs.UTF-8
212 VIM je nový a vylepšený editor vycházející z klasického editoru vi. Vi
213 byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
214 populární. VIM je obohacený funkcemi jako: podpora více oken,
215 víceúrovňové undo, zvýrazňování bloků a řadu dalších užitečných
216 funkcí.
217
218 %description -l de.UTF-8
219 Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
220 des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
221 wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
222 Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
223 Standard-vi-Programm.
224
225 %description -l es.UTF-8
226 El editor Visual Mejorado es una versión actualizada y con nuevas
227 características adicionales del mundialmente famoso 'vi' que acompaña
228 prácticamente todos los sistemas UN*X. Posibilita trabajar con
229 múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
230 otras muchas características del 'vi'.
231
232 %description -l fr.UTF-8
233 L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
234 caractéristiques supplémentaires de l'éditeur « vi » fourni avec
235 pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
236 mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
237 blocs et autres caractéristiques au vi de base.
238
239 %description -l hu.UTF-8
240 A Vi-hez hasonló texteditor. Néhány fontos bővítés: ablakkezelés,
241 többszintű undo, blokk kiemelés, kódrészletek összecsukása, és még sok
242 más...
243
244 %description -l id.UTF-8
245 VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
246 diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
247 pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
248 mengembangkan vi dengan menambah kemampuan baru seperti: multiple
249 windows, multi-level undo, block highlighting, dll.
250
251 %description -l is.UTF-8
252 VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
253 ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
254 vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
255 gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
256 fleira.
257
258 %description -l it.UTF-8
259 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
260 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
261 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
262 finestre multiple, funzione "annulla" multilivello, evidenziazione dei
263 blocchi e altro.
264
265 %description -l pl.UTF-8
266 Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
267 oknach, wielopoziomowa opcja 'cofnij', bloki, podświetlanie składni,
268 folding i wiele innych.
269
270 %description -l pt.UTF-8
271 O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
272 editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
273 o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
274 novas potencialidades: janelas múltiplas, anulação multi-nível, realce
275 de blocos e mais.
276
277 %description -l pt_BR.UTF-8
278 O editor Vim (Vi Enhanced) é um versão atualizada e com novas
279 características do mundialmente famoso 'vi' que acompanha praticamente
280 todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
281 janelas, vários níveis de desfazer, blocos enfatizados, e muitas
282 outras características do 'vi'.
283
284 %description -l ru.UTF-8
285 VIsual editor iMproved - это обновленный и значительно улучшенный клон
286 редактора vi, который поставляется практически со всеми
287 UN*X-системами. В этой версии есть многоуровневый откат, выделение
288 блоков, синтаксическая подсветка и много другого...
289
290 %description -l sk.UTF-8
291 VIM (VIsual editor iMproved) je novšia a vylepšená verzia editoru vi.
292 Vi bol prvým skutočne obrazovkovo orientovaným editorom pre UNIX a
293 stále je veľmi populárny. VIM má oproti vi vylepšenia ako: prácu s
294 viacerými oknami, viacnásobné undo, zvýrazňovanie blokov textu a iné.
295
296 %description -l sv.UTF-8
297 VIM (Vi IMproved) är en uppdaterad och förbättrad version av
298 redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
299 till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
300 nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
301 ändå.
302
303 %description -l tr.UTF-8
304 Standart vi metin düzenleyicisinin gelişmiş hali; daha fazla komut,
305 birden fazla pencere desteği ve blok işaretleme yetenekleri içerir.
306
307 %description -l uk.UTF-8
308 VIsual editor iMproved - це оновлений та значно поліпшений клон
309 редактора vi, який поставляється практично зі всіма UN*X-системами. В
310 цій версії є багаторівневий відкат, виділення блоків, синтаксична
311 підсвітка та багато іншого...
312
313 %package -n xxd
314 Summary:        Utility to convert files to hexdump or do the reverse
315 Summary(pl.UTF-8):      Narzędzie do zamiany plików na postać szesnastkową i odwrotnie
316 Group:          Applications/Editors/Vim
317
318 %description -n xxd
319 xxd creates a hex dump of a given file or standard input. It can also
320 convert a hex dump back to its original binary form. Like uuencode and
321 uudecode it allows the transmission of binary data in a `mail-safe'
322 ASCII representation, but has the advantage of decoding to standard
323 output. Moreover, it can be used to perform binary file patching.
324
325 %description -n xxd -l pl.UTF-8
326 xxd tworzy szesnastkowy zapis pliku podanego na standardowe wejście.
327 Może także przekonwertować taki zapis na oryginalną, binarną postać.
328 Podobnie jak uuencode i uudecode pozwala na przesyłanie danych
329 binarnych w postaci ASCII, ale ma możliwość dekodowania na standardowe
330 wyjście. Co więcej, może być użyty do modyfikowania plików binarnych.
331
332 %package heavy
333 Summary:        Full featured build of Vim
334 Summary(hu.UTF-8):      A Vim teljeskörű szolgáltatásait nyújtó verzió
335 Summary(pl.UTF-8):      W pełni funkcjonalna wersja Vima
336 Group:          Applications/Editors/Vim
337 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
338 Provides:       vi-editor
339 Provides:       vi
340 Provides:       vim-editor = %{epoch}:%{version}-%{release}
341 Obsoletes:      vim-enhanced
342 Obsoletes:      vim-ispell
343 Obsoletes:      vim-plugin-multvals
344
345 %description heavy
346 This package provides full featured version of Vim, which includes
347 support for Perl, Python, Ruby and Tcl scripting.
348
349 %description heavy -l hu.UTF-8
350 Ez a csomag a Vim teljeskörű szolgáltatásait nyújtó verzióját
351 tartalmazza, amelyben benne van a Perl, Python, Ruby és Tcl támogatás.
352
353 %description heavy -l pl.UTF-8
354 Pakiet ten dostarcza w pełni funkcjonalną wersję Vima, czyli
355 zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl.
356
357 %package light
358 Summary:        Minimal build of Vim
359 Summary(pl.UTF-8):      Minimalna wersja vima
360 Group:          Applications/Editors/Vim
361 Provides:       vi-editor
362 Provides:       vi
363 Provides:       vim-editor = %{epoch}:%{version}-%{release}
364
365 %description light
366 This package provides light featured version of Vim.
367
368 %description light -l pl.UTF-8
369 Pakiet ten dostarcza minimalną wersję Vima.
370
371 %package -n vimx
372 Summary:        Vi IMproved - a Vi clone
373 Summary(pl.UTF-8):      Vi IMproved - klon edytora Vi
374 Group:          X11/Applications/Editors
375 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
376 Provides:       vi-editor
377 Provides:       vi
378 Provides:       vim-editor = %{epoch}:%{version}-%{release}
379 Obsoletes:      vim-enhanced
380 Obsoletes:      vim-ispell
381 Obsoletes:      vim-plugin-multvals
382
383 %description -n vimx
384 This package provides console version of Vim, with support for basic
385 X11 features like system clipboard.
386
387 %description -n vimx -l pl.UTF-8
388 Pakiet ten dostarcza konsolową wersję Vima, posiadającą wsparcie dla
389 podstawowych funckcji X11, takich jak systemowy schowek.
390
391 %package static
392 Summary:        Statically linked Vim
393 Summary(hu.UTF-8):      A Vim statikus verziója
394 Summary(pl.UTF-8):      Statycznie skonsolidowany Vim
395 Group:          Applications/Editors/Vim
396 Provides:       vi-editor
397 Provides:       vi
398 Provides:       vim-editor = %{epoch}:%{version}-%{release}
399 Obsoletes:      elvis-static
400 Obsoletes:      nvi
401 Obsoletes:      vim-minimal
402
403 %description static
404 Text editor similar to Vi. This version is built with minimal feature
405 and is installed in /bin as a rescue tool. The installation of this
406 package is STRONGLY recommended.
407
408 %description static -l hu.UTF-8
409 Vi-hez hasonló text editor. Ez a verzió a legminimálisabb
410 szolgáltatásokat nyújtja, és a /bin könyvtárba települ, mint egy mentő
411 eszköz. Ennek a csomagnak a telepítése ERŐSEN javallott.
412
413 %description static -l pl.UTF-8
414 Edytor tekstu podobny do Vi. Ta wersja została skonsolidowana
415 statycznie i posiada minimalną ilość dodatków. Jest instalowana w /bin
416 jako narzędzie dla administratora. Instalacja tego pakietu jest MOCNO
417 zalecana, może on pomóc Ci uratować system w czasie awarii.
418
419 %description static -l ru.UTF-8
420 Пакет vim-static устанавливает разновидность vim как /bin/vi, что
421 удобно для запуска даже когда смонтирована только корневая файловая
422 система.
423
424 %description static -l uk.UTF-8
425 Пакет vim-static встановлює різновид vim як /bin/vi, що зручно для
426 запуску навіть тоді, коли змонтована тільки корньова файлова система.
427
428 %package rt
429 Summary:        Vim runtime files
430 Summary(cs.UTF-8):      Soubory nezbytné pro libovolný editor VIM
431 Summary(da.UTF-8):      Fælles filer som er nødvendige for enhver version af VIM editoren
432 Summary(de.UTF-8):      Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
433 Summary(es.UTF-8):      Ficheros comunes a todas las versiones de VIM
434 Summary(fr.UTF-8):      Fichiers communs indispensables pour toute version de l'éditeur VIM
435 Summary(hu.UTF-8):      A Vim futásidejű fájljai
436 Summary(id.UTF-8):      File umum yang dibutuhkan oleh semua versi editor VIM
437 Summary(is.UTF-8):      Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
438 Summary(it.UTF-8):      File comuni necessari per tutte le versioni dell'editor VIM
439 Summary(ja.UTF-8):      すべてのバージョンの VIM エディタで必要とされる共通ファイル
440 Summary(nb.UTF-8):      Felles filer som er nødvendige for enhver versjon av VIM editoren
441 Summary(pl.UTF-8):      Pliki przydatne dla edytora Vim
442 Summary(pt.UTF-8):      Os ficheiros comuns necessários para qualquer versão do editor VIM
443 Summary(ru.UTF-8):      Файлы, требуемые для любой версии редактора vim
444 Summary(sk.UTF-8):      Spoločné súbory potrebné pre všetky verzie editoru VIM
445 Summary(sl.UTF-8):      Skupne datoteke, potrebne s katerokoli različico urejevalnika VIM
446 Summary(sv.UTF-8):      De gemensamma filerna som behövs av alla versioner av redigeraren VIM
447 Summary(uk.UTF-8):      Файли, потрібні для будь-якої версії редактору vim
448 Summary(zh_CN.UTF-8):   任何版本的 VIM 编辑器所需的公用文件。
449 Group:          Applications/Editors/Vim
450 Requires:       rpm-whiteout >= 1.3
451 Requires:       vim-plugin-securemodelines
452 Obsoletes:      gvim-bonobo
453 Obsoletes:      vim-common
454 Obsoletes:      vim-syntax-docker < 1.10.1
455 Obsoletes:      vim-syntax-gitcommit
456 Obsoletes:      vim-syntax-golang <= 1.3.3-1
457 Obsoletes:      vim-syntax-lxc-docker <= 0.9.0-1
458 Obsoletes:      vim-syntax-upstart
459 %if "%{_rpmversion}" >= "5"
460 BuildArch:      noarch
461 %endif
462
463 %description rt
464 This package contains macros, documentation, syntax configuration and
465 manual pages for Vim. If you want to take advantage of Vim more
466 powerful features, you should install this package.
467
468 %description rt -l cs.UTF-8
469 Tento balíček obsahuje společné soubory pro všechny další balíčky s
470 vim.
471
472 %description rt -l de.UTF-8
473 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
474 Ausführung benötigt.
475
476 %description rt -l fr.UTF-8
477 Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
478 VIM a besoin pour fonctionner.
479
480 %description rt -l hu.UTF-8
481 Ez a csomag makrókat, dokumentációt, nyelvi konfigurációt és kézikönyv
482 oldalakat tartalmaz Vim-hez. Ha ki akarod használni a Vim
483 lehetőségeit, érdemes telepítened ezt a csomagot.
484
485 %description rt -l id.UTF-8
486 Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
487 berjalan.
488
489 %description rt -l is.UTF-8
490 vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
491 til að keyra.
492
493 %description rt -l it.UTF-8
494 Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
495 per poter funzionare.
496
497 %description rt -l pl.UTF-8
498 W tym pakiecie znajdują się makra, pliki konfiguracyjne i strony
499 podręcznika dla edytora Vim. Aby korzystać z zaawansowanych możliwości
500 Vima, należy zainstalować ten pakiet.
501
502 %description rt -l pt.UTF-8
503 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
504 irão necessitar para correr.
505
506 %description rt -l ru.UTF-8
507 Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
508 для работы любой программы vim.
509
510 %description rt -l sk.UTF-8
511 Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
512 funkciu každá verzia editoru VIM.
513
514 %description rt -l sv.UTF-8
515 Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
516 köra.
517
518 %description rt -l uk.UTF-8
519 Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
520 для роботи будь-якої програми vim.
521
522 %package rt-extras
523 Summary:        Vim runtime extra files
524 Summary(pl.UTF-8):      Dodatkowe pliki uruchomieniowe Vima
525 Group:          Applications/Editors/Vim
526 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
527 %if "%{_rpmversion}" >= "5"
528 BuildArch:      noarch
529 %endif
530
531 %description rt-extras
532 This package contains more runtime extra files, not really useful. If
533 you want to take full advantage of Vim more powerful features, you
534 should install this package.
535
536 %description rt-extras -l pl.UTF-8
537 Ten pakiet zawiera dodatkowe pliki uruchomieniowe, nie tak bardzo
538 przydatne. Aby korzystać ze wszystkich możliwości Vima, należy
539 zainstalować ten pakiet.
540
541 %package doc
542 Summary:        Context Vim documentation
543 Summary(pl.UTF-8):      Dokumentacja kontekstowa do Vima
544 Group:          Applications/Editors/Vim
545 Requires(post,postun):  /usr/bin/vim
546 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
547 %if "%{_rpmversion}" >= "5"
548 BuildArch:      noarch
549 %endif
550
551 %description doc
552 This package contains Vim documentation accessible from vim itself
553 using :help command.
554
555 %description doc -l pl.UTF-8
556 Ten pakiet zawiera dokumentację do Vima dostępną z poziomu samego vima
557 za pomocą polecenia :help.
558
559 %package spell-en
560 Summary:        English dictionaries for VIMspell
561 Summary(pl.UTF-8):      Angielskie słowniki dla VIMspella
562 Group:          Applications/Editors/Vim
563 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
564 %if "%{_rpmversion}" >= "5"
565 BuildArch:      noarch
566 %endif
567
568 %description spell-en
569 English dictionaries for VIMspell.
570
571 %description spell-en -l pl.UTF-8
572 Angielskie słowniki dla VIMspella.
573
574 %package tutor
575 Summary:        Vim tutorial
576 Summary(hu.UTF-8):      Vim tutorial
577 Summary(pl.UTF-8):      Samouczek do Vima
578 Group:          Applications/Editors/Vim
579 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
580 Requires:       mktemp
581 Requires:       vim-editor = %{epoch}:%{version}-%{release}
582 %if "%{_rpmversion}" >= "5"
583 BuildArch:      noarch
584 %endif
585
586 %description tutor
587 This package contains Vim tutorial.
588
589 %description tutor -l hu.UTF-8
590 Ez a csomag a vimtutor-t tartalmazza, amely egy gyakorlat-orientált
591 bevezető a Vim-hez.
592
593 %description tutor -l pl.UTF-8
594 Ten pakiet zawiera samouczek do Vima.
595
596 %package -n gvim-athena
597 Summary:        Vim for X Window built with Athena
598 Summary(hu.UTF-8):      A Vim X Window verziója, az Athena felhasználásával
599 Summary(pl.UTF-8):      Vim dla X Window korzystający z biblioteki Athena
600 Group:          Applications/Editors/Vim
601 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
602 Requires:       iconv
603 Provides:       gvim
604 Provides:       vi-editor
605 Provides:       vim-editor = %{epoch}:%{version}-%{release}
606 Obsoletes:      vim-X11
607
608 %description -n gvim-athena
609 The classic Unix text editor now also under X Window System! This
610 version is built with Athena Widget Set.
611
612 %description -n gvim-athena -l hu.UTF-8
613 A Vim X Window verziója, az Athena Widgetkészlet felhasználásával.
614
615 %description -n gvim-athena -l pl.UTF-8
616 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
617 biblioteki Athena Widget Set.
618
619 %description -n gvim-athena -l ru.UTF-8
620 Этот пакет представляет собой версию VIM, собранную с библиотеками
621 Athena Widget Set, что позволяет запускать VIM как приложение X Window
622 System - с полностью графическим интерфейсом и поддержкой мыши.
623
624 %description -n gvim-athena -l uk.UTF-8
625 Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
626 Set, що дозволяє запускати VIM як прикладну програму X Window System -
627 з повністю графічним інтерфейсом та підтримкою миші.
628
629 %package -n gvim-motif
630 Summary:        Vim for X Window System built with Motif
631 Summary(hu.UTF-8):      A Vim X Window verziója, a Motif felhasználásával
632 Summary(pl.UTF-8):      Vim dla systemu X Window korzystający z biblioteki Motif
633 Group:          Applications/Editors/Vim
634 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
635 Requires:       iconv
636 Provides:       gvim
637 Provides:       vi-editor
638 Provides:       vim-editor = %{epoch}:%{version}-%{release}
639 Obsoletes:      vim-X11
640
641 %description -n gvim-motif
642 The classic Unix text editor now also under X Window System! This
643 version is built with Motif.
644
645 %description -n gvim-motif -l hu.UTF-8
646 A Vim X Window verziója, a Motif Widgetkészlet felhasználásával.
647
648 %description -n gvim-motif -l pl.UTF-8
649 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
650 biblioteki Motif.
651
652 %description -n gvim-motif -l ru.UTF-8
653 Этот пакет представляет собой версию VIM, собранную с библиотеками
654 Motif, что позволяет запускать VIM как приложение X Window System - с
655 полностью графическим интерфейсом и поддержкой мыши.
656
657 %description -n gvim-motif -l uk.UTF-8
658 Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
659 дозволяє запускати VIM як прикладну програму X Window System - з
660 повністю графічним інтерфейсом та підтримкою миші.
661
662 %package -n gvim-gtk
663 Summary:        Vim for X Window System built with GTK+
664 Summary(hu.UTF-8):      A Vim X Window verziója, a GTK+ felhasználásával
665 Summary(pl.UTF-8):      Vim dla systemu X Window korzystający z biblioteki GTK+
666 Group:          Applications/Editors/Vim
667 Requires(post,postun):  gtk-update-icon-cache
668 Requires(post,postun):  hicolor-icon-theme
669 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
670 Requires:       %{name}-rt-extras = %{epoch}:%{version}-%{release}
671 Requires:       iconv
672 Provides:       gvim
673 Provides:       vi-editor
674 Provides:       vim-editor = %{epoch}:%{version}-%{release}
675 Obsoletes:      vim-X11
676
677 %description -n gvim-gtk
678 The classic Unix text editor now also under X Window System! This
679 version is built with GTK+.
680
681 %description -n gvim-gtk -l hu.UTF-8
682 A Vim X Window verziója, a GTK+ Widgetkészlet felhasználásával.
683
684 %description -n gvim-gtk -l pl.UTF-8
685 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
686 biblioteki GTK+.
687
688 %description -n gvim-gtk -l ru.UTF-8
689 Этот пакет представляет собой версию VIM, собранную с библиотеками
690 GTK, что позволяет запускать VIM как приложение X Window System - с
691 полностью графическим интерфейсом и поддержкой мыши. Просто скажите
692 'gvim'...
693
694 %description -n gvim-gtk -l uk.UTF-8
695 Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
696 запускати VIM як прикладну програму X Window System - з повністю
697 графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
698
699 %package -n gvim-gnome
700 Summary:        Vim for X Window System built with GNOME
701 Summary(hu.UTF-8):      A Vim X Window verziója, a GNOME felhasználásával
702 Summary(pl.UTF-8):      Vim dla systemu X Window korzystający z biblioteki GNOME
703 Group:          Applications/Editors/Vim
704 Requires(post,postun):  gtk-update-icon-cache
705 Requires(post,postun):  hicolor-icon-theme
706 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
707 Requires:       %{name}-rt-extras = %{epoch}:%{version}-%{release}
708 Requires:       iconv
709 Provides:       gvim
710 Provides:       vi-editor
711 Provides:       vim-editor = %{epoch}:%{version}-%{release}
712 Obsoletes:      vim-X11
713
714 %description -n gvim-gnome
715 The classic Unix text editor now also under X Window System! This
716 version is build with GNOME.
717
718 %description -n gvim-gnome -l hu.UTF-8
719 A Vim X Window verziója, a GNOME felhasználásával.
720
721 %description -n gvim-gnome -l pl.UTF-8
722 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
723 bibliotek GNOME.
724
725 %description -n gvim-gnome -l ru.UTF-8
726 Этот пакет представляет собой версию VIM, собранную с библиотеками
727 GNOME, что позволяет запускать VIM как приложение X Window System - с
728 полностью графическим интерфейсом и поддержкой мыши.
729
730 %description -n gvim-gnome -l uk.UTF-8
731 Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
732 дозволяє запускати VIM як прикладну програму X Window System - з
733 повністю графічним інтерфейсом та підтримкою миші.
734
735 %package -n gvim-heavy
736 Summary:        Full featured build of Vim with X Window support
737 Summary(hu.UTF-8):      A gvim legteljesebb verziója
738 Summary(pl.UTF-8):      W pełni funkcjonalna wersja Vima z interfejsem dla X Window
739 Group:          Applications/Editors/Vim
740 Requires(post,postun):  gtk-update-icon-cache
741 Requires(post,postun):  hicolor-icon-theme
742 Requires:       %{name}-rt = %{epoch}:%{version}-%{release}
743 Requires:       %{name}-rt-extras = %{epoch}:%{version}-%{release}
744 Requires:       iconv
745 Provides:       gvim
746 Provides:       vi-editor
747 Provides:       vim-editor = %{epoch}:%{version}-%{release}
748 Obsoletes:      vim-X11
749
750 %description -n gvim-heavy
751 This package provides full featured version of Vim, which includes
752 support for Perl, Python, Ruby and Tcl scripting, as well as GTK+2
753 GUI.
754
755 %description -n gvim-heavy -l hu.UTF-8
756 A gvim legteljesebb verziója, Perl, Python, Ruby és Tcl támogatással.
757
758 %description -n gvim-heavy -l pl.UTF-8
759 Pakiet ten dostarcza w pełni funkcjonalną wersję Vima, czyli
760 zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl
761 jak również GUI GTK+2.
762
763 %prep
764 %setup -q
765
766 cp -p runtime/gvim.desktop gvim-athena.desktop
767 cp -p runtime/gvim.desktop gvim-gnome.desktop
768 cp -p runtime/gvim.desktop gvim-gtk.desktop
769 cp -p runtime/gvim.desktop gvim-motif.desktop
770
771 %patch0 -p1
772
773 %patch2 -p1
774 %patch3 -p1
775
776 %patch5 -p1
777 %patch6 -p1
778 %patch7 -p1
779 %patch8 -p1
780 %patch9 -p0
781 %patch10 -p1
782 %patch11 -p1
783 %patch12 -p1
784 %patch14 -p1
785 %patch15 -p1
786 %patch17 -p0
787 %patch18 -p1
788 %patch19 -p1
789 %patch20 -p1
790 %patch21 -p1
791 %patch22 -p1
792 %patch23 -p1
793 %patch24 -p1
794 %patch25 -p1
795 %{?with_home_etc:%patch26 -p1}
796
797 # autopaste patch - automatically switch to paste mode
798 # when `really fast typing' situation happens
799 %patch27 -p1
800 %patch28 -p1
801 %patch29 -p1
802 %patch30 -p1
803 %patch32 -p1
804
805 %patch34 -p1
806 %patch35 -p1
807 %patch36 -p1
808 %patch37 -p1
809 %patch38 -p1
810 %patch39 -p1
811 %patch40 -p1
812 %patch41 -p1
813
814 cp -p %{SOURCE20} runtime/syntax
815 cp -p %{SOURCE22} runtime/syntax
816 cp -p %{SOURCE30} runtime/colors
817 cp -p %{SOURCE31} runtime/colors
818 cp -p %{SOURCE32} runtime/colors
819
820 %{__unzip} -qd runtime/doc %{SOURCE2}
821
822 # not info files but some binary files for Amiga:
823 # Amiga Workbench drawer icon
824 # Amiga Workbench project icon
825 # Amiga Workbench tool icon
826 find -name '*.info' | xargs rm -v
827
828 %build
829 cd src
830 %{__autoconf}
831 # needed to prevent deconfiguring
832 cp -f configure auto
833 install -d bin
834
835 build() {
836         set -x
837         local target=$1
838         shift
839
840         %configure \
841 %if "%{pld_release}" == "ac"
842                 --with-tlib="ncurses -ltinfo"
843 %else
844                 --with-tlib="ncursesw"
845 %endif
846
847         %{__make} -j1 distclean
848         # add common options, can override (disable) if needed with args
849         %configure \
850                 --%{!?with_lua:dis}%{?with_lua:en}able-luainterp \
851                 --%{!?with_perl:dis}%{?with_perl:en}able-perlinterp \
852                 --%{!?with_python:dis}%{?with_python:en}able-pythoninterp \
853                 --%{!?with_python3:dis}%{?with_python3:en}able-python3interp \
854                 --%{!?with_ruby:dis}%{?with_ruby:en}able-rubyinterp \
855                 --%{!?with_tcl:dis}%{?with_tcl:en}able-tclinterp \
856                 %{!?with_selinux:--disable-selinux} \
857                 --enable-cscope \
858                 --enable-gpm \
859                 --enable-multibyte \
860                 --enable-nls \
861 %if "%{pld_release}" == "ac"
862                 --with-tlib="ncurses -ltinfo" \
863 %else
864                 --with-tlib="ncursesw" \
865 %endif
866                 --with-modified-by="PLD Linux Distribution" \
867                 --with-compiledby="PLD Linux Distribution" \
868                 "$@"
869
870         %{__make} vim
871         mv -f vim bin/$target
872 }
873
874 %if %{with static}
875 LDFLAGS="%{rpmldflags} -static"
876 build vim.static \
877         --disable-gui \
878         --without-x \
879         --with-features=small \
880         --disable-canberra \
881         --disable-luainterp \
882         --disable-perlinterp \
883         --disable-pythoninterp \
884         --disable-rubyinterp \
885         --disable-tclinterp \
886         --disable-cscope \
887         --disable-gpm \
888         --enable-multibyte \
889         --disable-nls
890
891 LDFLAGS="%{rpmldflags}"
892 %endif
893
894 %if %{with light}
895 build vim.light \
896         --disable-gui \
897         --without-x \
898         --with-features=small \
899         --disable-canberra \
900         --disable-luainterp \
901         --disable-perlinterp \
902         --disable-pythoninterp \
903         --disable-rubyinterp \
904         --disable-tclinterp \
905         --disable-cscope \
906         --disable-gpm \
907         --disable-nls
908 %endif
909
910 build vim.ncurses \
911         --disable-gui \
912         --without-x \
913         --disable-canberra \
914         --with-features=huge
915
916 %if %{with x11}
917 build vimx \
918         --disable-gui \
919         --with-x \
920         --disable-canberra \
921         --with-features=huge
922 %endif
923
924 %if %{with athena}
925 build gvim.athena \
926         --with-features=huge \
927         --enable-gui=athena \
928         --with-x \
929         --enable-fontset \
930         --disable-canberra \
931         --disable-gpm \
932         --without-gnome
933
934 %endif
935
936 %if %{with motif}
937 build gvim.motif \
938         --with-features=huge \
939         --enable-gui=motif \
940         --with-x \
941         --enable-multibyte \
942         --enable-fontset \
943         --disable-canberra \
944         --disable-gpm \
945         --without-gnome
946
947 %endif
948
949 %if %{with gtk}
950 build gvim.gtk \
951         --with-features=huge \
952 %if %{with gtk3}
953         --enable-gui=gtk3 \
954         --enable-gtk3-check \
955 %else
956         --enable-gui=gtk2 \
957         --enable-gtk2-check \
958 %endif
959         --with-x \
960         --disable-canberra \
961         --disable-gpm
962
963 %endif
964
965 %if %{with gnome}
966 build gvim.gnome \
967         --with-features=huge \
968         --enable-gui=gnome2 \
969         --enable-gtk2-check \
970         --enable-gnome-check \
971         --with-x \
972         --disable-gpm
973
974 %endif
975
976 # vim.heavy / gvim.heavy
977 %if %{with heavy}
978 build vim.heavy \
979         --with-features=huge \
980         --disable-gui \
981         --without-x \
982         --enable-luainterp \
983         --enable-perlinterp \
984         --enable-pythoninterp \
985         --enable-python3interp \
986         --enable-rubyinterp \
987         --enable-tclinterp \
988         --disable-canberra \
989         --disable-gpm
990
991 build gvim.heavy \
992         --with-features=huge \
993         --enable-gui=gnome2 \
994         --enable-gtk2-check \
995         --enable-gnome-check \
996         --with-x \
997         --enable-luainterp \
998         --enable-perlinterp \
999         --enable-pythoninterp \
1000         --enable-python3interp \
1001         --enable-rubyinterp \
1002         --enable-tclinterp \
1003         --disable-gpm
1004 %endif
1005
1006 %{__make} xxd/xxd languages
1007
1008 %install
1009 rm -rf $RPM_BUILD_ROOT
1010
1011 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
1012         $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim/ftdetect} \
1013         $RPM_BUILD_ROOT%{_desktopdir}
1014
1015 %{__make} -j1 install \
1016         DESTDIR=$RPM_BUILD_ROOT
1017
1018 # generic gvim from upstream, but we have bunch of subpackages
1019 %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/gvim.desktop
1020
1021 # fix nb/no
1022 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}
1023 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}.utf-8
1024 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.latin1.vim
1025 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.utf-8.vim
1026 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.latin1.vim
1027 %{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.utf-8.vim
1028
1029 # remove unsupported locales
1030 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ko.UTF-8
1031 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
1032 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.UTF-8
1033 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_TW.UTF-8
1034 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs.cp1250
1035 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.sjis
1036 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.euc-jp
1037 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.UTF-8
1038 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.cp1250
1039 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ru.cp1251
1040 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sk.cp1250
1041 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk.cp1251
1042 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.cp936
1043 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_zh_{cn,tw}.utf-8.vim
1044
1045 %find_lang %{name}
1046
1047 %{__rm} $RPM_BUILD_ROOT%{_bindir}/*
1048
1049 %if %{with static}
1050 install -p src/bin/vim.ncurses  $RPM_BUILD_ROOT%{_bindir}/vim
1051 install -p src/bin/vim.static   $RPM_BUILD_ROOT/bin/vi
1052 %else
1053 install -p src/bin/vim.ncurses  $RPM_BUILD_ROOT/bin/vi
1054 ln -sf /bin/vi          $RPM_BUILD_ROOT%{_bindir}/vim
1055 %endif
1056 %if %{with x11}
1057 install -p src/bin/vimx $RPM_BUILD_ROOT%{_bindir}/vimx
1058 %endif
1059 install -p src/xxd/xxd  $RPM_BUILD_ROOT%{_bindir}/xxd
1060 install -p src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
1061
1062 echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
1063 echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
1064
1065 # not supported directories
1066 %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/??.*/
1067
1068 mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/vimrc_example.vim,%{_sysconfdir}/vim/vimrc}
1069 mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/gvimrc_example.vim,%{_sysconfdir}/vim/gvimrc}
1070
1071 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
1072 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
1073 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
1074 ln -sf vi  $RPM_BUILD_ROOT/bin/view
1075 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
1076
1077 %if %{with athena}
1078 install -p src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
1079 cp -p gvim-athena.desktop $RPM_BUILD_ROOT%{_desktopdir}
1080 %endif
1081 %if %{with motif}
1082 install -p src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
1083 cp -p gvim-motif.desktop $RPM_BUILD_ROOT%{_desktopdir}
1084 %endif
1085 %if %{with gnome}
1086 install -p src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
1087 cp -p gvim-gnome.desktop $RPM_BUILD_ROOT%{_desktopdir}
1088 %endif
1089 %if %{with gtk}
1090 install -p src/bin/gvim.gtk     $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
1091 cp -p gvim-gtk.desktop $RPM_BUILD_ROOT%{_desktopdir}
1092 ln -sf gvim.gtk         $RPM_BUILD_ROOT%{_bindir}/gvim
1093 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/eview
1094 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/evim
1095 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gview
1096 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/gvimdiff
1097 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgview
1098 ln -sf gvim             $RPM_BUILD_ROOT%{_bindir}/rgvim
1099 %endif
1100 %if %{with heavy}
1101 install -p src/bin/vim.heavy    $RPM_BUILD_ROOT%{_bindir}
1102 install -p src/bin/gvim.heavy   $RPM_BUILD_ROOT%{_bindir}
1103 %endif
1104 %if %{with light}
1105 install -p src/bin/vim.light    $RPM_BUILD_ROOT%{_bindir}
1106 %endif
1107
1108 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
1109 mv $RPM_BUILD_ROOT{%{_iconsdir}/hicolor/48x48/apps,%{_pixmapsdir}}/gvim.png
1110
1111 # locolor scheme no longer supported
1112 %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/locolor
1113
1114 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1115
1116 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
1117 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
1118
1119 # separate package
1120 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/{ftplugin,syntax}/spec.vim
1121
1122 # unuseful
1123 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/tools
1124 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
1125 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/check_locales.vim
1126 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
1127 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/fixdup.vim
1128 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
1129
1130 %clean
1131 rm -rf $RPM_BUILD_ROOT
1132
1133 %post
1134 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1135
1136 %postun
1137 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1138
1139 %post doc
1140 %vim_doc_helptags
1141
1142 %postun doc
1143 %vim_doc_helptags
1144
1145 %post -n gvim-athena
1146 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1147
1148 %postun -n gvim-athena
1149 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1150
1151 %post -n gvim-motif
1152 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1153
1154 %postun -n gvim-motif
1155 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1156
1157 %post -n gvim-gtk
1158 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1159 %update_icon_cache hicolor
1160
1161 %postun -n gvim-gtk
1162 [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
1163 %update_icon_cache hicolor
1164
1165 %post -n gvim-gnome
1166 %update_desktop_database_post
1167 %update_icon_cache hicolor
1168
1169 %postun -n gvim-gnome
1170 %update_desktop_database_postun
1171 %update_icon_cache hicolor
1172
1173 %post -n gvim-heavy
1174 %update_icon_cache hicolor
1175
1176 %postun -n gvim-heavy
1177 %update_icon_cache hicolor
1178
1179 %files
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_bindir}/rvim
1182 %attr(755,root,root) %{_bindir}/vim
1183 %attr(755,root,root) %{_bindir}/vimdiff
1184 %{_mandir}/man1/rvim.1*
1185 %{_mandir}/man1/vimdiff.1*
1186 %lang(fi) %{_mandir}/fi/man1/rvim.1*
1187 %lang(fr) %{_mandir}/fr/man1/rvim.1*
1188 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
1189 %lang(id) %{_mandir}/id/man1/rvim.1*
1190 %lang(id) %{_mandir}/id/man1/vim.1*
1191 %lang(it) %{_mandir}/it/man1/rvim.1*
1192 %lang(it) %{_mandir}/it/man1/vim.1*
1193 %lang(it) %{_mandir}/it/man1/vimdiff.1*
1194 %lang(ja) %{_mandir}/ja/man1/rvim.1*
1195 %lang(ja) %{_mandir}/ja/man1/vim.1*
1196 %lang(ja) %{_mandir}/ja/man1/vimdiff.1*
1197 %lang(pl) %{_mandir}/pl/man1/rvim.1*
1198 %lang(pl) %{_mandir}/pl/man1/vim.1*
1199 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
1200 %lang(ru) %{_mandir}/ru/man1/rvim.1*
1201 %lang(ru) %{_mandir}/ru/man1/vim.1*
1202 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
1203 %{_desktopdir}/vim.desktop
1204
1205 %if %{with static}
1206 %files static
1207 %endif
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) /bin/ex
1210 %attr(755,root,root) /bin/rview
1211 %attr(755,root,root) /bin/vi
1212 %attr(755,root,root) /bin/view
1213 %{_mandir}/man1/vi.1*
1214 %{_mandir}/man1/ex.1*
1215 %{_mandir}/man1/view.1*
1216 %{_mandir}/man1/rview.1*
1217 %lang(fi) %{_mandir}/fi/man1/vi.1*
1218 %lang(fi) %{_mandir}/fi/man1/ex.1*
1219 %lang(fi) %{_mandir}/fi/man1/view.1*
1220 %lang(fi) %{_mandir}/fi/man1/rview.1*
1221 %lang(fr) %{_mandir}/fr/man1/vi.1*
1222 %lang(fr) %{_mandir}/fr/man1/ex.1*
1223 %lang(fr) %{_mandir}/fr/man1/view.1*
1224 %lang(fr) %{_mandir}/fr/man1/rview.1*
1225 %lang(id) %{_mandir}/id/man1/vi.1*
1226 %lang(id) %{_mandir}/id/man1/ex.1*
1227 %lang(id) %{_mandir}/id/man1/view.1*
1228 %lang(id) %{_mandir}/id/man1/rview.1*
1229 #%lang(it) %{_mandir}/it/man1/vi.1*
1230 %lang(it) %{_mandir}/it/man1/ex.1*
1231 %lang(it) %{_mandir}/it/man1/view.1*
1232 %lang(it) %{_mandir}/it/man1/rview.1*
1233 %lang(ja) %{_mandir}/ja/man1/ex.1*
1234 %lang(ja) %{_mandir}/ja/man1/view.1*
1235 %lang(ja) %{_mandir}/ja/man1/rview.1*
1236 %lang(pl) %{_mandir}/pl/man1/vi.1*
1237 %lang(pl) %{_mandir}/pl/man1/ex.1*
1238 %lang(pl) %{_mandir}/pl/man1/view.1*
1239 %lang(pl) %{_mandir}/pl/man1/rview.1*
1240 #%lang(ru) %{_mandir}/ru/man1/vi.1*
1241 %lang(ru) %{_mandir}/ru/man1/ex.1*
1242 %lang(ru) %{_mandir}/ru/man1/view.1*
1243 %lang(ru) %{_mandir}/ru/man1/rview.1*
1244
1245 %files -n xxd
1246 %defattr(644,root,root,755)
1247 %attr(755,root,root) %{_bindir}/xxd
1248 %{_mandir}/man1/xxd.1*
1249 %lang(fr) %{_mandir}/fr/man1/xxd.1*
1250 %lang(it) %{_mandir}/it/man1/xxd.1*
1251 %lang(ja) %{_mandir}/ja/man1/xxd.1*
1252 %lang(pl) %{_mandir}/pl/man1/xxd.1*
1253 %lang(ru) %{_mandir}/ru/man1/xxd.1*
1254
1255 %files rt -f %{name}.lang
1256 %defattr(644,root,root,755)
1257 %dir %{_sysconfdir}/vim
1258 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1259 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
1260
1261 %dir %{_datadir}/vim
1262 %dir %{_datadir}/vim/doc
1263 %verify(not md5 mtime size) %{_datadir}/vim/doc/tags
1264 %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
1265 %verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
1266 # X11 colours definition for colour name lookup
1267 %{_datadir}/vim/rgb.txt
1268
1269 %dir %{_datadir}/vim/vimfiles
1270 %dir %{_datadir}/vim/vimfiles/doc
1271 %dir %{_datadir}/vim/vimfiles/after
1272 %dir %{_datadir}/vim/vimfiles/after/compiler
1273 %dir %{_datadir}/vim/vimfiles/after/ftdetect
1274 %dir %{_datadir}/vim/vimfiles/after/ftplugin
1275 %dir %{_datadir}/vim/vimfiles/after/indent
1276 %dir %{_datadir}/vim/vimfiles/after/plugin
1277 %dir %{_datadir}/vim/vimfiles/after/spell
1278 %dir %{_datadir}/vim/vimfiles/after/syntax
1279 %dir %{_datadir}/vim/vimfiles/compiler
1280 %dir %{_datadir}/vim/vimfiles/ftdetect
1281 %dir %{_datadir}/vim/vimfiles/ftplugin
1282 %dir %{_datadir}/vim/vimfiles/indent
1283 %dir %{_datadir}/vim/vimfiles/plugin
1284 %dir %{_datadir}/vim/vimfiles/spell
1285 %dir %{_datadir}/vim/vimfiles/syntax
1286
1287 %{_datadir}/vim/*.vim
1288
1289 %dir %{_datadir}/vim/autoload
1290 %{_datadir}/vim/autoload/*complete.vim
1291 %doc %{_datadir}/vim/autoload/README.txt
1292 %dir %{_datadir}/vim/autoload/dist
1293 %{_datadir}/vim/autoload/dist/ft.vim
1294
1295 %dir %{_datadir}/vim/ftdetect
1296
1297 %dir %{_datadir}/vim/ftplugin
1298 %doc %{_datadir}/vim/ftplugin/README.txt
1299 %{_datadir}/vim/ftplugin/*.vim
1300 %{_datadir}/vim/ftplugin/logtalk.dict
1301
1302 %dir %{_datadir}/vim/indent
1303 %doc %{_datadir}/vim/indent/README.txt
1304 %{_datadir}/vim/indent/*.vim
1305
1306 %dir %{_datadir}/vim/keymap
1307 %doc %{_datadir}/vim/keymap/README.txt
1308 %{_datadir}/vim/keymap/*.vim
1309
1310 %{_datadir}/vim/pack
1311
1312 %dir %{_datadir}/vim/plugin
1313 %doc %{_datadir}/vim/plugin/README.txt
1314
1315 %dir %{_datadir}/vim/syntax
1316 %doc %{_datadir}/vim/syntax/README.txt
1317 %{_datadir}/vim/syntax/*.vim
1318
1319 %dir %{_datadir}/vim/colors
1320 %doc %{_datadir}/vim/colors/README.txt
1321 %{_datadir}/vim/colors/*.vim
1322 %dir %{_datadir}/vim/colors/tools
1323 %{_datadir}/vim/colors/tools/check_colors.vim
1324
1325 %dir %{_datadir}/vim/lang
1326 %doc %{_datadir}/vim/lang/README*
1327
1328 %lang(af) %{_datadir}/vim/lang/menu_af*
1329 %lang(ca) %{_datadir}/vim/lang/menu_ca*
1330 %lang(cs) %{_datadir}/vim/lang/menu_cs*
1331 %lang(cs) %{_datadir}/vim/lang/menu_*czech*
1332 %lang(de) %{_datadir}/vim/lang/menu_de*
1333 %lang(de) %{_datadir}/vim/lang/menu_*german*
1334 %lang(en_GB) %{_datadir}/vim/lang/menu_en_gb*
1335 %lang(en_GB) %{_datadir}/vim/lang/menu_*english*
1336 %lang(eo) %{_datadir}/vim/lang/menu_eo.utf-8.vim
1337 %lang(eo) %{_datadir}/vim/lang/menu_eo_eo.utf-8.vim
1338 %lang(eo) %{_datadir}/vim/lang/menu_eo_xx.utf-8.vim
1339 %lang(es) %{_datadir}/vim/lang/menu_es*
1340 %lang(es) %{_datadir}/vim/lang/menu_*spanish*
1341 %lang(fi) %{_datadir}/vim/lang/menu_fi.latin1.vim
1342 %lang(fi) %{_datadir}/vim/lang/menu_fi.utf-8.vim
1343 %lang(fi) %{_datadir}/vim/lang/menu_fi_fi.latin1.vim
1344 %lang(fi) %{_datadir}/vim/lang/menu_fi_fi.utf-8.vim
1345 %lang(fi) %{_datadir}/vim/lang/menu_finnish_finland.1252.vim
1346 %lang(fr) %{_datadir}/vim/lang/menu_fr*
1347 %lang(hu) %{_datadir}/vim/lang/menu_hu*
1348 %lang(it) %{_datadir}/vim/lang/menu_it*
1349 %lang(ja) %{_datadir}/vim/lang/menu_ja*
1350 %lang(ko) %{_datadir}/vim/lang/menu_ko*
1351 %lang(nl) %{_datadir}/vim/lang/menu_nl*
1352 %lang(nb) %{_datadir}/vim/lang/menu_nb*
1353 %lang(pl) %{_datadir}/vim/lang/menu_pl*
1354 %lang(pl) %{_datadir}/vim/lang/menu_*polish*
1355 %lang(pt) %{_datadir}/vim/lang/menu_pt*
1356 %lang(ru) %{_datadir}/vim/lang/menu_ru*
1357 %lang(sk) %{_datadir}/vim/lang/menu_sk*
1358 %lang(sk) %{_datadir}/vim/lang/menu_*slovak*
1359 %lang(sl) %{_datadir}/vim/lang/menu_sl_si*
1360 %lang(sr) %{_datadir}/vim/lang/menu_sr*
1361 %lang(sv) %{_datadir}/vim/lang/menu_sv*
1362 %lang(uk) %{_datadir}/vim/lang/menu_uk*
1363 %lang(vi) %{_datadir}/vim/lang/menu_vi*
1364 %lang(zh_CN) %{_datadir}/vim/lang/menu_zh.cp936*
1365 %lang(zh_CN) %{_datadir}/vim/lang/menu_zh.gb2312*
1366 %lang(zh_CN) %{_datadir}/vim/lang/menu_zh_cn*
1367 %lang(zh_CN) %{_datadir}/vim/lang/menu_*chinese*gb*
1368 %lang(zh_TW) %{_datadir}/vim/lang/menu_zh.cp950*
1369 %lang(zh_TW) %{_datadir}/vim/lang/menu_zh.big5*
1370 %lang(zh_TW) %{_datadir}/vim/lang/menu_zh_tw*
1371 %lang(zh_TW) %{_datadir}/vim/lang/menu_*taiwan*
1372
1373 %dir %{_datadir}/vim/spell
1374 %{_datadir}/vim/spell/spell.vim
1375 %lang(he) %{_datadir}/vim/spell/he.*
1376 %lang(yi) %{_datadir}/vim/spell/yi.*
1377
1378 %{_mandir}/man1/vim.1*
1379 %lang(fi) %{_mandir}/fi/man1/vim.1*
1380 %lang(fr) %{_mandir}/fr/man1/vim.1*
1381 %{_pixmapsdir}/gvim.png
1382
1383 # plugins in base -rt package
1384 %{_datadir}/vim/autoload/gzip.vim
1385 %{_datadir}/vim/plugin/gzip.vim
1386 %{_datadir}/vim/plugin/matchparen.vim
1387
1388 %files rt-extras
1389 %defattr(644,root,root,755)
1390 %{_datadir}/vim/plugin/*.vim
1391 %{_datadir}/vim/autoload/*.vim
1392 %exclude %{_datadir}/vim/autoload/*complete.vim
1393 %{_datadir}/vim/autoload/xml
1394 %{_datadir}/vim/compiler
1395 %{_datadir}/vim/macros
1396 %{_datadir}/vim/print
1397
1398 # plugins in base -rt package
1399 %exclude %{_datadir}/vim/autoload/gzip.vim
1400 %exclude %{_datadir}/vim/plugin/gzip.vim
1401 %exclude %{_datadir}/vim/plugin/matchparen.vim
1402
1403 %files doc
1404 %defattr(644,root,root,755)
1405 # English
1406 %{_datadir}/vim/doc/*.txt
1407
1408 # Polish
1409 %lang(pl) %{_datadir}/vim/doc/*.plx
1410
1411 %files tutor
1412 %defattr(644,root,root,755)
1413 %attr(755,root,root) %{_bindir}/vimtutor
1414 %dir %{_datadir}/vim/tutor
1415 %dir %{_datadir}/vim/tutor/tutor
1416
1417 %{_datadir}/vim/tutor/README.txt
1418 %{_datadir}/vim/tutor/tutor.vim
1419 %{_datadir}/vim/tutor/tutor.utf-8
1420 %lang(el) %{_datadir}/vim/tutor/README.el.cp737.txt
1421 %lang(el) %{_datadir}/vim/tutor/README.el.txt
1422
1423 %lang(de) %{_datadir}/vim/tutor/tutor.bar
1424 %lang(de) %{_datadir}/vim/tutor/tutor.bar.utf-8
1425 %lang(bg) %{_datadir}/vim/tutor/tutor.bg.utf-8
1426 %lang(ca) %{_datadir}/vim/tutor/tutor.ca
1427 %lang(ca) %{_datadir}/vim/tutor/tutor.ca.utf-8
1428 %lang(cs) %{_datadir}/vim/tutor/tutor.cs
1429 %lang(cs) %{_datadir}/vim/tutor/tutor.cs.cp1250
1430 %lang(cs) %{_datadir}/vim/tutor/tutor.cs.utf-8
1431 %lang(de) %{_datadir}/vim/tutor/tutor.de
1432 %lang(de) %{_datadir}/vim/tutor/tutor.de.utf-8
1433 %lang(el) %{_datadir}/vim/tutor/tutor.el
1434 %lang(el) %{_datadir}/vim/tutor/tutor.el.cp737
1435 %lang(el) %{_datadir}/vim/tutor/tutor.el.utf-8
1436 %lang(eo) %{_datadir}/vim/tutor/tutor.eo
1437 %lang(eo) %{_datadir}/vim/tutor/tutor.eo.utf-8
1438 %lang(es) %{_datadir}/vim/tutor/tutor.es
1439 %lang(es) %{_datadir}/vim/tutor/tutor.es.utf-8
1440 %lang(fr) %{_datadir}/vim/tutor/tutor.fr
1441 %lang(fr) %{_datadir}/vim/tutor/tutor.fr.utf-8
1442 %lang(hr) %{_datadir}/vim/tutor/tutor.hr
1443 %lang(hr) %{_datadir}/vim/tutor/tutor.hr.cp1250
1444 %lang(hr) %{_datadir}/vim/tutor/tutor.hr.utf-8
1445 %lang(hu) %{_datadir}/vim/tutor/tutor.hu
1446 %lang(hu) %{_datadir}/vim/tutor/tutor.hu.cp1250
1447 %lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
1448 %lang(it) %{_datadir}/vim/tutor/tutor.it
1449 %lang(it) %{_datadir}/vim/tutor/tutor.it.utf-8
1450 %lang(ja) %{_datadir}/vim/tutor/tutor.ja.euc
1451 %lang(ja) %{_datadir}/vim/tutor/tutor.ja.sjis
1452 %lang(ja) %{_datadir}/vim/tutor/tutor.ja.utf-8
1453 %lang(ko) %{_datadir}/vim/tutor/tutor.ko.euc
1454 %lang(ko) %{_datadir}/vim/tutor/tutor.ko.utf-8
1455 %lang(nl) %{_datadir}/vim/tutor/tutor.nl
1456 %lang(nl) %{_datadir}/vim/tutor/tutor.nl.utf-8
1457 %lang(nb) %{_datadir}/vim/tutor/tutor.nb
1458 %lang(nb) %{_datadir}/vim/tutor/tutor.nb.utf-8
1459 %lang(pl) %{_datadir}/vim/tutor/tutor.pl
1460 %lang(pl) %{_datadir}/vim/tutor/tutor.pl.cp1250
1461 %lang(pl) %{_datadir}/vim/tutor/tutor.pl.utf-8
1462 %lang(pt) %{_datadir}/vim/tutor/tutor.pt
1463 %lang(pt) %{_datadir}/vim/tutor/tutor.pt.utf-8
1464 %lang(ru) %{_datadir}/vim/tutor/tutor.ru
1465 %lang(ru) %{_datadir}/vim/tutor/tutor.ru.cp1251
1466 %lang(ru) %{_datadir}/vim/tutor/tutor.ru.utf-8
1467 %lang(sk) %{_datadir}/vim/tutor/tutor.sk
1468 %lang(sk) %{_datadir}/vim/tutor/tutor.sk.cp1250
1469 %lang(sk) %{_datadir}/vim/tutor/tutor.sk.utf-8
1470 %lang(sr) %{_datadir}/vim/tutor/tutor.sr.cp1250
1471 %lang(sr) %{_datadir}/vim/tutor/tutor.sr.utf-8
1472 %lang(sv) %{_datadir}/vim/tutor/tutor.sv
1473 %lang(sv) %{_datadir}/vim/tutor/tutor.sv.utf-8
1474 %lang(tr) %{_datadir}/vim/tutor/tutor.tr.iso9
1475 %lang(tr) %{_datadir}/vim/tutor/tutor.tr.utf-8
1476 %lang(uk) %{_datadir}/vim/tutor/tutor.uk.utf-8
1477 %lang(vi) %{_datadir}/vim/tutor/tutor.vi.utf-8
1478 %lang(zh_CN) %{_datadir}/vim/tutor/tutor.zh_cn.utf-8
1479 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.big5
1480 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.euc
1481 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.utf-8
1482 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh_tw.utf-8
1483
1484 %{_mandir}/man1/vimtutor.1*
1485 %lang(fr) %{_mandir}/fr/man1/vimtutor.1*
1486 %lang(it) %{_mandir}/it/man1/vimtutor.1*
1487 %lang(ja) %{_mandir}/ja/man1/vimtutor.1*
1488 %lang(pl) %{_mandir}/pl/man1/vimtutor.1*
1489 %lang(ru) %{_mandir}/ru/man1/vimtutor.1*
1490
1491 %if %{with x11}
1492 %files -n vimx
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_bindir}/vimx
1495 %endif
1496
1497 %if %{with heavy}
1498 %files heavy
1499 %defattr(644,root,root,755)
1500 %attr(755,root,root) %{_bindir}/vim.heavy
1501 %endif
1502
1503 %if %{with light}
1504 %files light
1505 %defattr(644,root,root,755)
1506 %attr(755,root,root) %{_bindir}/vim.light
1507 %endif
1508
1509 %files spell-en
1510 %defattr(644,root,root,755)
1511 %{_datadir}/vim/spell/en.*.*
1512
1513 %if %{with athena}
1514 %files -n gvim-athena
1515 %defattr(644,root,root,755)
1516 %attr(755,root,root) %{_bindir}/gvim.athena
1517 %{_desktopdir}/gvim-athena.desktop
1518 %endif
1519
1520 %if %{with motif}
1521 %files -n gvim-motif
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{_bindir}/gvim.motif
1524 %{_desktopdir}/gvim-motif.desktop
1525 %endif
1526
1527 %if %{with gtk}
1528 %files -n gvim-gtk
1529 %defattr(644,root,root,755)
1530 %attr(755,root,root) %{_bindir}/gvim.gtk
1531 %attr(755,root,root) %verify(not link) %{_bindir}/gvim
1532 %attr(755,root,root) %{_bindir}/eview
1533 %attr(755,root,root) %{_bindir}/evim
1534 %attr(755,root,root) %{_bindir}/gview
1535 %attr(755,root,root) %{_bindir}/gvimdiff
1536 %attr(755,root,root) %{_bindir}/rgview
1537 %attr(755,root,root) %{_bindir}/rgvim
1538 %{_mandir}/man1/eview.1*
1539 %{_mandir}/man1/evim.1*
1540 %{_mandir}/man1/gvi*
1541 %{_mandir}/man1/rgv*
1542 %lang(fi) %{_mandir}/fi/man1/gvi*
1543 %lang(fi) %{_mandir}/fi/man1/rgv*
1544 %lang(fr) %{_mandir}/fr/man1/eview.1*
1545 %lang(fr) %{_mandir}/fr/man1/evim.1*
1546 %lang(fr) %{_mandir}/fr/man1/gvi*
1547 %lang(fr) %{_mandir}/fr/man1/rgv*
1548 %lang(id) %{_mandir}/id/man1/gvi*
1549 %lang(id) %{_mandir}/id/man1/rgv*
1550 %lang(it) %{_mandir}/it/man1/eview.1*
1551 %lang(it) %{_mandir}/it/man1/evim.1*
1552 %lang(it) %{_mandir}/it/man1/gvi*
1553 %lang(it) %{_mandir}/it/man1/rgv*
1554 %lang(ja) %{_mandir}/ja/man1/eview.1*
1555 %lang(ja) %{_mandir}/ja/man1/evim.1*
1556 %lang(ja) %{_mandir}/ja/man1/gvi*
1557 %lang(ja) %{_mandir}/ja/man1/rgv*
1558 %lang(pl) %{_mandir}/pl/man1/eview.1*
1559 %lang(pl) %{_mandir}/pl/man1/evim.1*
1560 %lang(pl) %{_mandir}/pl/man1/gvi*
1561 %lang(pl) %{_mandir}/pl/man1/rgv*
1562 %lang(ru) %{_mandir}/ru/man1/eview.1*
1563 %lang(ru) %{_mandir}/ru/man1/evim.1*
1564 %lang(ru) %{_mandir}/ru/man1/gvi*
1565 %lang(ru) %{_mandir}/ru/man1/rgv*
1566 %{_desktopdir}/gvim-gtk.desktop
1567 %endif
1568
1569 %if %{with gnome}
1570 %files -n gvim-gnome
1571 %defattr(644,root,root,755)
1572 %attr(755,root,root) %{_bindir}/gvim.gnome
1573 %{_desktopdir}/gvim-gnome.desktop
1574 %endif
1575
1576 %if %{with heavy}
1577 %files -n gvim-heavy
1578 %defattr(644,root,root,755)
1579 %attr(755,root,root) %{_bindir}/gvim.heavy
1580 %endif
This page took 0.266549 seconds and 3 git commands to generate.