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