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