]> git.pld-linux.org Git - packages/vim.git/blame - vim.spec
explicitly disable python3interp for small features flavors
[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 \
6f341cd9 875 --disable-python3interp \
8490904a
JB
876 --disable-rubyinterp \
877 --disable-tclinterp \
878 --disable-cscope \
879 --disable-gpm \
86a70f7f 880 --enable-multibyte \
fbe64536 881 --disable-nls
8490904a 882
b5c16c76 883LDFLAGS="%{rpmldflags}"
8490904a
JB
884%endif
885
06e19bfc
JK
886%if %{with light}
887build vim.light \
888 --disable-gui \
889 --without-x \
890 --with-features=small \
335fd127 891 --disable-canberra \
84e8f2ec 892 --disable-luainterp \
06e19bfc
JK
893 --disable-perlinterp \
894 --disable-pythoninterp \
6f341cd9 895 --disable-python3interp \
06e19bfc
JK
896 --disable-rubyinterp \
897 --disable-tclinterp \
898 --disable-cscope \
899 --disable-gpm \
900 --disable-nls
901%endif
902
03fb26b1
JK
903build vim.ncurses \
904 --disable-gui \
28ce0b6b 905 %{__with_without x} \
335fd127 906 --disable-canberra \
03fb26b1
JK
907 --with-features=huge
908
53feb092 909%if %{with x11}
03fb26b1
JK
910build vimx \
911 --disable-gui \
912 --with-x \
335fd127 913 --disable-canberra \
03fb26b1 914 --with-features=huge
53feb092 915%endif
03fb26b1 916
d6e63bbe 917%if %{with athena}
fbe64536 918build gvim.athena \
f22e9322 919 --with-features=huge \
f73b565e 920 --enable-gui=athena \
921 --with-x \
d5d214fb 922 --enable-fontset \
335fd127 923 --disable-canberra \
d5d214fb 924 --disable-gpm \
fbe64536 925 --without-gnome
84c81dea 926
fbe64536 927%endif
a04973b9 928
d6e63bbe 929%if %{with motif}
fbe64536 930build gvim.motif \
f22e9322 931 --with-features=huge \
f73b565e 932 --enable-gui=motif \
933 --with-x \
d5d214fb 934 --enable-multibyte \
d5d214fb 935 --enable-fontset \
335fd127 936 --disable-canberra \
d5d214fb 937 --disable-gpm \
fbe64536
ER
938 --without-gnome
939
fc7569f7 940%endif
8627c94f 941
d6e63bbe 942%if %{with gtk}
fbe64536 943build gvim.gtk \
f22e9322 944 --with-features=huge \
53feb092
JB
945%if %{with gtk3}
946 --enable-gui=gtk3 \
947 --enable-gtk3-check \
948%else
db58c86e 949 --enable-gui=gtk2 \
950 --enable-gtk2-check \
53feb092 951%endif
f73b565e 952 --with-x \
335fd127 953 --disable-canberra \
fbe64536
ER
954 --disable-gpm
955
fc7569f7 956%endif
8627c94f 957
d6e63bbe 958%if %{with gnome}
fbe64536 959build gvim.gnome \
f22e9322 960 --with-features=huge \
db58c86e 961 --enable-gui=gnome2 \
db58c86e 962 --enable-gtk2-check \
963 --enable-gnome-check \
d5d214fb 964 --with-x \
fbe64536
ER
965 --disable-gpm
966
967%endif
968
969# vim.heavy / gvim.heavy
970%if %{with heavy}
971build vim.heavy \
972 --with-features=huge \
973 --disable-gui \
974 --without-x \
84e8f2ec 975 --enable-luainterp \
fbe64536
ER
976 --enable-perlinterp \
977 --enable-pythoninterp \
37f9ebf5 978 --enable-python3interp \
fbe64536
ER
979 --enable-rubyinterp \
980 --enable-tclinterp \
14ce117f 981 --disable-canberra \
fbe64536
ER
982 --disable-gpm
983
984build gvim.heavy \
985 --with-features=huge \
986 --enable-gui=gnome2 \
987 --enable-gtk2-check \
988 --enable-gnome-check \
989 --with-x \
84e8f2ec 990 --enable-luainterp \
fbe64536
ER
991 --enable-perlinterp \
992 --enable-pythoninterp \
37f9ebf5 993 --enable-python3interp \
fbe64536
ER
994 --enable-rubyinterp \
995 --enable-tclinterp \
996 --disable-gpm
fc7569f7 997%endif
d5d214fb 998
afe2d598
AF
999%{__make} xxd/xxd languages
1000
8627c94f 1001%install
1002rm -rf $RPM_BUILD_ROOT
0b31d255 1003
f22e9322 1004install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
d1b4bd6a 1005 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim/ftdetect} \
474e8862 1006 $RPM_BUILD_ROOT%{_desktopdir}
46f826dd 1007
f76e6f17 1008%{__make} -j1 install \
a82d590c 1009 DESTDIR=$RPM_BUILD_ROOT
7ba74caf 1010
e4c87ae9
ER
1011# generic gvim from upstream, but we have bunch of subpackages
1012%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/gvim.desktop
1013
cd474ba8
AM
1014# fix nb/no
1015%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}
1016%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}.utf-8
1017%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.latin1.vim
1018%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.utf-8.vim
1019%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.latin1.vim
1020%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.utf-8.vim
1021
1022# remove unsupported locales
1023%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ko.UTF-8
1024%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
4e453333 1025%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.UTF-8
cd474ba8 1026%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_TW.UTF-8
d63b8acf
ER
1027%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs.cp1250
1028%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.sjis
1e434aad 1029%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.euc-jp
d63b8acf
ER
1030%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.UTF-8
1031%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.cp1250
1032%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ru.cp1251
1033%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sk.cp1250
1034%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk.cp1251
1035%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.cp936
cd474ba8 1036%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_zh_{cn,tw}.utf-8.vim
d63b8acf 1037
2440ded8
ER
1038%find_lang %{name}
1039
25a79fa4 1040%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
8627c94f 1041
b93a0a21 1042%if %{with static}
c64787d5
ER
1043install -p src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
1044install -p src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
b93a0a21 1045%else
c64787d5 1046install -p src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
b93a0a21
AF
1047ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
1048%endif
53feb092 1049%if %{with x11}
ac713ebd 1050install -p src/bin/vimx $RPM_BUILD_ROOT%{_bindir}/vimx
53feb092 1051%endif
c64787d5
ER
1052install -p src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
1053install -p src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
a7fbf53c 1054
8866285b
ER
1055echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
1056echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
8627c94f 1057
9c95080e 1058# not supported directories
25a79fa4 1059%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/??.*/
9c95080e 1060
a48bd85b
ER
1061mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/vimrc_example.vim,%{_sysconfdir}/vim/vimrc}
1062mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/gvimrc_example.vim,%{_sysconfdir}/vim/gvimrc}
8627c94f 1063
923c746f 1064ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
4399a7e9 1065ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
d5d214fb
AM
1066ln -sf vi $RPM_BUILD_ROOT/bin/ex
1067ln -sf vi $RPM_BUILD_ROOT/bin/view
1068ln -sf vi $RPM_BUILD_ROOT/bin/rview
84c81dea 1069
b93a0a21 1070%if %{with athena}
92b577fa
ER
1071install -p src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
1072cp -p gvim-athena.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1073%endif
1074%if %{with motif}
92b577fa
ER
1075install -p src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
1076cp -p gvim-motif.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1077%endif
1078%if %{with gnome}
92b577fa
ER
1079install -p src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
1080cp -p gvim-gnome.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1081%endif
1082%if %{with gtk}
c64787d5 1083install -p src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
92b577fa 1084cp -p gvim-gtk.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21 1085ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
25a79fa4
JB
1086ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/eview
1087ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/evim
b93a0a21 1088ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
4399a7e9 1089ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
b93a0a21 1090ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
4399a7e9 1091ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
b93a0a21 1092%endif
fbe64536 1093%if %{with heavy}
c64787d5
ER
1094install -p src/bin/vim.heavy $RPM_BUILD_ROOT%{_bindir}
1095install -p src/bin/gvim.heavy $RPM_BUILD_ROOT%{_bindir}
fbe64536 1096%endif
06e19bfc
JK
1097%if %{with light}
1098install -p src/bin/vim.light $RPM_BUILD_ROOT%{_bindir}
1099%endif
8627c94f 1100
6b9748f0
ER
1101install -d $RPM_BUILD_ROOT%{_pixmapsdir}
1102mv $RPM_BUILD_ROOT{%{_iconsdir}/hicolor/48x48/apps,%{_pixmapsdir}}/gvim.png
1103
08af4e73
JB
1104# locolor scheme no longer supported
1105%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/locolor
ef0fdc18 1106
b36b7b12 1107bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
9c95080e 1108
a76f8cb4 1109install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
8e79b441 1110> $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
9f5fc2a1 1111
27be4eca 1112# separate package
a48bd85b 1113%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/{ftplugin,syntax}/spec.vim
27be4eca 1114
2440ded8 1115# unuseful
25a79fa4
JB
1116%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/tools
1117%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
1118%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/check_locales.vim
1119%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
1120%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/fixdup.vim
1121%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
af865184 1122
8627c94f 1123%clean
1124rm -rf $RPM_BUILD_ROOT
1125
b1844844 1126%post
23fe3b70 1127[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1128
1129%postun
23fe3b70 1130[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1131
2116b940
JP
1132%post doc
1133%vim_doc_helptags
1134
1135%postun doc
1136%vim_doc_helptags
1137
b1844844 1138%post -n gvim-athena
23fe3b70 1139[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1140
1141%postun -n gvim-athena
23fe3b70 1142[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1143
1144%post -n gvim-motif
23fe3b70 1145[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1146
1147%postun -n gvim-motif
23fe3b70 1148[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1149
1150%post -n gvim-gtk
23fe3b70 1151[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
70502921 1152%update_icon_cache hicolor
b1844844 1153
1154%postun -n gvim-gtk
23fe3b70 1155[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
70502921 1156%update_icon_cache hicolor
b1844844 1157
1158%post -n gvim-gnome
9c95080e 1159%update_desktop_database_post
70502921 1160%update_icon_cache hicolor
b1844844 1161
1162%postun -n gvim-gnome
9c95080e 1163%update_desktop_database_postun
70502921 1164%update_icon_cache hicolor
b1844844 1165
53feb092
JB
1166%post -n gvim-heavy
1167%update_icon_cache hicolor
1168
1169%postun -n gvim-heavy
1170%update_icon_cache hicolor
1171
84c81dea 1172%files
1173%defattr(644,root,root,755)
84c81dea 1174%attr(755,root,root) %{_bindir}/rvim
4399a7e9
JB
1175%attr(755,root,root) %{_bindir}/vim
1176%attr(755,root,root) %{_bindir}/vimdiff
4399a7e9
JB
1177%{_mandir}/man1/rvim.1*
1178%{_mandir}/man1/vimdiff.1*
cbc57471
JB
1179%lang(da) %{_mandir}/da/man1/rvim.1*
1180%lang(da) %{_mandir}/da/man1/vimdiff.1*
1181%lang(de) %{_mandir}/de/man1/rvim.1*
4399a7e9 1182%lang(fi) %{_mandir}/fi/man1/rvim.1*
4399a7e9
JB
1183%lang(fr) %{_mandir}/fr/man1/rvim.1*
1184%lang(fr) %{_mandir}/fr/man1/vimdiff.1*
1185%lang(id) %{_mandir}/id/man1/rvim.1*
4399a7e9
JB
1186%lang(it) %{_mandir}/it/man1/rvim.1*
1187%lang(it) %{_mandir}/it/man1/vimdiff.1*
1e434aad 1188%lang(ja) %{_mandir}/ja/man1/rvim.1*
1e434aad 1189%lang(ja) %{_mandir}/ja/man1/vimdiff.1*
4399a7e9
JB
1190%lang(pl) %{_mandir}/pl/man1/rvim.1*
1191%lang(pl) %{_mandir}/pl/man1/vimdiff.1*
4399a7e9
JB
1192%lang(ru) %{_mandir}/ru/man1/rvim.1*
1193%lang(ru) %{_mandir}/ru/man1/vimdiff.1*
cbc57471
JB
1194%lang(tr) %{_mandir}/tr/man1/rvim.1*
1195%lang(tr) %{_mandir}/tr/man1/vimdiff.1*
92b577fa 1196%{_desktopdir}/vim.desktop
84c81dea 1197
d6e63bbe 1198%if %{with static}
84c81dea 1199%files static
2576aec7 1200%endif
ce504e8b 1201%defattr(644,root,root,755)
25a79fa4
JB
1202%attr(755,root,root) /bin/ex
1203%attr(755,root,root) /bin/rview
1204%attr(755,root,root) /bin/vi
1205%attr(755,root,root) /bin/view
671e058b
AF
1206%{_mandir}/man1/vi.1*
1207%{_mandir}/man1/ex.1*
671e058b
AF
1208%{_mandir}/man1/view.1*
1209%{_mandir}/man1/rview.1*
cbc57471
JB
1210%lang(da) %{_mandir}/da/man1/ex.1*
1211%lang(da) %{_mandir}/da/man1/rview.1*
1212%lang(da) %{_mandir}/da/man1/view.1*
1213%lang(de) %{_mandir}/de/man1/ex.1*
1214%lang(de) %{_mandir}/de/man1/rview.1*
1215%lang(de) %{_mandir}/de/man1/view.1*
0d564f51
JB
1216%lang(fi) %{_mandir}/fi/man1/vi.1*
1217%lang(fi) %{_mandir}/fi/man1/ex.1*
1218%lang(fi) %{_mandir}/fi/man1/view.1*
1219%lang(fi) %{_mandir}/fi/man1/rview.1*
9c95080e 1220%lang(fr) %{_mandir}/fr/man1/vi.1*
1221%lang(fr) %{_mandir}/fr/man1/ex.1*
1222%lang(fr) %{_mandir}/fr/man1/view.1*
1223%lang(fr) %{_mandir}/fr/man1/rview.1*
0d564f51
JB
1224%lang(id) %{_mandir}/id/man1/vi.1*
1225%lang(id) %{_mandir}/id/man1/ex.1*
1226%lang(id) %{_mandir}/id/man1/view.1*
1227%lang(id) %{_mandir}/id/man1/rview.1*
9c95080e 1228#%lang(it) %{_mandir}/it/man1/vi.1*
1229%lang(it) %{_mandir}/it/man1/ex.1*
1230%lang(it) %{_mandir}/it/man1/view.1*
1231%lang(it) %{_mandir}/it/man1/rview.1*
1e434aad
AM
1232%lang(ja) %{_mandir}/ja/man1/ex.1*
1233%lang(ja) %{_mandir}/ja/man1/view.1*
1234%lang(ja) %{_mandir}/ja/man1/rview.1*
9c95080e 1235%lang(pl) %{_mandir}/pl/man1/vi.1*
1236%lang(pl) %{_mandir}/pl/man1/ex.1*
1237%lang(pl) %{_mandir}/pl/man1/view.1*
1238%lang(pl) %{_mandir}/pl/man1/rview.1*
1239#%lang(ru) %{_mandir}/ru/man1/vi.1*
1240%lang(ru) %{_mandir}/ru/man1/ex.1*
1241%lang(ru) %{_mandir}/ru/man1/view.1*
1242%lang(ru) %{_mandir}/ru/man1/rview.1*
cbc57471
JB
1243%lang(tr) %{_mandir}/tr/man1/ex.1*
1244%lang(tr) %{_mandir}/tr/man1/view.1*
1245%lang(tr) %{_mandir}/tr/man1/rview.1*
ce504e8b 1246
2576aec7
AF
1247%files -n xxd
1248%defattr(644,root,root,755)
1249%attr(755,root,root) %{_bindir}/xxd
1250%{_mandir}/man1/xxd.1*
9c95080e 1251%lang(fr) %{_mandir}/fr/man1/xxd.1*
1252%lang(it) %{_mandir}/it/man1/xxd.1*
1e434aad 1253%lang(ja) %{_mandir}/ja/man1/xxd.1*
9c95080e 1254%lang(pl) %{_mandir}/pl/man1/xxd.1*
1255%lang(ru) %{_mandir}/ru/man1/xxd.1*
2576aec7 1256
2440ded8 1257%files rt -f %{name}.lang
8627c94f 1258%defattr(644,root,root,755)
54e1a2a3 1259%dir %{_sysconfdir}/vim
baa4aaf8 1260%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1261%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
84c81dea 1262
1a773fc5 1263%dir %{_datadir}/vim
7d12fced 1264%dir %{_datadir}/vim/doc
cab8ff93
ER
1265%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
1266%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
1267%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
da1d0714
JB
1268# X11 colours definition for colour name lookup
1269%{_datadir}/vim/rgb.txt
2eeaaace
ER
1270
1271%dir %{_datadir}/vim/vimfiles
1272%dir %{_datadir}/vim/vimfiles/doc
1273%dir %{_datadir}/vim/vimfiles/after
1274%dir %{_datadir}/vim/vimfiles/after/compiler
1275%dir %{_datadir}/vim/vimfiles/after/ftdetect
1276%dir %{_datadir}/vim/vimfiles/after/ftplugin
1277%dir %{_datadir}/vim/vimfiles/after/indent
1278%dir %{_datadir}/vim/vimfiles/after/plugin
1279%dir %{_datadir}/vim/vimfiles/after/spell
1280%dir %{_datadir}/vim/vimfiles/after/syntax
1281%dir %{_datadir}/vim/vimfiles/compiler
1282%dir %{_datadir}/vim/vimfiles/ftdetect
1283%dir %{_datadir}/vim/vimfiles/ftplugin
1284%dir %{_datadir}/vim/vimfiles/indent
1285%dir %{_datadir}/vim/vimfiles/plugin
1286%dir %{_datadir}/vim/vimfiles/spell
1287%dir %{_datadir}/vim/vimfiles/syntax
2440ded8 1288
a48bd85b
ER
1289%{_datadir}/vim/*.vim
1290
88e9fd4c 1291%dir %{_datadir}/vim/autoload
49168b34 1292%{_datadir}/vim/autoload/*complete.vim
3ee5bb1b 1293%doc %{_datadir}/vim/autoload/README.txt
c2287cf0
AM
1294%dir %{_datadir}/vim/autoload/dist
1295%{_datadir}/vim/autoload/dist/ft.vim
88e9fd4c 1296
d1b4bd6a
ER
1297%dir %{_datadir}/vim/ftdetect
1298
a48bd85b
ER
1299%dir %{_datadir}/vim/ftplugin
1300%doc %{_datadir}/vim/ftplugin/README.txt
1301%{_datadir}/vim/ftplugin/*.vim
ec7cce13 1302%{_datadir}/vim/ftplugin/logtalk.dict
a48bd85b
ER
1303
1304%dir %{_datadir}/vim/indent
1305%doc %{_datadir}/vim/indent/README.txt
1306%{_datadir}/vim/indent/*.vim
1307
1308%dir %{_datadir}/vim/keymap
1309%doc %{_datadir}/vim/keymap/README.txt
1310%{_datadir}/vim/keymap/*.vim
1311
a39abb00
AM
1312%{_datadir}/vim/pack
1313
a48bd85b
ER
1314%dir %{_datadir}/vim/plugin
1315%doc %{_datadir}/vim/plugin/README.txt
a48bd85b
ER
1316
1317%dir %{_datadir}/vim/syntax
1318%doc %{_datadir}/vim/syntax/README.txt
1319%{_datadir}/vim/syntax/*.vim
1320
1321%dir %{_datadir}/vim/colors
1322%doc %{_datadir}/vim/colors/README.txt
1323%{_datadir}/vim/colors/*.vim
8c2513ef
AM
1324%dir %{_datadir}/vim/colors/tools
1325%{_datadir}/vim/colors/tools/check_colors.vim
a48bd85b
ER
1326
1327%dir %{_datadir}/vim/lang
1328%doc %{_datadir}/vim/lang/README*
1329
1330%lang(af) %{_datadir}/vim/lang/menu_af*
1331%lang(ca) %{_datadir}/vim/lang/menu_ca*
1332%lang(cs) %{_datadir}/vim/lang/menu_cs*
1333%lang(cs) %{_datadir}/vim/lang/menu_*czech*
cbc57471 1334%lang(da) %{_datadir}/vim/lang/menu_da*
a48bd85b
ER
1335%lang(de) %{_datadir}/vim/lang/menu_de*
1336%lang(de) %{_datadir}/vim/lang/menu_*german*
1337%lang(en_GB) %{_datadir}/vim/lang/menu_en_gb*
1338%lang(en_GB) %{_datadir}/vim/lang/menu_*english*
1339%lang(eo) %{_datadir}/vim/lang/menu_eo.utf-8.vim
1340%lang(eo) %{_datadir}/vim/lang/menu_eo_eo.utf-8.vim
1341%lang(eo) %{_datadir}/vim/lang/menu_eo_xx.utf-8.vim
1342%lang(es) %{_datadir}/vim/lang/menu_es*
1343%lang(es) %{_datadir}/vim/lang/menu_*spanish*
1344%lang(fi) %{_datadir}/vim/lang/menu_fi.latin1.vim
1345%lang(fi) %{_datadir}/vim/lang/menu_fi.utf-8.vim
1346%lang(fi) %{_datadir}/vim/lang/menu_fi_fi.latin1.vim
1347%lang(fi) %{_datadir}/vim/lang/menu_fi_fi.utf-8.vim
1348%lang(fi) %{_datadir}/vim/lang/menu_finnish_finland.1252.vim
1349%lang(fr) %{_datadir}/vim/lang/menu_fr*
1350%lang(hu) %{_datadir}/vim/lang/menu_hu*
cbc57471 1351%lang(is) %{_datadir}/vim/lang/menu_is*
a48bd85b
ER
1352%lang(it) %{_datadir}/vim/lang/menu_it*
1353%lang(ja) %{_datadir}/vim/lang/menu_ja*
1354%lang(ko) %{_datadir}/vim/lang/menu_ko*
1355%lang(nl) %{_datadir}/vim/lang/menu_nl*
1356%lang(nb) %{_datadir}/vim/lang/menu_nb*
1357%lang(pl) %{_datadir}/vim/lang/menu_pl*
1358%lang(pl) %{_datadir}/vim/lang/menu_*polish*
1359%lang(pt) %{_datadir}/vim/lang/menu_pt*
1360%lang(ru) %{_datadir}/vim/lang/menu_ru*
1361%lang(sk) %{_datadir}/vim/lang/menu_sk*
1362%lang(sk) %{_datadir}/vim/lang/menu_*slovak*
1363%lang(sl) %{_datadir}/vim/lang/menu_sl_si*
1364%lang(sr) %{_datadir}/vim/lang/menu_sr*
1365%lang(sv) %{_datadir}/vim/lang/menu_sv*
cbc57471 1366%lang(tr) %{_datadir}/vim/lang/menu_tr*
a48bd85b
ER
1367%lang(uk) %{_datadir}/vim/lang/menu_uk*
1368%lang(vi) %{_datadir}/vim/lang/menu_vi*
1369%lang(zh_CN) %{_datadir}/vim/lang/menu_zh.cp936*
1370%lang(zh_CN) %{_datadir}/vim/lang/menu_zh.gb2312*
1371%lang(zh_CN) %{_datadir}/vim/lang/menu_zh_cn*
1372%lang(zh_CN) %{_datadir}/vim/lang/menu_*chinese*gb*
1373%lang(zh_TW) %{_datadir}/vim/lang/menu_zh.cp950*
1374%lang(zh_TW) %{_datadir}/vim/lang/menu_zh.big5*
1375%lang(zh_TW) %{_datadir}/vim/lang/menu_zh_tw*
1376%lang(zh_TW) %{_datadir}/vim/lang/menu_*taiwan*
1377
1378%dir %{_datadir}/vim/spell
1e434aad 1379%{_datadir}/vim/spell/spell.vim
a48bd85b
ER
1380%lang(he) %{_datadir}/vim/spell/he.*
1381%lang(yi) %{_datadir}/vim/spell/yi.*
9bc905eb 1382
4399a7e9 1383%{_mandir}/man1/vim.1*
cbc57471
JB
1384%lang(da) %{_mandir}/da/man1/vim.1*
1385%lang(de) %{_mandir}/de/man1/vim.1*
4399a7e9 1386%lang(fi) %{_mandir}/fi/man1/vim.1*
4399a7e9 1387%lang(fr) %{_mandir}/fr/man1/vim.1*
cbc57471
JB
1388%lang(id) %{_mandir}/id/man1/vim.1*
1389%lang(it) %{_mandir}/it/man1/vim.1*
1390%lang(ja) %{_mandir}/ja/man1/vim.1*
1391%lang(pl) %{_mandir}/pl/man1/vim.1*
1392%lang(ru) %{_mandir}/ru/man1/vim.1*
1393%lang(tr) %{_mandir}/tr/man1/vim.1*
6b9748f0 1394%{_pixmapsdir}/gvim.png
5def452f 1395
3ee5bb1b
ER
1396# plugins in base -rt package
1397%{_datadir}/vim/autoload/gzip.vim
1398%{_datadir}/vim/plugin/gzip.vim
1399%{_datadir}/vim/plugin/matchparen.vim
1400
2440ded8
ER
1401%files rt-extras
1402%defattr(644,root,root,755)
3ee5bb1b
ER
1403%{_datadir}/vim/plugin/*.vim
1404%{_datadir}/vim/autoload/*.vim
49168b34 1405%exclude %{_datadir}/vim/autoload/*complete.vim
3ee5bb1b 1406%{_datadir}/vim/autoload/xml
a48bd85b
ER
1407%{_datadir}/vim/compiler
1408%{_datadir}/vim/macros
1409%{_datadir}/vim/print
2440ded8 1410
3ee5bb1b
ER
1411# plugins in base -rt package
1412%exclude %{_datadir}/vim/autoload/gzip.vim
1413%exclude %{_datadir}/vim/plugin/gzip.vim
1414%exclude %{_datadir}/vim/plugin/matchparen.vim
1415
2440ded8
ER
1416%files doc
1417%defattr(644,root,root,755)
2440ded8 1418# English
f8957c50 1419%{_datadir}/vim/doc/*.txt
2440ded8
ER
1420
1421# Polish
f8957c50 1422%lang(pl) %{_datadir}/vim/doc/*.plx
2440ded8 1423
5def452f
ER
1424%files tutor
1425%defattr(644,root,root,755)
1426%attr(755,root,root) %{_bindir}/vimtutor
a48bd85b 1427%dir %{_datadir}/vim/tutor
f8585597 1428%{_datadir}/vim/tutor/tutor
a48bd85b
ER
1429
1430%{_datadir}/vim/tutor/README.txt
a48bd85b
ER
1431%{_datadir}/vim/tutor/tutor.vim
1432%{_datadir}/vim/tutor/tutor.utf-8
1433%lang(el) %{_datadir}/vim/tutor/README.el.cp737.txt
1434%lang(el) %{_datadir}/vim/tutor/README.el.txt
1435
1e434aad
AM
1436%lang(de) %{_datadir}/vim/tutor/tutor.bar
1437%lang(de) %{_datadir}/vim/tutor/tutor.bar.utf-8
98d45eb4 1438%lang(bg) %{_datadir}/vim/tutor/tutor.bg.utf-8
a48bd85b
ER
1439%lang(ca) %{_datadir}/vim/tutor/tutor.ca
1440%lang(ca) %{_datadir}/vim/tutor/tutor.ca.utf-8
1441%lang(cs) %{_datadir}/vim/tutor/tutor.cs
1442%lang(cs) %{_datadir}/vim/tutor/tutor.cs.cp1250
1443%lang(cs) %{_datadir}/vim/tutor/tutor.cs.utf-8
cbc57471
JB
1444%lang(da) %{_datadir}/vim/tutor/tutor.da
1445%lang(da) %{_datadir}/vim/tutor/tutor.da.utf-8
a48bd85b
ER
1446%lang(de) %{_datadir}/vim/tutor/tutor.de
1447%lang(de) %{_datadir}/vim/tutor/tutor.de.utf-8
1448%lang(el) %{_datadir}/vim/tutor/tutor.el
1449%lang(el) %{_datadir}/vim/tutor/tutor.el.cp737
1450%lang(el) %{_datadir}/vim/tutor/tutor.el.utf-8
37175aa8 1451%lang(eo) %{_datadir}/vim/tutor/tutor.eo
a48bd85b
ER
1452%lang(eo) %{_datadir}/vim/tutor/tutor.eo.utf-8
1453%lang(es) %{_datadir}/vim/tutor/tutor.es
1454%lang(es) %{_datadir}/vim/tutor/tutor.es.utf-8
1455%lang(fr) %{_datadir}/vim/tutor/tutor.fr
1456%lang(fr) %{_datadir}/vim/tutor/tutor.fr.utf-8
1457%lang(hr) %{_datadir}/vim/tutor/tutor.hr
1458%lang(hr) %{_datadir}/vim/tutor/tutor.hr.cp1250
1459%lang(hr) %{_datadir}/vim/tutor/tutor.hr.utf-8
1460%lang(hu) %{_datadir}/vim/tutor/tutor.hu
a48bd85b 1461%lang(hu) %{_datadir}/vim/tutor/tutor.hu.cp1250
4963cca1 1462%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
a48bd85b
ER
1463%lang(it) %{_datadir}/vim/tutor/tutor.it
1464%lang(it) %{_datadir}/vim/tutor/tutor.it.utf-8
1465%lang(ja) %{_datadir}/vim/tutor/tutor.ja.euc
1466%lang(ja) %{_datadir}/vim/tutor/tutor.ja.sjis
1467%lang(ja) %{_datadir}/vim/tutor/tutor.ja.utf-8
cbc57471 1468%lang(ko) %{_datadir}/vim/tutor/tutor.ko
a48bd85b
ER
1469%lang(ko) %{_datadir}/vim/tutor/tutor.ko.euc
1470%lang(ko) %{_datadir}/vim/tutor/tutor.ko.utf-8
cbc57471 1471%lang(lv) %{_datadir}/vim/tutor/tutor.lv.utf-8
1e434aad
AM
1472%lang(nl) %{_datadir}/vim/tutor/tutor.nl
1473%lang(nl) %{_datadir}/vim/tutor/tutor.nl.utf-8
a48bd85b
ER
1474%lang(nb) %{_datadir}/vim/tutor/tutor.nb
1475%lang(nb) %{_datadir}/vim/tutor/tutor.nb.utf-8
1476%lang(pl) %{_datadir}/vim/tutor/tutor.pl
1477%lang(pl) %{_datadir}/vim/tutor/tutor.pl.cp1250
1478%lang(pl) %{_datadir}/vim/tutor/tutor.pl.utf-8
37175aa8
AG
1479%lang(pt) %{_datadir}/vim/tutor/tutor.pt
1480%lang(pt) %{_datadir}/vim/tutor/tutor.pt.utf-8
a48bd85b
ER
1481%lang(ru) %{_datadir}/vim/tutor/tutor.ru
1482%lang(ru) %{_datadir}/vim/tutor/tutor.ru.cp1251
1483%lang(ru) %{_datadir}/vim/tutor/tutor.ru.utf-8
1484%lang(sk) %{_datadir}/vim/tutor/tutor.sk
1485%lang(sk) %{_datadir}/vim/tutor/tutor.sk.cp1250
1486%lang(sk) %{_datadir}/vim/tutor/tutor.sk.utf-8
17e4f3c7
JB
1487%lang(sr) %{_datadir}/vim/tutor/tutor.sr.cp1250
1488%lang(sr) %{_datadir}/vim/tutor/tutor.sr.utf-8
a48bd85b
ER
1489%lang(sv) %{_datadir}/vim/tutor/tutor.sv
1490%lang(sv) %{_datadir}/vim/tutor/tutor.sv.utf-8
1491%lang(tr) %{_datadir}/vim/tutor/tutor.tr.iso9
1492%lang(tr) %{_datadir}/vim/tutor/tutor.tr.utf-8
17e4f3c7 1493%lang(uk) %{_datadir}/vim/tutor/tutor.uk.utf-8
a48bd85b 1494%lang(vi) %{_datadir}/vim/tutor/tutor.vi.utf-8
1e434aad 1495%lang(zh_CN) %{_datadir}/vim/tutor/tutor.zh_cn.utf-8
a48bd85b
ER
1496%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.big5
1497%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.euc
1498%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.utf-8
1e434aad 1499%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh_tw.utf-8
478fb2f2 1500
5def452f 1501%{_mandir}/man1/vimtutor.1*
cbc57471 1502%lang(da) %{_mandir}/da/man1/vimtutor.1*
4399a7e9 1503%lang(fr) %{_mandir}/fr/man1/vimtutor.1*
4399a7e9 1504%lang(it) %{_mandir}/it/man1/vimtutor.1*
1e434aad 1505%lang(ja) %{_mandir}/ja/man1/vimtutor.1*
4399a7e9 1506%lang(pl) %{_mandir}/pl/man1/vimtutor.1*
4399a7e9 1507%lang(ru) %{_mandir}/ru/man1/vimtutor.1*
cbc57471 1508%lang(tr) %{_mandir}/tr/man1/vimtutor.1*
64bf7ae0 1509
53feb092 1510%if %{with x11}
ac713ebd
JR
1511%files -n vimx
1512%defattr(644,root,root,755)
1513%attr(755,root,root) %{_bindir}/vimx
53feb092 1514%endif
ac713ebd 1515
fbe64536
ER
1516%if %{with heavy}
1517%files heavy
1518%defattr(644,root,root,755)
1519%attr(755,root,root) %{_bindir}/vim.heavy
1520%endif
1521
06e19bfc
JK
1522%if %{with light}
1523%files light
1524%defattr(644,root,root,755)
1525%attr(755,root,root) %{_bindir}/vim.light
1526%endif
1527
4399a7e9
JB
1528%files spell-en
1529%defattr(644,root,root,755)
a48bd85b 1530%{_datadir}/vim/spell/en.*.*
4399a7e9 1531
d6e63bbe 1532%if %{with athena}
f22e9322 1533%files -n gvim-athena
1534%defattr(644,root,root,755)
c983f1ff 1535%attr(755,root,root) %{_bindir}/gvim.athena
eab7da3d 1536%{_desktopdir}/gvim-athena.desktop
f22e9322 1537%endif
1538
d6e63bbe 1539%if %{with motif}
f22e9322 1540%files -n gvim-motif
1541%defattr(644,root,root,755)
c983f1ff 1542%attr(755,root,root) %{_bindir}/gvim.motif
eab7da3d 1543%{_desktopdir}/gvim-motif.desktop
f22e9322 1544%endif
1545
d6e63bbe 1546%if %{with gtk}
f22e9322 1547%files -n gvim-gtk
1548%defattr(644,root,root,755)
c983f1ff 1549%attr(755,root,root) %{_bindir}/gvim.gtk
25a79fa4
JB
1550%attr(755,root,root) %verify(not link) %{_bindir}/gvim
1551%attr(755,root,root) %{_bindir}/eview
1552%attr(755,root,root) %{_bindir}/evim
4197338c 1553%attr(755,root,root) %{_bindir}/gview
25a79fa4 1554%attr(755,root,root) %{_bindir}/gvimdiff
c983f1ff 1555%attr(755,root,root) %{_bindir}/rgview
25a79fa4
JB
1556%attr(755,root,root) %{_bindir}/rgvim
1557%{_mandir}/man1/eview.1*
1558%{_mandir}/man1/evim.1*
cbc57471
JB
1559%{_mandir}/man1/gview.1*
1560%{_mandir}/man1/gvim.1*
1561%{_mandir}/man1/gvimdiff.1*
1562%{_mandir}/man1/rgview.1*
1563%{_mandir}/man1/rgvim.1*
1564%lang(da) %{_mandir}/da/man1/gvi*.1*
1565%lang(da) %{_mandir}/da/man1/rgv*.1*
1566%lang(de) %{_mandir}/de/man1/gvi*.1*
1567%lang(de) %{_mandir}/de/man1/rgv*.1*
1568%lang(fi) %{_mandir}/fi/man1/gvi*.1*
1569%lang(fi) %{_mandir}/fi/man1/rgv*.1*
25a79fa4
JB
1570%lang(fr) %{_mandir}/fr/man1/eview.1*
1571%lang(fr) %{_mandir}/fr/man1/evim.1*
cbc57471
JB
1572%lang(fr) %{_mandir}/fr/man1/gvi*.1*
1573%lang(fr) %{_mandir}/fr/man1/rgv*.1*
1574%lang(id) %{_mandir}/id/man1/gvi*.1*
1575%lang(id) %{_mandir}/id/man1/rgv*.1*
25a79fa4
JB
1576%lang(it) %{_mandir}/it/man1/eview.1*
1577%lang(it) %{_mandir}/it/man1/evim.1*
cbc57471
JB
1578%lang(it) %{_mandir}/it/man1/gvi*.1*
1579%lang(it) %{_mandir}/it/man1/rgv*.1*
1e434aad
AM
1580%lang(ja) %{_mandir}/ja/man1/eview.1*
1581%lang(ja) %{_mandir}/ja/man1/evim.1*
cbc57471
JB
1582%lang(ja) %{_mandir}/ja/man1/gvi*.1*
1583%lang(ja) %{_mandir}/ja/man1/rgv*.1*
25a79fa4
JB
1584%lang(pl) %{_mandir}/pl/man1/eview.1*
1585%lang(pl) %{_mandir}/pl/man1/evim.1*
cbc57471
JB
1586%lang(pl) %{_mandir}/pl/man1/gvi*.1*
1587%lang(pl) %{_mandir}/pl/man1/rgv*.1*
25a79fa4
JB
1588%lang(ru) %{_mandir}/ru/man1/eview.1*
1589%lang(ru) %{_mandir}/ru/man1/evim.1*
cbc57471
JB
1590%lang(ru) %{_mandir}/ru/man1/gvi*.1*
1591%lang(ru) %{_mandir}/ru/man1/rgv*.1*
1592%lang(tr) %{_mandir}/tr/man1/eview.1*
1593%lang(tr) %{_mandir}/tr/man1/evim.1*
1594%lang(tr) %{_mandir}/tr/man1/gvi*.1*
1595%lang(tr) %{_mandir}/tr/man1/rgv*.1*
eab7da3d 1596%{_desktopdir}/gvim-gtk.desktop
f22e9322 1597%endif
1598
d6e63bbe 1599%if %{with gnome}
f22e9322 1600%files -n gvim-gnome
1601%defattr(644,root,root,755)
c983f1ff 1602%attr(755,root,root) %{_bindir}/gvim.gnome
474e8862 1603%{_desktopdir}/gvim-gnome.desktop
afe2d598 1604%endif
fbe64536
ER
1605
1606%if %{with heavy}
1607%files -n gvim-heavy
1608%defattr(644,root,root,755)
1609%attr(755,root,root) %{_bindir}/gvim.heavy
1610%endif
This page took 0.707817 seconds and 4 git commands to generate.