]> git.pld-linux.org Git - packages/vim.git/blame - vim.spec
- applied in 7.1
[packages/vim.git] / vim.spec
CommitLineData
9bc905eb 1# TODO:
970ad6a1 2# - merge with AC-branch
9bc905eb 3# - some nice icon
d6de9a65 4# - bonobo patches need update
6facb60f
JB
5#
6# Conditional build:
ec23c5c9
JB
7%bcond_without static # don't build static version
8%bcond_without athena # don't build Athena Widgets-based gvim
9%bcond_without motif # don't build Motif-based gvim
e746f321 10%bcond_without gtk # don't build GTK+-based gvim support
11%bcond_without gnome # don't build GNOME-based gvim support
071ce85b 12%bcond_without perl # without Perl interp
4399a7e9 13%bcond_with python # with Python interp
6dc50f24
AG
14%bcond_with ruby # with Ruby interp
15%bcond_with tcl # with Tcl interp
ec23c5c9
JB
16%bcond_with bonobo # with bonobo component (breaks other things)
17%bcond_without selinux # without selinux support
ec23c5c9 18%bcond_without home_etc # without home_etc support
7ba74caf 19#
9bc905eb 20%define _ver 7.0
41f33985 21%define _patchlevel 235
e8531d99 22%define _rel 1
80b161c5 23
fc7b36fc
ER
24# cflags get changed while configuring
25%undefine configure_cache
26#
84c81dea 27Summary: Vi IMproved - a Vi clone
1a02d184
ER
28Summary(de.UTF-8): VIsual editor iMproved
29Summary(es.UTF-8): Editor visual incrementado
30Summary(fr.UTF-8): Editeur VIM : VIsual editor iMproved
31Summary(pl.UTF-8): Vi IMproved - klon edytora Vi
32Summary(pt_BR.UTF-8): Editor visual incrementado
33Summary(ru.UTF-8): Visual editor IMproved - Единственно Правильный Редактор :)
34Summary(tr.UTF-8): Gelişmiş bir vi sürümü
35Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
86c64819 36Name: vim
96eaec6a 37Version: %{_ver}.%{_patchlevel}
c557a18e 38Release: %{_rel}
2f66771d 39Epoch: 4
f73b565e 40License: Charityware
8627c94f 41Group: Applications/Editors/Vim
96eaec6a 42Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2
0b31d255 43# Source0-md5: 4ca69757678272f718b1041c810d82d8
aaf60aad 44Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-lang.tar.gz
0b31d255 45# Source1-md5: 6d43efaff570b5c86e76b833ea0c6a04
41f33985
AM
46Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-extra.tar.gz
47# Source2-md5: 200f741ecc2a896fca25486764fa18a2
48Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
49# Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
50Source4: http://skawina.eu.org/mikolaj/usr_doc_pl.zip
51# Source4-md5: ff96284b1c913d55cf0877839b34d490
59e47b54
AF
52Source10: g%{name}-athena.desktop
53Source11: g%{name}-motif.desktop
54Source12: g%{name}-gtk.desktop
55Source13: g%{name}-gnome.desktop
0f99c50f 56Source14: %{name}.desktop
fa5af23b 57# http://www.vim.org/scripts/script.php?script_id=415 (1.13)
19d8e711
AG
58Source15: zenburn.%{name}
59Source16: spec.%{name}
4b308627 60# http://www.vim.org/scripts/script.php?script_id=1491 (0.5)
19d8e711 61Source17: javascript.%{name}
aaf60aad
ER
62Source18: nagios.%{name}
63Source19: %{name}-ftplugin-spec.vim
db58c86e 64Patch0: %{name}-sysconfdir.patch
65Patch1: %{name}-visual.patch
66Patch2: %{name}-paths.patch
d1abaab5
AG
67Patch3: %{name}-%{name}rc.patch
68Patch4: %{name}-no_libelf.patch
69Patch5: %{name}-egrep.patch
70Patch6: %{name}-awk.patch
d6de9a65
AG
71Patch7: %{name}-filetype_vim-perl_tests.patch
72Patch8: %{name}-apache.patch
73Patch9: %{name}-po-syntax.patch
74Patch10: %{name}-modprobe.patch
75Patch11: %{name}-doubleparenthesis.patch
76Patch12: %{name}-syntax-fstab.patch
77Patch13: 010_all_%{name}-6.3-vixie.patch
78Patch14: 013_all_%{name}-7.0-cron-vars-79981.patch
79Patch15: 020_all_%{name}-7.0-fstab-tmpfs-size.patch
80Patch16: 021_all_%{name}-7.0-fstab-bogus-errors.patch
81Patch17: 024_all_%{name}-6.3-bash-83565.patch
82Patch18: 027_all_%{name}-7.0-automake-substitutions-93378.patch
83Patch19: %{name}-smarty.patch
84Patch20: %{name}-tutor-lessdeps.patch
85Patch21: %{name}-nagios.patch
86Patch22: %{name}-filetypes.patch
9c95080e 87Patch23: %{name}-man_installation.patch
d6de9a65
AG
88Patch100: %{name}-bonobo-20050909.patch
89Patch101: %{name}-bonobo.patch
90Patch102: %{name}-gtkfilechooser.patch
91Patch103: %{name}-gtkfilechooser-bonobo.patch
92Patch104: %{name}-home_etc.patch
93Patch105: %{name}-selinux.patch
aaf60aad 94Patch106: %{name}-fstab-uuid.patch
e8531d99 95Patch107: %{name}-autopaste.patch
9e18e433 96Patch108: %{name}-ft-cron.patch
41f33985
AM
97Patch199: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.001-100.gz
98Patch200: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.101-200.gz
99Patch201: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.201
100Patch202: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.202
101Patch203: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.203
102Patch204: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.204
103Patch205: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.205
104Patch206: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.206
105Patch207: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.207
106Patch208: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.208
107Patch209: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.209
108Patch210: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.210
109Patch211: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.211
110Patch212: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.212
111Patch213: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.213
112Patch214: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.214
113Patch215: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.215
114Patch216: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.216
115Patch217: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.217
116Patch218: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.218
117Patch219: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.219
118Patch220: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.220
119Patch221: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.221
120Patch222: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.222
121Patch223: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.223
122Patch224: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.224
123Patch225: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.225
124Patch226: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.226
125Patch227: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.227
126Patch228: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.228
127Patch229: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.229
128Patch230: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.230
129Patch231: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.231
130Patch232: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.232
131Patch233: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.233
132Patch234: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.234
133Patch235: ftp://ftp.vim.org/pub/editors/vim/patches/7.0/7.0.235
f73b565e 134URL: http://www.vim.org/
21ab67a5 135BuildRequires: acl-devel
da7b5595
JB
136BuildRequires: autoconf
137BuildRequires: gettext-devel
84c81dea 138BuildRequires: gpm-devel
a8f099d1 139%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.6.0}
d6e63bbe 140%{?with_gnome:BuildRequires: libgnomeui-devel >= 2.2.0.1}
e57aa23e 141%{?with_selinux:BuildRequires: libselinux-devel}
1fa34b46 142BuildRequires: ncurses-devel
e37f7386 143%{?with_motif:BuildRequires: openmotif-devel}
d6e63bbe 144%{?with_perl:BuildRequires: perl-devel}
f14f41d3 145%{?with_python:BuildRequires: python-devel >= 2.5}
2a5b9a50 146%{?with_ruby:BuildRequires: ruby-devel}
d6e63bbe 147%{?with_tcl:BuildRequires: tcl-devel}
2a61b438
ER
148%{?with_athena:BuildRequires: xorg-lib-libXaw-devel}
149Obsoletes: kvim
40ff2b7e
JB
150%if %{with bonobo}
151BuildRequires: ORBit2-devel
152BuildRequires: libbonoboui-devel >= 2.2.0
e37f7386 153BuildRequires: libgnomeui-devel >= 2.2.0.1
40ff2b7e
JB
154BuildRequires: nautilus-devel >= 2.2.0
155%endif
70502921 156BuildRequires: rpmbuild(macros) >= 1.311
082a03d8
AM
157%if %{with static}
158BuildRequires: acl-static
40ff2b7e
JB
159BuildRequires: attr-static
160BuildRequires: glibc-static
e57aa23e 161%{?with_selinux:BuildRequires: libselinux-static}
40ff2b7e 162BuildRequires: ncurses-static
082a03d8 163%else
7ba74caf 164Provides: %{name}-static = %{epoch}:%{version}-%{release}
214d5c14
ER
165Obsoletes: elvis-static
166Obsoletes: nvi
167Obsoletes: vi
168Obsoletes: vim-minimal
fc7b36fc 169Obsoletes: vim-static
082a03d8 170%endif
7b8fe793 171BuildRequires: unzip
99216be1 172Requires: %{name}-rt = %{epoch}:%{version}-%{release}
ed99f1fe 173Provides: vi-editor
fc7b36fc 174Provides: vi
84c81dea 175Obsoletes: vim-enhanced
5664b129 176Obsoletes: vim-ispell
ea73bb7e 177Obsoletes: vim-plugin-multvals
beb06d49 178BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8627c94f 179
f2ff3795 180# that's example script
181%define _noautoreq '/bin/csh'
182
84c81dea 183%description
f73b565e 184Text editor similar to Vi. Important improvements: multiple windows,
b83ed9cf 185multi-level undo, block highliting, folding, and many other.
f73b565e 186
5cf83aa7
JR
187%description -l cs.UTF-8
188ViM je nový a vylepšený editor vycházející z klasického editoru vi. Vi
189byl prvním celoobrazovkovým editorem pro Unix a je stále velmi
190populární. ViM je obohacený funkcemi jako: podpora více oken,
191víceúrovňové undo, zvýrazňování bloků a řadu dalších užitečných
192funkcí.
507e1057 193
5cf83aa7 194%description -l de.UTF-8
f73b565e 195Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon
196des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert
197wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion,
198Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum
199Standard-vi-Programm.
200
5cf83aa7
JR
201%description -l es.UTF-8
202El editor Visual Mejorado es una versión actualizada y con nuevas
203características adicionales del mundialmente famoso 'vi' que acompaña
204prácticamente todos los sistemas UN*X. Posibilita trabajar con
205múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y
206otras muchas características del 'vi'.
207
208%description -l fr.UTF-8
209L'éditeur VIsuel aMélioré est un clone mis à jour et doté de
210caractéristiques supplémentaires de l'éditeur « vi » fourni avec
211pratiquement tous les systèmes UN*X. Il ajoute les fenêtres
212mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des
213blocs et autres caractéristiques au vi de base.
214
215%description -l id.UTF-8
507e1057 216VIM (VIsual editor iMproved) adalah versi vi editor yang sudah
217diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang
218pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM
219mengembangkan vi dengan menambah kemampuan baru seperti: multiple
220windows, multi-level undo, block highlighting, dll.
221
5cf83aa7
JR
222%description -l is.UTF-8
223VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi
224ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög
225vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og
226gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og
507e1057 227fleira.
228
5cf83aa7
JR
229%description -l it.UTF-8
230VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
231vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
507e1057 232ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
233finestre multiple, funzione \"annulla\" multilivello, evidenziazione
234dei blocchi e altro.
235
5cf83aa7
JR
236%description -l pl.UTF-8
237Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
238oknach, wielopoziomowa opcja 'cofnij', bloki, podświetlanie składni,
b83ed9cf 239folding i wiele innych.
8f1c0b93 240
5cf83aa7
JR
241%description -l pt.UTF-8
242O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do
243editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para
244o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando
245novas potencialidades: janelas múltiplas, anulação multi-nível, realce
507e1057 246de blocos e mais.
247
5cf83aa7
JR
248%description -l pt_BR.UTF-8
249O editor Vim (Vi Enhanced) é um versão atualizada e com novas
250características do mundialmente famoso 'vi' que acompanha praticamente
251todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas
252janelas, vários níveis de desfazer, blocos enfatizados, e muitas
253outras características do 'vi'.
254
255%description -l ru.UTF-8
256VIsual editor iMproved - это обновленный и значительно улучшенный клон
257редактора vi, который поставляется практически со всеми
258UN*X-системами. В этой версии есть многоуровневый откат, выделение
259блоков, синтаксическая подсветка и много другого...
260
261%description -l sk.UTF-8
262VIM (VIsual editor iMproved) je novšia a vylepšená verzia editoru vi.
263Vi bol prvým skutočne obrazovkovo orientovaným editorom pre UNIX a
264stále je veľmi populárny. VIM má oproti vi vylepšenia ako: prácu s
265viacerými oknami, viacnásobné undo, zvýrazňovanie blokov textu a iné.
266
267%description -l sv.UTF-8
268VIM (Vi IMproved) är en uppdaterad och förbättrad version av
269redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren
270till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med
271nya finesser: flera fönster, flernivå ångra, blockmarkering och mer
272ändå.
273
274%description -l tr.UTF-8
275Standart vi metin düzenleyicisinin gelişmiş hali; daha fazla komut,
276birden fazla pencere desteği ve blok işaretleme yetenekleri içerir.
277
278%description -l uk.UTF-8
279VIsual editor iMproved - це оновлений та значно поліпшений клон
280редактора vi, який поставляється практично зі всіма UN*X-системами. В
281цій версії є багаторівневий відкат, виділення блоків, синтаксична
282підсвітка та багато іншого...
9e79ff1a 283
5f8672c8
JB
284%package -n xxd
285Summary: Utility to convert files to hexdump or do the reverse
1a02d184 286Summary(pl.UTF-8): Narzędzie do zamiany plików na postać szesnastkową i odwrotnie
5f8672c8 287Group: Applications/Editors/Vim
5f8672c8
JB
288
289%description -n xxd
290xxd creates a hex dump of a given file or standard input. It can also
291convert a hex dump back to its original binary form. Like uuencode and
292uudecode it allows the transmission of binary data in a `mail-safe'
293ASCII representation, but has the advantage of decoding to standard
294output. Moreover, it can be used to perform binary file patching.
295
5cf83aa7
JR
296%description -n xxd -l pl.UTF-8
297xxd tworzy szesnastkowy zapis pliku podanego na standardowe wejście.
298Może także przekonwertować taki zapis na oryginalną, binarną postać.
299Podobnie jak uuencode i uudecode pozwala na przesyłanie danych
300binarnych w postaci ASCII, ale ma możliwość dekodowania na standardowe
301wyjście. Co więcej, może być użyty do modyfikowania plików binarnych.
5f8672c8 302
6590d069 303%package static
7e3e3036 304Summary: Statically linked Vim
1a02d184 305Summary(pl.UTF-8): Statycznie skonsolidowany Vim
84c81dea 306Group: Applications/Editors/Vim
ed99f1fe 307Provides: vi-editor
fc7b36fc 308Provides: vi
95a598bc
JB
309Obsoletes: elvis-static
310Obsoletes: nvi
84c81dea 311Obsoletes: vim-minimal
c9897555 312
84c81dea 313%description static
b83ed9cf 314Text editor similar to Vi. This version is built with minimal feature
f73b565e 315and is installed in /bin as a rescue tool. The installation of this
316package is STRONGLY recommended.
84c81dea 317
5cf83aa7
JR
318%description static -l pl.UTF-8
319Edytor tekstu podobny do Vi. Ta wersja została skonsolidowana
320statycznie i posiada minimalną ilość dodatków. Jest instalowana w /bin
321jako narzędzie dla administratora. Instalacja tego pakietu jest MOCNO
322zalecana, może on pomóc Ci uratować system w czasie awarii.
8627c94f 323
5cf83aa7
JR
324%description static -l ru.UTF-8
325Пакет vim-static устанавливает разновидность vim как /bin/vi, что
326удобно для запуска даже когда смонтирована только корневая файловая
327система.
9e79ff1a 328
5cf83aa7
JR
329%description static -l uk.UTF-8
330Пакет vim-static встановлює різновид vim як /bin/vi, що зручно для
331запуску навіть тоді, коли змонтована тільки корньова файлова система.
9e79ff1a 332
c9897555 333%package rt
8627c94f 334Summary: Vim runtime files
1a02d184
ER
335Summary(cs.UTF-8): Soubory nezbytné pro libovolný editor ViM
336Summary(da.UTF-8): Fælles filer som er nødvendige for enhver version af VIM editoren
337Summary(de.UTF-8): Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien
338Summary(es.UTF-8): Ficheros comunes a todas las versiones de VIM
339Summary(fr.UTF-8): Fichiers communs indispensables pour toute version de l'éditeur VIM
340Summary(id.UTF-8): File umum yang dibutuhkan oleh semua versi editor VIM
341Summary(is.UTF-8): Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda
342Summary(it.UTF-8): File comuni necessari per tutte le versioni dell'editor VIM
343Summary(ja.UTF-8): すべてのバージョンの VIM エディタで必要とされる共通ファイル
344Summary(nb.UTF-8): Felles filer som er nødvendige for enhver versjon av VIM editoren
345Summary(pl.UTF-8): Pliki przydatne edytorowi Vim
346Summary(pt.UTF-8): Os ficheiros comuns necessários para qualquer versão do editor VIM
347Summary(ru.UTF-8): Файлы, требуемые для любой версии редактора vim
348Summary(sk.UTF-8): Spoločné súbory potrebné pre všetky verzie editoru VIM
349Summary(sl.UTF-8): Skupne datoteke, potrebne s katerokoli različico urejevalnika VIM
350Summary(sv.UTF-8): De gemensamma filerna som behövs av alla versioner av redigeraren VIM
351Summary(uk.UTF-8): Файли, потрібні для будь-якої версії редактору vim
352Summary(zh_CN.UTF-8): 任何版本的 VIM 编辑器所需的公用文件。
8627c94f 353Group: Applications/Editors/Vim
fc7b36fc 354# mktemp is for vimtutor
b8b82f5a 355Requires: mktemp
ed99f1fe 356Requires: vi-editor
84c81dea 357Obsoletes: vim-common
8627c94f 358
359%description rt
f73b565e 360This package contains macros, documentation, syntax configuration and
ec6033c5 361manual pages for Vim. If you want to take advantage of Vim more
f73b565e 362powerful features, you should install this package.
8627c94f 363
5cf83aa7
JR
364%description rt -l cs.UTF-8
365Tento balíček obsahuje společné soubory pro všechny další balíčky s
507e1057 366vim.
367
5cf83aa7 368%description rt -l da.UTF-8
507e1057 369The vim-rt package contains files which every VIM binary will need in
370order to run.
371
5cf83aa7
JR
372%description rt -l de.UTF-8
373Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
374Ausführung benötigt.
507e1057 375
5cf83aa7 376%description rt -l fr.UTF-8
507e1057 377Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
378VIM a besoin pour fonctionner.
379
5cf83aa7 380%description rt -l id.UTF-8
507e1057 381Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
382berjalan.
383
5cf83aa7
JR
384%description rt -l is.UTF-8
385vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
386til að keyra.
507e1057 387
5cf83aa7 388%description rt -l it.UTF-8
507e1057 389Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
390per poter funzionare.
391
5cf83aa7
JR
392%description rt -l pl.UTF-8
393W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
394strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
395zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
84c81dea 396
5cf83aa7
JR
397%description rt -l pt.UTF-8
398O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
399irão necessitar para correr.
507e1057 400
5cf83aa7
JR
401%description rt -l ru.UTF-8
402Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
403для работы любой программы vim.
9e79ff1a 404
5cf83aa7
JR
405%description rt -l sk.UTF-8
406Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
407funkciu každá verzia editoru VIM.
507e1057 408
5cf83aa7
JR
409%description rt -l sv.UTF-8
410Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
411köra.
507e1057 412
5cf83aa7
JR
413%description rt -l uk.UTF-8
414Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
415для роботи будь-якої програми vim.
9e79ff1a 416
4399a7e9
JB
417%package spell-en
418Summary: English dictionaries for VIMspell
1a02d184 419Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
4399a7e9
JB
420Group: Applications/Editors/Vim
421Requires: %{name} = %{epoch}:%{version}-%{release}
422
423%description spell-en
424English dictionaries for VIMspell.
425
5cf83aa7
JR
426%description spell-en -l pl.UTF-8
427Angielskie słowniki dla VIMspella.
4399a7e9 428
84c81dea 429%package -n gvim-athena
6facb60f 430Summary: Vim for X Window built with Athena
1a02d184 431Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena
84c81dea 432Group: Applications/Editors/Vim
99216be1 433Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 434Requires: iconv
ed99f1fe 435Provides: vi-editor
84c81dea 436Obsoletes: vim-X11
437
438%description -n gvim-athena
f73b565e 439The classic Unix text editor now also under X Window System! This
b83ed9cf 440version is built with Athena Widget Set.
84c81dea 441
5cf83aa7
JR
442%description -n gvim-athena -l pl.UTF-8
443Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
f73b565e 444biblioteki Athena Widget Set.
84c81dea 445
5cf83aa7
JR
446%description -n gvim-athena -l ru.UTF-8
447Этот пакет представляет собой версию VIM, собранную с библиотеками
448Athena Widget Set, что позволяет запускать VIM как приложение X Window
449System - с полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 450
5cf83aa7
JR
451%description -n gvim-athena -l uk.UTF-8
452Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
453Set, що дозволяє запускати VIM як прикладну програму X Window System -
454з повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 455
7a9200fa
JR
456%package -n gvim-motif
457Summary: Vim for X Window built with Motif
1a02d184 458Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif
84c81dea 459Group: Applications/Editors/Vim
99216be1 460Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 461Requires: iconv
ed99f1fe 462Provides: vi-editor
84c81dea 463Obsoletes: vim-X11
8627c94f 464
7a9200fa 465%description -n gvim-motif
f73b565e 466The classic Unix text editor now also under X Window System! This
b83ed9cf 467version is built with Motif.
84c81dea 468
5cf83aa7
JR
469%description -n gvim-motif -l pl.UTF-8
470Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
7a9200fa 471biblioteki Motif.
84c81dea 472
5cf83aa7
JR
473%description -n gvim-motif -l ru.UTF-8
474Этот пакет представляет собой версию VIM, собранную с библиотеками
475Motif, что позволяет запускать VIM как приложение X Window System - с
476полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 477
5cf83aa7
JR
478%description -n gvim-motif -l uk.UTF-8
479Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
480дозволяє запускати VIM як прикладну програму X Window System - з
481повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 482
84c81dea 483%package -n gvim-gtk
484Summary: Vim for X Window built with gtk
1a02d184 485Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK
8627c94f 486Group: Applications/Editors/Vim
9c95080e 487Requires(post,postun): gtk+2
4399a7e9 488Requires(post,postun): hicolor-icon-theme
99216be1 489Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 490Requires: iconv
ed99f1fe 491Provides: vi-editor
84c81dea 492Obsoletes: vim-X11
8627c94f 493
84c81dea 494%description -n gvim-gtk
f73b565e 495The classic Unix text editor now also under X Window System! This
b83ed9cf 496version is built with GTK.
8627c94f 497
5cf83aa7
JR
498%description -n gvim-gtk -l pl.UTF-8
499Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
0d72267e 500biblioteki GTK.
d5d214fb 501
5cf83aa7
JR
502%description -n gvim-gtk -l ru.UTF-8
503Этот пакет представляет собой версию VIM, собранную с библиотеками
504GTK, что позволяет запускать VIM как приложение X Window System - с
505полностью графическим интерфейсом и поддержкой мыши. Просто скажите
9e79ff1a 506'gvim'...
507
5cf83aa7
JR
508%description -n gvim-gtk -l uk.UTF-8
509Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
510запускати VIM як прикладну програму X Window System - з повністю
511графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
9e79ff1a 512
d5d214fb 513%package -n gvim-gnome
e746f321 514Summary: Vim for X Window built with GNOME
1a02d184 515Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME
d5d214fb 516Group: Applications/Editors/Vim
9c95080e 517Requires(post,postun): gtk+2
4399a7e9 518Requires(post,postun): hicolor-icon-theme
99216be1 519Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 520Requires: iconv
ed99f1fe 521Provides: vi-editor
d5d214fb
AM
522Obsoletes: vim-X11
523
524%description -n gvim-gnome
525The classic Unix text editor now also under X Window System! This
526version is build with GNOME.
527
5cf83aa7
JR
528%description -n gvim-gnome -l pl.UTF-8
529Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
0d72267e 530bibliotek GNOME.
8627c94f 531
5cf83aa7
JR
532%description -n gvim-gnome -l ru.UTF-8
533Этот пакет представляет собой версию VIM, собранную с библиотеками
534GNOME, что позволяет запускать VIM как приложение X Window System - с
535полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 536
5cf83aa7
JR
537%description -n gvim-gnome -l uk.UTF-8
538Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
539дозволяє запускати VIM як прикладну програму X Window System - з
540повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 541
afe2d598
AF
542%package -n gvim-bonobo
543Summary: Vim for X Window built as bonobo component
1a02d184 544Summary(pl.UTF-8): Vim dla X Window zbudowany jako element bonobo
afe2d598 545Group: Applications/Editors/Vim
99216be1 546Requires: %{name}-rt = %{epoch}:%{version}-%{release}
afe2d598 547Requires: iconv
ed99f1fe 548Provides: vi-editor
afe2d598
AF
549Obsoletes: vim-X11
550
551%description -n gvim-bonobo
552The classic Unix text editor now also under X Window System! This
553version is build as bonobo component.
554
5cf83aa7
JR
555%description -n gvim-bonobo -l pl.UTF-8
556Wersja edytora Vim pracująca w środowisku X Window, zbudowana jako
69b192f0
JB
557element bonobo.
558
8627c94f 559%prep
41f33985 560%setup -q -n %{name}70 -b1 -b2
db58c86e 561%patch0 -p1
357ae4b4 562%patch1 -p1
2f99b393 563%patch2 -p1
d1abaab5
AG
564%patch3 -p1
565%patch4 -p1
d0793c9f 566%patch5 -p1
64570325 567%patch6 -p1
d6de9a65 568%patch7 -p1
19d8e711 569%patch8 -p1
d6de9a65
AG
570%patch9 -p1
571%patch10 -p0
572%patch11 -p1
19d8e711 573%patch12 -p1
d6de9a65
AG
574%patch13 -p1
575%patch14 -p1
576%patch15 -p1
7f5bd298 577%patch16 -p1
d6de9a65
AG
578%patch17 -p0
579%patch18 -p0
d1abaab5
AG
580%patch19 -p1
581%patch20 -p1
582%patch21 -p1
d6de9a65 583%patch22 -p1
9c95080e 584%patch23 -p1
d6de9a65 585
96eaec6a 586# official patches
41f33985
AM
587%patch199 -p0
588%patch200 -p0
96eaec6a
AG
589%patch201 -p0
590%patch202 -p0
591%patch203 -p0
592%patch204 -p0
41f33985 593%patch205 -p0
96eaec6a
AG
594%patch206 -p0
595%patch207 -p0
596%patch208 -p0
597%patch209 -p0
598%patch210 -p0
599%patch211 -p0
600%patch212 -p0
601%patch213 -p0
602%patch214 -p0
603%patch215 -p0
604%patch216 -p0
605%patch217 -p0
ba352f89
AG
606%patch218 -p0
607%patch219 -p0
608%patch220 -p0
609%patch221 -p0
610%patch222 -p0
9f49ec19
AG
611%patch223 -p0
612%patch224 -p0
613%patch225 -p0
614%patch226 -p0
41f33985
AM
615%patch227 -p0
616%patch228 -p0
9f49ec19
AG
617%patch229 -p0
618%patch230 -p0
619%patch231 -p0
41f33985 620%patch232 -p0
9f49ec19
AG
621%patch233 -p0
622%patch234 -p0
623%patch235 -p0
96eaec6a 624
d6de9a65
AG
625# bonobo
626%if %{with bonobo}
627%patch100 -p1
628%patch101 -p1
629%patch102 -p1
630%patch103 -p1
631%endif
632
633# home etc
634%{?with_home_etc:%patch104 -p1}
635
636# selinux
637%{?with_selinux:%patch105 -p1}
99890e04 638
e8531d99 639# recognize UUID= in /etc/fstab
aaf60aad
ER
640%patch106 -p1
641
9e18e433 642# autopaste patch - automatically switch to paste mode if `really fast typing'
e8531d99 643# situation happens
9e18e433
ER
644%patch107 -p1
645
646%patch108 -p1
e8531d99 647
19d8e711
AG
648install %{SOURCE14} runtime/indent
649install %{SOURCE15} runtime/colors
650install %{SOURCE16} runtime/syntax
32e75812 651install %{SOURCE17} runtime/syntax
b88c7a3a 652install %{SOURCE18} runtime/syntax
19d8e711 653install %{SOURCE19} runtime/ftplugin/spec.vim
abf48674 654
8627c94f 655%build
96eaec6a 656cd src
34ddecbc 657%{__autoconf}
ffce5254
JB
658# needed to prevent deconfiguring
659cp -f configure auto
8490904a 660
69b192f0 661install -d bin
afe2d598
AF
662
663%if %{with bonobo}
664%{__make} distclean
665%configure \
afe2d598
AF
666 --with-features=huge \
667 --enable-gui=gnome2 \
668 --enable-bonobo \
669 --enable-gtk2-check \
670 --enable-gnome-check \
671 --with-x \
672 %{!?with_perl:--disable-perlinterp} \
673 %{?with_perl:--enable-perlinterp} \
674 %{!?with_python:--disable-pythoninterp} \
675 %{?with_python:--enable-pythoninterp} \
676 %{!?with_ruby:--disable-rubyinterp} \
677 %{?with_ruby:--enable-rubyinterp} \
678 %{!?with_tcl:--disable-tclinterp} \
679 %{?with_tcl:--enable-tclinterp} \
680 --disable-gpm \
681 --enable-cscope \
682 --enable-nls \
683 --with-modifiedby="PLD Linux Distribution" \
684 --with-compiledby="PLD Linux Distribution"
685
686%{__make} vim-component vim-factory Vim_Control.server
687mv vim-component vim-factory Vim_Control.server bin/
688%endif
689
d6e63bbe 690%if %{with static}
8490904a
JB
691%{__make} distclean
692LDFLAGS="%{rpmldflags} -static"
693%configure \
694 --disable-gui \
695 --without-x \
696 --disable-perlinterp \
697 --disable-pythoninterp \
698 --disable-rubyinterp \
699 --disable-tclinterp \
700 --disable-cscope \
701 --disable-gpm \
702 --disable-multibyte \
d6e63bbe 703 %{?with_bonobo:--disable-bonobo} \
8490904a 704 --with-features=small \
00311d17 705 --with-tlib="ncurses -ltinfo" \
a82d590c 706 --disable-nls \
e9089381 707 --with-modifiedby="PLD Linux Distribution" \
708 --with-compiledby="PLD Linux Distribution"
8490904a 709
725c510f
JB
710%{__make} vim
711
afe2d598 712mv -f vim bin/vim.static
8490904a
JB
713LDFLAGS="%{rpmldflags}"
714%endif
715
d924622d 716%{__make} distclean
84c81dea 717%configure \
718 --disable-gui \
719 --without-x \
d6e63bbe
AF
720 %{!?with_perl:--disable-perlinterp} \
721 %{?with_perl:--enable-perlinterp} \
722 %{!?with_python:--disable-pythoninterp} \
723 %{?with_python:--enable-pythoninterp} \
724 %{!?with_ruby:--disable-rubyinterp} \
725 %{?with_ruby:--enable-rubyinterp} \
726 %{!?with_tcl:--disable-tclinterp} \
727 %{?with_tcl:--enable-tclinterp} \
728 %{?with_bonobo:--disable-bonobo} \
d5d214fb 729 --enable-cscope \
f22e9322 730 --enable-gpm \
731 --with-features=huge \
d5d214fb 732 --enable-multibyte \
ba794b83 733 --with-tlib="ncurses -ltinfo" \
a82d590c 734 --enable-nls \
e9089381 735 --with-modifiedby="PLD Linux Distribution" \
736 --with-compiledby="PLD Linux Distribution"
d5d214fb 737
725c510f
JB
738%{__make} vim
739
afe2d598 740mv -f vim bin/vim.ncurses
a04973b9 741
d6e63bbe 742%if %{with athena}
fc7569f7 743%{__make} distclean
a82d590c 744%configure \
f22e9322 745 --with-features=huge \
f73b565e 746 --enable-gui=athena \
747 --with-x \
d6e63bbe
AF
748 %{!?with_perl:--disable-perlinterp} \
749 %{?with_perl:--enable-perlinterp} \
750 %{!?with_python:--disable-pythoninterp} \
751 %{?with_python:--enable-pythoninterp} \
752 %{!?with_ruby:--disable-rubyinterp} \
753 %{?with_ruby:--enable-rubyinterp} \
754 %{!?with_tcl:--disable-tclinterp} \
755 %{?with_tcl:--enable-tclinterp} \
756 %{?with_bonobo:--disable-bonobo} \
d5d214fb
AM
757 --enable-cscope \
758 --enable-fontset \
759 --disable-gpm \
760 --without-gnome \
00311d17 761 --with-tlib="ncurses -ltinfo" \
a82d590c 762 --enable-nls \
e9089381 763 --with-modifiedby="PLD Linux Distribution" \
764 --with-compiledby="PLD Linux Distribution"
a82d590c 765
fc7569f7 766%{__make} vim
afe2d598 767mv -f vim bin/gvim.athena
fc7569f7 768%endif
84c81dea 769
a04973b9 770
d6e63bbe 771%if %{with motif}
fc7569f7 772%{__make} distclean
a82d590c 773%configure \
f22e9322 774 --with-features=huge \
f73b565e 775 --enable-gui=motif \
776 --with-x \
d6e63bbe
AF
777 %{!?with_perl:--disable-perlinterp} \
778 %{?with_perl:--enable-perlinterp} \
779 %{!?with_python:--disable-pythoninterp} \
780 %{?with_python:--enable-pythoninterp} \
781 %{!?with_ruby:--disable-rubyinterp} \
782 %{?with_ruby:--enable-rubyinterp} \
783 %{!?with_tcl:--disable-tclinterp} \
784 %{?with_tcl:--enable-tclinterp} \
785 %{?with_bonobo:--disable-bonobo} \
d5d214fb
AM
786 --enable-multibyte \
787 --enable-cscope \
788 --enable-fontset \
789 --disable-gpm \
790 --without-gnome \
00311d17 791 --with-tlib="ncurses -ltinfo" \
a82d590c 792 --enable-nls \
e9089381 793 --with-modifiedby="PLD Linux Distribution" \
794 --with-compiledby="PLD Linux Distribution"
e7cb0e5d 795
fc7569f7 796%{__make} vim
afe2d598 797mv -f vim bin/gvim.motif
fc7569f7 798%endif
8627c94f 799
d6e63bbe 800%if %{with gtk}
fc7569f7 801%{__make} distclean
a82d590c 802%configure \
f22e9322 803 --with-features=huge \
db58c86e 804 --enable-gui=gtk2 \
805 --enable-gtk2-check \
f73b565e 806 --with-x \
d6e63bbe
AF
807 %{!?with_perl:--disable-perlinterp} \
808 %{?with_perl:--enable-perlinterp} \
809 %{!?with_python:--disable-pythoninterp} \
810 %{?with_python:--enable-pythoninterp} \
811 %{!?with_ruby:--disable-rubyinterp} \
812 %{?with_ruby:--enable-rubyinterp} \
813 %{!?with_tcl:--disable-tclinterp} \
814 %{?with_tcl:--enable-tclinterp} \
815 %{?with_bonobo:--disable-bonobo} \
d5d214fb
AM
816 --disable-gpm \
817 --enable-cscope \
00311d17 818 --with-tlib="ncurses -ltinfo" \
a82d590c 819 --enable-nls \
e9089381 820 --with-modifiedby="PLD Linux Distribution" \
821 --with-compiledby="PLD Linux Distribution"
a82d590c 822
fc7569f7 823%{__make} vim
afe2d598 824mv -f vim bin/gvim.gtk
fc7569f7 825%endif
8627c94f 826
d6e63bbe 827%if %{with gnome}
fc7569f7 828%{__make} distclean
a82d590c 829%configure \
f22e9322 830 --with-features=huge \
db58c86e 831 --enable-gui=gnome2 \
afe2d598 832 %{?with_bonobo:--disable-bonobo} \
db58c86e 833 --enable-gtk2-check \
834 --enable-gnome-check \
d5d214fb 835 --with-x \
d6e63bbe
AF
836 %{!?with_perl:--disable-perlinterp} \
837 %{?with_perl:--enable-perlinterp} \
838 %{!?with_python:--disable-pythoninterp} \
839 %{?with_python:--enable-pythoninterp} \
840 %{!?with_ruby:--disable-rubyinterp} \
841 %{?with_ruby:--enable-rubyinterp} \
842 %{!?with_tcl:--disable-tclinterp} \
843 %{?with_tcl:--enable-tclinterp} \
d5d214fb
AM
844 --disable-gpm \
845 --enable-cscope \
00311d17 846 --with-tlib="ncurses -ltinfo" \
a82d590c 847 --enable-nls \
e9089381 848 --with-modifiedby="PLD Linux Distribution" \
849 --with-compiledby="PLD Linux Distribution"
a82d590c 850
fc7569f7 851%{__make} vim
afe2d598 852mv -f vim bin/gvim.gnome
fc7569f7 853%endif
d5d214fb 854
afe2d598
AF
855%{__make} xxd/xxd languages
856
8627c94f 857%install
858rm -rf $RPM_BUILD_ROOT
0b31d255 859
f22e9322 860install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
d5d214fb 861 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \
474e8862 862 $RPM_BUILD_ROOT%{_desktopdir}
46f826dd 863
f76e6f17 864%{__make} -j1 install \
a82d590c 865 DESTDIR=$RPM_BUILD_ROOT
7ba74caf 866
310b65f3 867rm -f $RPM_BUILD_ROOT%{_bindir}/*
8627c94f 868
b93a0a21 869%if %{with static}
baa4aaf8 870install src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
871install src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
b93a0a21 872%else
baa4aaf8 873install src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
b93a0a21
AF
874ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
875%endif
baa4aaf8 876install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
877install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
a7fbf53c 878
9c95080e 879# Moved into patch
880#
881# rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1
882# install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1
883# install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1
884# install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1
885# echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1
886# echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1
887# echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1
888# echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
4ae2e5e0 889
84c81dea 890echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
891echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
8627c94f 892
9c95080e 893# not supported directories
894rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
895
64570325 896mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc
d5d214fb 897mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc
8627c94f 898
4399a7e9
JB
899ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
900ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
923c746f 901ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
4399a7e9 902ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
d5d214fb
AM
903ln -sf vi $RPM_BUILD_ROOT/bin/ex
904ln -sf vi $RPM_BUILD_ROOT/bin/view
905ln -sf vi $RPM_BUILD_ROOT/bin/rview
84c81dea 906
0f99c50f
PG
907install %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir}
908
b93a0a21 909%if %{with athena}
baa4aaf8 910install src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
eab7da3d 911install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
912%endif
913%if %{with motif}
baa4aaf8 914install src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
eab7da3d 915install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
916%endif
917%if %{with gnome}
baa4aaf8 918install src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
b93a0a21
AF
919install %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir}
920%endif
921%if %{with gtk}
baa4aaf8 922install src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
b93a0a21 923ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
b93a0a21 924ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
4399a7e9 925ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
b93a0a21 926ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
4399a7e9 927ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
eab7da3d 928install %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21 929%endif
8627c94f 930
ef0fdc18 931install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
932install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png
933install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png
934install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png
935
6f41d12a 936# Bonobo
d6e63bbe 937%if %{with bonobo}
6f41d12a 938install -d $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
afe2d598 939install src/bin/Vim_Control.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
baa4aaf8 940install src/bin/vim-{component,factory} $RPM_BUILD_ROOT%{_bindir}
6f41d12a 941%endif
942
41f33985 943bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
9c95080e 944
41f33985 945unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4}
9e79ff1a 946
a76f8cb4 947install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
8e79b441 948> $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
9f5fc2a1 949
8627c94f 950%clean
951rm -rf $RPM_BUILD_ROOT
952
b1844844 953%post
7285c5a1 954[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
b1844844 955
956%postun
7285c5a1 957[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
b1844844 958
959%post -n gvim-athena
7285c5a1 960[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
b1844844 961
962%postun -n gvim-athena
7285c5a1 963[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
b1844844 964
965%post -n gvim-motif
7285c5a1 966[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
b1844844 967
968%postun -n gvim-motif
7285c5a1 969[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
b1844844 970
971%post -n gvim-gtk
7285c5a1 972[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
70502921 973%update_icon_cache hicolor
b1844844 974
975%postun -n gvim-gtk
7285c5a1 976[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
70502921 977%update_icon_cache hicolor
b1844844 978
979%post -n gvim-gnome
9c95080e 980%update_desktop_database_post
70502921 981%update_icon_cache hicolor
b1844844 982
983%postun -n gvim-gnome
9c95080e 984%update_desktop_database_postun
70502921 985%update_icon_cache hicolor
b1844844 986
84c81dea 987%files
988%defattr(644,root,root,755)
4399a7e9
JB
989%attr(755,root,root) %{_bindir}/eview
990%attr(755,root,root) %{_bindir}/evim
84c81dea 991%attr(755,root,root) %{_bindir}/rvim
4399a7e9
JB
992%attr(755,root,root) %{_bindir}/vim
993%attr(755,root,root) %{_bindir}/vimdiff
994%{_mandir}/man1/eview.1*
995%{_mandir}/man1/evim.1*
996%{_mandir}/man1/rvim.1*
997%{_mandir}/man1/vimdiff.1*
998%lang(fi) %{_mandir}/fi/man1/rvim.1*
999%lang(fr) %{_mandir}/fr/man1/eview.1*
1000%lang(fr) %{_mandir}/fr/man1/evim.1*
1001%lang(fr) %{_mandir}/fr/man1/rvim.1*
1002%lang(fr) %{_mandir}/fr/man1/vimdiff.1*
1003%lang(id) %{_mandir}/id/man1/rvim.1*
1004%lang(it) %{_mandir}/it/man1/eview.1*
1005%lang(it) %{_mandir}/it/man1/evim.1*
1006%lang(it) %{_mandir}/it/man1/rvim.1*
1007%lang(it) %{_mandir}/it/man1/vimdiff.1*
1008%lang(pl) %{_mandir}/pl/man1/eview.1*
1009%lang(pl) %{_mandir}/pl/man1/evim.1*
1010%lang(pl) %{_mandir}/pl/man1/rvim.1*
1011%lang(pl) %{_mandir}/pl/man1/vimdiff.1*
1012%lang(ru) %{_mandir}/ru/man1/eview.1*
1013%lang(ru) %{_mandir}/ru/man1/evim.1*
1014%lang(ru) %{_mandir}/ru/man1/rvim.1*
1015%lang(ru) %{_mandir}/ru/man1/vimdiff.1*
0f99c50f 1016%{_desktopdir}/%{name}.desktop
84c81dea 1017
d6e63bbe 1018%if %{with static}
84c81dea 1019%files static
2576aec7 1020%endif
ce504e8b 1021%defattr(644,root,root,755)
ce504e8b 1022%attr(755,root,root) /bin/*
671e058b
AF
1023%{_mandir}/man1/vi.1*
1024%{_mandir}/man1/ex.1*
671e058b
AF
1025%{_mandir}/man1/view.1*
1026%{_mandir}/man1/rview.1*
0d564f51
JB
1027%lang(fi) %{_mandir}/fi/man1/vi.1*
1028%lang(fi) %{_mandir}/fi/man1/ex.1*
1029%lang(fi) %{_mandir}/fi/man1/view.1*
1030%lang(fi) %{_mandir}/fi/man1/rview.1*
9c95080e 1031%lang(fr) %{_mandir}/fr/man1/vi.1*
1032%lang(fr) %{_mandir}/fr/man1/ex.1*
1033%lang(fr) %{_mandir}/fr/man1/view.1*
1034%lang(fr) %{_mandir}/fr/man1/rview.1*
0d564f51
JB
1035%lang(id) %{_mandir}/id/man1/vi.1*
1036%lang(id) %{_mandir}/id/man1/ex.1*
1037%lang(id) %{_mandir}/id/man1/view.1*
1038%lang(id) %{_mandir}/id/man1/rview.1*
9c95080e 1039#%lang(it) %{_mandir}/it/man1/vi.1*
1040%lang(it) %{_mandir}/it/man1/ex.1*
1041%lang(it) %{_mandir}/it/man1/view.1*
1042%lang(it) %{_mandir}/it/man1/rview.1*
1043%lang(pl) %{_mandir}/pl/man1/vi.1*
1044%lang(pl) %{_mandir}/pl/man1/ex.1*
1045%lang(pl) %{_mandir}/pl/man1/view.1*
1046%lang(pl) %{_mandir}/pl/man1/rview.1*
1047#%lang(ru) %{_mandir}/ru/man1/vi.1*
1048%lang(ru) %{_mandir}/ru/man1/ex.1*
1049%lang(ru) %{_mandir}/ru/man1/view.1*
1050%lang(ru) %{_mandir}/ru/man1/rview.1*
ce504e8b 1051
2576aec7
AF
1052%files -n xxd
1053%defattr(644,root,root,755)
1054%attr(755,root,root) %{_bindir}/xxd
1055%{_mandir}/man1/xxd.1*
9c95080e 1056%lang(fr) %{_mandir}/fr/man1/xxd.1*
1057%lang(it) %{_mandir}/it/man1/xxd.1*
1058%lang(pl) %{_mandir}/pl/man1/xxd.1*
1059%lang(ru) %{_mandir}/ru/man1/xxd.1*
2576aec7 1060
8627c94f 1061%files rt
1062%defattr(644,root,root,755)
307833bf 1063%attr(755,root,root) %{_bindir}/vimtutor
54e1a2a3 1064%dir %{_sysconfdir}/vim
baa4aaf8 1065%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1066%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
84c81dea 1067
1a773fc5 1068%dir %{_datadir}/vim
d5d214fb 1069%dir %{_datadir}/vim/v*
05a269bd 1070%dir %{_datadir}/vim/v*/doc
1a881f20 1071%doc %{_datadir}/vim/v*/doc/*.txt
17bdc5ff 1072%lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx
1a881f20 1073%attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl
baa4aaf8 1074%verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags
1075%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl
d5d214fb
AM
1076%{_datadir}/vim/v*/ftplugin
1077%{_datadir}/vim/v*/indent
1078%{_datadir}/vim/v*/keymap
1079%dir %{_datadir}/vim/v*/lang
1a881f20 1080%doc %{_datadir}/vim/v*/lang/README*
42d18f12 1081
59274d07 1082# just add after/ and ftdetect/ separately, other dirs caught by globs above or below
dd179d92
ER
1083%{_datadir}/vim/vimfiles/after
1084%{_datadir}/vim/vimfiles/ftdetect
9f5fc2a1 1085
0b1385e8 1086%lang(af) %{_datadir}/vim/v*/lang/menu_af*
96eaec6a 1087%lang(af) %{_datadir}/vim/v*/lang/af/
0b1385e8 1088%lang(ca) %{_datadir}/vim/v*/lang/menu_ca*
96eaec6a 1089%lang(ca) %{_datadir}/vim/v*/lang/ca/
0b1385e8
AM
1090%lang(cs) %{_datadir}/vim/v*/lang/menu_cs*
1091%lang(cs) %{_datadir}/vim/v*/lang/menu_*czech*
96eaec6a 1092%lang(cs) %{_datadir}/vim/v*/lang/cs/
0b1385e8
AM
1093%lang(de) %{_datadir}/vim/v*/lang/menu_de*
1094%lang(de) %{_datadir}/vim/v*/lang/menu_*german*
96eaec6a 1095%lang(de) %{_datadir}/vim/v*/lang/de/
23543ee3 1096%lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb*
0b1385e8 1097%lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english*
96eaec6a
AG
1098%lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/
1099%lang(es) %{_datadir}/vim/v*/lang/menu_es*
1100%lang(es) %{_datadir}/vim/v*/lang/menu_*spanish*
1101%lang(es) %{_datadir}/vim/v*/lang/es/
0b1385e8 1102%lang(fr) %{_datadir}/vim/v*/lang/menu_fr*
96eaec6a 1103%lang(fr) %{_datadir}/vim/v*/lang/fr/
37e3507e 1104%lang(ga) %{_datadir}/vim/v*/lang/ga/
0b1385e8
AM
1105%lang(hu) %{_datadir}/vim/v*/lang/menu_hu*
1106%lang(it) %{_datadir}/vim/v*/lang/menu_it*
96eaec6a 1107%lang(it) %{_datadir}/vim/v*/lang/it/
0b1385e8 1108%lang(ja) %{_datadir}/vim/v*/lang/menu_ja*
96eaec6a 1109%lang(ja) %{_datadir}/vim/v*/lang/ja/
0b1385e8 1110%lang(ko) %{_datadir}/vim/v*/lang/menu_ko*
96eaec6a 1111%lang(ko) %{_datadir}/vim/v*/lang/ko/
0b1385e8
AM
1112%lang(nl) %{_datadir}/vim/v*/lang/menu_nl*
1113%lang(nb) %{_datadir}/vim/v*/lang/menu_no*
96eaec6a 1114%lang(nb) %{_datadir}/vim/v*/lang/no/
0b1385e8
AM
1115%lang(pl) %{_datadir}/vim/v*/lang/menu_pl*
1116%lang(pl) %{_datadir}/vim/v*/lang/menu_*polish*
96eaec6a 1117%lang(pl) %{_datadir}/vim/v*/lang/pl/
0b1385e8
AM
1118%lang(pt) %{_datadir}/vim/v*/lang/menu_pt*
1119%lang(ru) %{_datadir}/vim/v*/lang/menu_ru*
96eaec6a 1120%lang(ru) %{_datadir}/vim/v*/lang/ru/
0b1385e8
AM
1121%lang(sk) %{_datadir}/vim/v*/lang/menu_sk*
1122%lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak*
96eaec6a 1123%lang(sk) %{_datadir}/vim/v*/lang/sk/
0b1385e8
AM
1124%lang(sr) %{_datadir}/vim/v*/lang/menu_sr*
1125%lang(sv) %{_datadir}/vim/v*/lang/menu_sv*
96eaec6a 1126%lang(sv) %{_datadir}/vim/v*/lang/sv/
0b1385e8 1127%lang(uk) %{_datadir}/vim/v*/lang/menu_uk*
37e3507e 1128%lang(uk) %{_datadir}/vim/v*/lang/uk/
9bc905eb 1129%lang(vi) %{_datadir}/vim/v*/lang/menu_vi*
37e3507e 1130%lang(vi) %{_datadir}/vim/v*/lang/vi/
7a778761 1131%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936*
ec23c5c9 1132%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312*
42d18f12 1133%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn*
0b1385e8 1134%lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb*
96eaec6a 1135%lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/
7a778761
JB
1136%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950*
1137%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5*
42d18f12 1138%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw*
0b1385e8 1139%lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan*
96eaec6a 1140%lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/
42d18f12 1141
1d2cf3d5 1142%dir %{_datadir}/vim/v*/spell
3558f1d8 1143%{_datadir}/vim/v*/spell/cleanadd.vim
9c95080e 1144%lang(he) %{_datadir}/vim/v*/spell/he.*
1145%lang(yi) %{_datadir}/vim/v*/spell/yi.*
9bc905eb 1146
d5d214fb
AM
1147%{_datadir}/vim/v*/macros
1148%{_datadir}/vim/v*/plugin
23543ee3 1149%{_datadir}/vim/v*/print
d5d214fb 1150%{_datadir}/vim/v*/syntax
a82d590c 1151%{_datadir}/vim/v*/tools
d5d214fb 1152%{_datadir}/vim/v*/tutor
ba50d0a1 1153%{_datadir}/vim/v*/colors
a0f9a135 1154%{_datadir}/vim/v*/compiler
9bc905eb 1155%{_datadir}/vim/v*/autoload
d5d214fb 1156%{_datadir}/vim/v*/*.vim
8627c94f 1157
4399a7e9
JB
1158%{_mandir}/man1/rvim.1*
1159%{_mandir}/man1/vim.1*
1160%{_mandir}/man1/vimtutor.1*
1161%lang(fi) %{_mandir}/fi/man1/rvim.1*
1162%lang(fi) %{_mandir}/fi/man1/vim.1*
1163%lang(fr) %{_mandir}/fr/man1/rvim.1*
1164%lang(fr) %{_mandir}/fr/man1/vim.1*
1165%lang(fr) %{_mandir}/fr/man1/vimtutor.1*
1166%lang(id) %{_mandir}/id/man1/vim.1*
1167%lang(it) %{_mandir}/it/man1/vim.1*
1168%lang(it) %{_mandir}/it/man1/vimtutor.1*
1169%lang(pl) %{_mandir}/pl/man1/vim.1*
1170%lang(pl) %{_mandir}/pl/man1/vimtutor.1*
1171%lang(ru) %{_mandir}/ru/man1/vim.1*
1172%lang(ru) %{_mandir}/ru/man1/vimtutor.1*
64bf7ae0 1173%{_iconsdir}/hicolor/16x16/apps/vim.png
1174%{_iconsdir}/hicolor/32x32/apps/vim.png
1175%{_iconsdir}/hicolor/48x48/apps/vim.png
1176
4399a7e9
JB
1177%files spell-en
1178%defattr(644,root,root,755)
1179%{_datadir}/vim/v*/spell/en.*.*
1180
d6e63bbe 1181%if %{with athena}
f22e9322 1182%files -n gvim-athena
1183%defattr(644,root,root,755)
c983f1ff 1184%attr(755,root,root) %{_bindir}/gvim.athena
eab7da3d 1185%{_desktopdir}/gvim-athena.desktop
f22e9322 1186%endif
1187
d6e63bbe 1188%if %{with motif}
f22e9322 1189%files -n gvim-motif
1190%defattr(644,root,root,755)
c983f1ff 1191%attr(755,root,root) %{_bindir}/gvim.motif
eab7da3d 1192%{_desktopdir}/gvim-motif.desktop
f22e9322 1193%endif
1194
d6e63bbe 1195%if %{with gtk}
f22e9322 1196%files -n gvim-gtk
1197%defattr(644,root,root,755)
c983f1ff 1198%attr(755,root,root) %{_bindir}/gvim.gtk
4399a7e9 1199%attr(755,root,root) %{_bindir}/gvimdiff
c983f1ff 1200%attr(755,root,root) %{_bindir}/rgvim
1201%attr(755,root,root) %{_bindir}/rgview
1202%attr(755,root,root) %verify(not link) %{_bindir}/gvim
4399a7e9
JB
1203%{_mandir}/man1/gvi*
1204%{_mandir}/man1/rgv*
9c95080e 1205%lang(fi) %{_mandir}/fi/man1/gvi*
1206%lang(fi) %{_mandir}/fi/man1/rgv*
1207%lang(fr) %{_mandir}/fr/man1/gvi*
1208%lang(fr) %{_mandir}/fr/man1/rgv*
1209%lang(id) %{_mandir}/id/man1/gvi*
1210%lang(id) %{_mandir}/id/man1/rgv*
4399a7e9
JB
1211%lang(it) %{_mandir}/it/man1/gvi*
1212%lang(it) %{_mandir}/it/man1/rgv*
9c95080e 1213%lang(pl) %{_mandir}/pl/man1/gvi*
1214%lang(pl) %{_mandir}/pl/man1/rgv*
4399a7e9
JB
1215%lang(ru) %{_mandir}/ru/man1/gvi*
1216%lang(ru) %{_mandir}/ru/man1/rgv*
eab7da3d 1217%{_desktopdir}/gvim-gtk.desktop
f22e9322 1218%endif
1219
d6e63bbe 1220%if %{with gnome}
f22e9322 1221%files -n gvim-gnome
1222%defattr(644,root,root,755)
c983f1ff 1223%attr(755,root,root) %{_bindir}/gvim.gnome
474e8862 1224%{_desktopdir}/gvim-gnome.desktop
afe2d598
AF
1225%endif
1226
1227%if %{with bonobo}
1228%files -n gvim-bonobo
1229%defattr(644,root,root,755)
1230%attr(755,root,root) %{_bindir}/vim-component
1231%attr(755,root,root) %{_bindir}/vim-factory
1232%{_libdir}/bonobo/servers/*
f22e9322 1233%endif
This page took 0.316744 seconds and 4 git commands to generate.