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