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