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