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