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