]> git.pld-linux.org Git - packages/vim.git/blame - vim.spec
- updated dependencies (more X11 libs, gdk-pixbuf2, libsodium)
[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
d6adf2d5
AM
34%define ver 8.2.3570
35%define rel 1
84c81dea 36Summary: Vi IMproved - a Vi clone
1a02d184
ER
37Summary(de.UTF-8): VIsual editor iMproved
38Summary(es.UTF-8): Editor visual incrementado
39Summary(fr.UTF-8): Editeur VIM : VIsual editor iMproved
a375a145 40Summary(hu.UTF-8): Vi IMproved - a Vi szerkesztő bővítése
1a02d184
ER
41Summary(pl.UTF-8): Vi IMproved - klon edytora Vi
42Summary(pt_BR.UTF-8): Editor visual incrementado
43Summary(ru.UTF-8): Visual editor IMproved - Единственно Правильный Редактор :)
44Summary(tr.UTF-8): Gelişmiş bir vi sürümü
45Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :)
86c64819 46Name: vim
224e17ab
ER
47Version: %{ver}
48# keep macro for release, otherwise people tend to increment Epoch instead
a6a4cd99 49Release: %{rel}
2f66771d 50Epoch: 4
f73b565e 51License: Charityware
8627c94f 52Group: Applications/Editors/Vim
be4633d1 53#Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
224e17ab 54Source0: https://github.com/vim/vim/archive/v%{ver}.tar.gz
d6adf2d5 55# Source0-md5: 50cbcd6e830061176ab268fdedd4690a
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 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
49f0d874 464Obsoletes: vim-syntax-upstart
e534fe8e 465BuildArch: noarch
8627c94f 466
467%description rt
f73b565e 468This package contains macros, documentation, syntax configuration and
ec6033c5 469manual pages for Vim. If you want to take advantage of Vim more
f73b565e 470powerful features, you should install this package.
8627c94f 471
5cf83aa7
JR
472%description rt -l cs.UTF-8
473Tento balíček obsahuje společné soubory pro všechny další balíčky s
507e1057 474vim.
475
5cf83aa7
JR
476%description rt -l de.UTF-8
477Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
478Ausführung benötigt.
507e1057 479
5cf83aa7 480%description rt -l fr.UTF-8
507e1057 481Le paquetage vim-rt contient des fichiers dont chaque fichier binaire
482VIM a besoin pour fonctionner.
483
a375a145
ZU
484%description rt -l hu.UTF-8
485Ez a csomag makrókat, dokumentációt, nyelvi konfigurációt és kézikönyv
2440ded8
ER
486oldalakat tartalmaz Vim-hez. Ha ki akarod használni a Vim
487lehetőségeit, érdemes telepítened ezt a csomagot.
a375a145 488
5cf83aa7 489%description rt -l id.UTF-8
507e1057 490Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa
491berjalan.
492
5cf83aa7
JR
493%description rt -l is.UTF-8
494vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa
495til að keyra.
507e1057 496
5cf83aa7 497%description rt -l it.UTF-8
507e1057 498Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
499per poter funzionare.
500
5cf83aa7 501%description rt -l pl.UTF-8
25a79fa4
JB
502W tym pakiecie znajdują się makra, pliki konfiguracyjne i strony
503podręcznika dla edytora Vim. Aby korzystać z zaawansowanych możliwości
504Vima, należy zainstalować ten pakiet.
84c81dea 505
5cf83aa7
JR
506%description rt -l pt.UTF-8
507O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
508irão necessitar para correr.
507e1057 509
5cf83aa7
JR
510%description rt -l ru.UTF-8
511Пакет vim-rt содержит файлы (например, файлы справки), которые нужны
512для работы любой программы vim.
9e79ff1a 513
5cf83aa7
JR
514%description rt -l sk.UTF-8
515Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu
516funkciu každá verzia editoru VIM.
507e1057 517
5cf83aa7
JR
518%description rt -l sv.UTF-8
519Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att
520köra.
507e1057 521
5cf83aa7
JR
522%description rt -l uk.UTF-8
523Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні
524для роботи будь-якої програми vim.
9e79ff1a 525
2440ded8
ER
526%package rt-extras
527Summary: Vim runtime extra files
25a79fa4 528Summary(pl.UTF-8): Dodatkowe pliki uruchomieniowe Vima
2440ded8
ER
529Group: Applications/Editors/Vim
530Requires: %{name}-rt = %{epoch}:%{version}-%{release}
e534fe8e 531BuildArch: noarch
2440ded8
ER
532
533%description rt-extras
3252ee87 534This package contains more runtime extra files, not really useful. If
2440ded8
ER
535you want to take full advantage of Vim more powerful features, you
536should install this package.
537
25a79fa4
JB
538%description rt-extras -l pl.UTF-8
539Ten pakiet zawiera dodatkowe pliki uruchomieniowe, nie tak bardzo
540przydatne. Aby korzystać ze wszystkich możliwości Vima, należy
541zainstalować ten pakiet.
542
2440ded8 543%package doc
3252ee87 544Summary: Context Vim documentation
25a79fa4 545Summary(pl.UTF-8): Dokumentacja kontekstowa do Vima
2440ded8 546Group: Applications/Editors/Vim
2116b940 547Requires(post,postun): /usr/bin/vim
2440ded8 548Requires: %{name}-rt = %{epoch}:%{version}-%{release}
e534fe8e 549BuildArch: noarch
2440ded8
ER
550
551%description doc
3252ee87
TP
552This package contains Vim documentation accessible from vim itself
553using :help command.
2440ded8 554
25a79fa4 555%description doc -l pl.UTF-8
d63b8acf
ER
556Ten pakiet zawiera dokumentację do Vima dostępną z poziomu samego vima
557za pomocą polecenia :help.
25a79fa4 558
4399a7e9
JB
559%package spell-en
560Summary: English dictionaries for VIMspell
1a02d184 561Summary(pl.UTF-8): Angielskie słowniki dla VIMspella
4399a7e9 562Group: Applications/Editors/Vim
fbe64536 563Requires: %{name}-rt = %{epoch}:%{version}-%{release}
e534fe8e 564BuildArch: noarch
4399a7e9
JB
565
566%description spell-en
567English dictionaries for VIMspell.
568
5cf83aa7
JR
569%description spell-en -l pl.UTF-8
570Angielskie słowniki dla VIMspella.
4399a7e9 571
5def452f
ER
572%package tutor
573Summary: Vim tutorial
43791c4b 574Summary(hu.UTF-8): Vim tutorial
3dab36bd 575Summary(pl.UTF-8): Samouczek do Vima
5def452f
ER
576Group: Applications/Editors/Vim
577Requires: %{name}-rt = %{epoch}:%{version}-%{release}
578Requires: mktemp
579Requires: vim-editor = %{epoch}:%{version}-%{release}
e534fe8e 580BuildArch: noarch
5def452f
ER
581
582%description tutor
3dab36bd
JB
583This package contains Vim tutorial.
584
a375a145
ZU
585%description tutor -l hu.UTF-8
586Ez a csomag a vimtutor-t tartalmazza, amely egy gyakorlat-orientált
587bevezető a Vim-hez.
588
3dab36bd
JB
589%description tutor -l pl.UTF-8
590Ten pakiet zawiera samouczek do Vima.
5def452f 591
84c81dea 592%package -n gvim-athena
6facb60f 593Summary: Vim for X Window built with Athena
43791c4b 594Summary(hu.UTF-8): A Vim X Window verziója, az Athena felhasználásával
1a02d184 595Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena
84c81dea 596Group: Applications/Editors/Vim
99216be1 597Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 598Requires: iconv
86dc40a0 599Provides: gvim
ed99f1fe 600Provides: vi-editor
5def452f 601Provides: vim-editor = %{epoch}:%{version}-%{release}
84c81dea 602Obsoletes: vim-X11
603
604%description -n gvim-athena
f73b565e 605The classic Unix text editor now also under X Window System! This
b83ed9cf 606version is built with Athena Widget Set.
84c81dea 607
a375a145
ZU
608%description -n gvim-athena -l hu.UTF-8
609A Vim X Window verziója, az Athena Widgetkészlet felhasználásával.
610
5cf83aa7
JR
611%description -n gvim-athena -l pl.UTF-8
612Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
f73b565e 613biblioteki Athena Widget Set.
84c81dea 614
5cf83aa7
JR
615%description -n gvim-athena -l ru.UTF-8
616Этот пакет представляет собой версию VIM, собранную с библиотеками
617Athena Widget Set, что позволяет запускать VIM как приложение X Window
618System - с полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 619
5cf83aa7
JR
620%description -n gvim-athena -l uk.UTF-8
621Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget
622Set, що дозволяє запускати VIM як прикладну програму X Window System -
623з повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 624
7a9200fa 625%package -n gvim-motif
25a79fa4 626Summary: Vim for X Window System built with Motif
43791c4b 627Summary(hu.UTF-8): A Vim X Window verziója, a Motif felhasználásával
25a79fa4 628Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki Motif
84c81dea 629Group: Applications/Editors/Vim
99216be1 630Requires: %{name}-rt = %{epoch}:%{version}-%{release}
d5d214fb 631Requires: iconv
86dc40a0 632Provides: gvim
ed99f1fe 633Provides: vi-editor
5def452f 634Provides: vim-editor = %{epoch}:%{version}-%{release}
84c81dea 635Obsoletes: vim-X11
8627c94f 636
7a9200fa 637%description -n gvim-motif
f73b565e 638The classic Unix text editor now also under X Window System! This
b83ed9cf 639version is built with Motif.
84c81dea 640
a375a145
ZU
641%description -n gvim-motif -l hu.UTF-8
642A Vim X Window verziója, a Motif Widgetkészlet felhasználásával.
643
5cf83aa7
JR
644%description -n gvim-motif -l pl.UTF-8
645Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
7a9200fa 646biblioteki Motif.
84c81dea 647
5cf83aa7
JR
648%description -n gvim-motif -l ru.UTF-8
649Этот пакет представляет собой версию VIM, собранную с библиотеками
650Motif, что позволяет запускать VIM как приложение X Window System - с
651полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 652
5cf83aa7
JR
653%description -n gvim-motif -l uk.UTF-8
654Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що
655дозволяє запускати VIM як прикладну програму X Window System - з
656повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 657
84c81dea 658%package -n gvim-gtk
25a79fa4
JB
659Summary: Vim for X Window System built with GTK+
660Summary(hu.UTF-8): A Vim X Window verziója, a GTK+ felhasználásával
661Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki GTK+
8627c94f 662Group: Applications/Editors/Vim
154ae592
AF
663Requires(post,postun): gtk-update-icon-cache
664Requires(post,postun): hicolor-icon-theme
99216be1 665Requires: %{name}-rt = %{epoch}:%{version}-%{release}
9250fc24 666Requires: %{name}-rt-extras = %{epoch}:%{version}-%{release}
d5d214fb 667Requires: iconv
86dc40a0 668Provides: gvim
ed99f1fe 669Provides: vi-editor
5def452f 670Provides: vim-editor = %{epoch}:%{version}-%{release}
84c81dea 671Obsoletes: vim-X11
8627c94f 672
84c81dea 673%description -n gvim-gtk
f73b565e 674The classic Unix text editor now also under X Window System! This
25a79fa4 675version is built with GTK+.
8627c94f 676
a375a145 677%description -n gvim-gtk -l hu.UTF-8
25a79fa4 678A Vim X Window verziója, a GTK+ Widgetkészlet felhasználásával.
a375a145 679
5cf83aa7
JR
680%description -n gvim-gtk -l pl.UTF-8
681Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
25a79fa4 682biblioteki GTK+.
d5d214fb 683
5cf83aa7
JR
684%description -n gvim-gtk -l ru.UTF-8
685Этот пакет представляет собой версию VIM, собранную с библиотеками
686GTK, что позволяет запускать VIM как приложение X Window System - с
687полностью графическим интерфейсом и поддержкой мыши. Просто скажите
9e79ff1a 688'gvim'...
689
5cf83aa7
JR
690%description -n gvim-gtk -l uk.UTF-8
691Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє
692запускати VIM як прикладну програму X Window System - з повністю
693графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
9e79ff1a 694
d5d214fb 695%package -n gvim-gnome
25a79fa4
JB
696Summary: Vim for X Window System built with GNOME
697Summary(hu.UTF-8): A Vim X Window verziója, a GNOME felhasználásával
698Summary(pl.UTF-8): Vim dla systemu X Window korzystający z biblioteki GNOME
d5d214fb 699Group: Applications/Editors/Vim
154ae592
AF
700Requires(post,postun): gtk-update-icon-cache
701Requires(post,postun): hicolor-icon-theme
99216be1 702Requires: %{name}-rt = %{epoch}:%{version}-%{release}
9250fc24 703Requires: %{name}-rt-extras = %{epoch}:%{version}-%{release}
d5d214fb 704Requires: iconv
86dc40a0 705Provides: gvim
ed99f1fe 706Provides: vi-editor
5def452f 707Provides: vim-editor = %{epoch}:%{version}-%{release}
d5d214fb
AM
708Obsoletes: vim-X11
709
710%description -n gvim-gnome
711The classic Unix text editor now also under X Window System! This
712version is build with GNOME.
713
3252ee87
TP
714%description -n gvim-gnome -l hu.UTF-8
715A Vim X Window verziója, a GNOME felhasználásával.
a375a145 716
5cf83aa7
JR
717%description -n gvim-gnome -l pl.UTF-8
718Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
0d72267e 719bibliotek GNOME.
8627c94f 720
5cf83aa7
JR
721%description -n gvim-gnome -l ru.UTF-8
722Этот пакет представляет собой версию VIM, собранную с библиотеками
723GNOME, что позволяет запускать VIM как приложение X Window System - с
724полностью графическим интерфейсом и поддержкой мыши.
9e79ff1a 725
5cf83aa7
JR
726%description -n gvim-gnome -l uk.UTF-8
727Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що
728дозволяє запускати VIM як прикладну програму X Window System - з
729повністю графічним інтерфейсом та підтримкою миші.
9e79ff1a 730
fbe64536 731%package -n gvim-heavy
25a79fa4 732Summary: Full featured build of Vim with X Window support
43791c4b 733Summary(hu.UTF-8): A gvim legteljesebb verziója
25a79fa4 734Summary(pl.UTF-8): W pełni funkcjonalna wersja Vima z interfejsem dla X Window
fbe64536 735Group: Applications/Editors/Vim
53feb092
JB
736Requires(post,postun): gtk-update-icon-cache
737Requires(post,postun): hicolor-icon-theme
fbe64536 738Requires: %{name}-rt = %{epoch}:%{version}-%{release}
9250fc24 739Requires: %{name}-rt-extras = %{epoch}:%{version}-%{release}
fbe64536
ER
740Requires: iconv
741Provides: gvim
742Provides: vi-editor
5def452f 743Provides: vim-editor = %{epoch}:%{version}-%{release}
fbe64536
ER
744Obsoletes: vim-X11
745
746%description -n gvim-heavy
747This package provides full featured version of Vim, which includes
748support for Perl, Python, Ruby and Tcl scripting, as well as GTK+2
749GUI.
750
be7a5eb5 751%description -n gvim-heavy -l hu.UTF-8
a375a145
ZU
752A gvim legteljesebb verziója, Perl, Python, Ruby és Tcl támogatással.
753
be7a5eb5 754%description -n gvim-heavy -l pl.UTF-8
43791c4b
JB
755Pakiet ten dostarcza w pełni funkcjonalną wersję Vima, czyli
756zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl
757jak również GUI GTK+2.
fbe64536 758
8627c94f 759%prep
68de24bf 760%setup -q
92b577fa
ER
761
762cp -p runtime/gvim.desktop gvim-athena.desktop
763cp -p runtime/gvim.desktop gvim-gnome.desktop
764cp -p runtime/gvim.desktop gvim-gtk.desktop
765cp -p runtime/gvim.desktop gvim-motif.desktop
766
db58c86e 767%patch0 -p1
a39abb00 768
2f99b393 769%patch2 -p1
d1abaab5 770%patch3 -p1
cd474ba8 771
d0793c9f 772%patch5 -p1
64570325 773%patch6 -p1
d6de9a65 774%patch7 -p1
19d8e711 775%patch8 -p1
2fd1acb8
AG
776%patch9 -p0
777%patch10 -p1
d6de9a65 778%patch11 -p1
19d8e711 779%patch12 -p1
d6de9a65
AG
780%patch14 -p1
781%patch15 -p1
296af0e0 782%patch17 -p1
2fd1acb8 783%patch18 -p1
d1abaab5
AG
784%patch19 -p1
785%patch20 -p1
786%patch21 -p1
d6de9a65 787%patch22 -p1
b65a166d 788%patch23 -p1
be0a4d78 789%patch24 -p1
2df0984e 790%patch25 -p1
1e6bfbec 791%{?with_home_etc:%patch26 -p1}
d6de9a65 792
fbe64536 793# autopaste patch - automatically switch to paste mode
2440ded8 794# when `really fast typing' situation happens
1e6bfbec
ER
795%patch27 -p1
796%patch28 -p1
797%patch29 -p1
798%patch30 -p1
1e6bfbec 799%patch32 -p1
cd474ba8 800
1e6bfbec
ER
801%patch34 -p1
802%patch35 -p1
803%patch36 -p1
804%patch37 -p1
805%patch38 -p1
81d30c08 806%patch39 -p1
79079f3d 807%patch40 -p1
84e8f2ec 808%patch41 -p1
9e18e433 809
fb4ae509
ER
810cp -p %{SOURCE20} runtime/syntax
811cp -p %{SOURCE22} runtime/syntax
fb4ae509
ER
812cp -p %{SOURCE30} runtime/colors
813cp -p %{SOURCE31} runtime/colors
814cp -p %{SOURCE32} runtime/colors
abf48674 815
b36b7b12 816%{__unzip} -qd runtime/doc %{SOURCE2}
2440ded8 817
1fd10b44
ER
818# not info files but some binary files for Amiga:
819# Amiga Workbench drawer icon
820# Amiga Workbench project icon
821# Amiga Workbench tool icon
822find -name '*.info' | xargs rm -v
823
8627c94f 824%build
96eaec6a 825cd src
34ddecbc 826%{__autoconf}
ffce5254
JB
827# needed to prevent deconfiguring
828cp -f configure auto
69b192f0 829install -d bin
afe2d598 830
fbe64536
ER
831build() {
832 set -x
833 local target=$1
834 shift
835
65c9ea50 836 %configure \
53014a9c 837%if "%{pld_release}" == "ac"
65c9ea50 838 --with-tlib="ncurses -ltinfo"
53014a9c 839%else
840 --with-tlib="ncursesw"
65c9ea50
TP
841%endif
842
fac2ad53 843 %{__make} -j1 distclean
fbe64536
ER
844 # add common options, can override (disable) if needed with args
845 %configure \
84e8f2ec 846 --%{!?with_lua:dis}%{?with_lua:en}able-luainterp \
fbe64536
ER
847 --%{!?with_perl:dis}%{?with_perl:en}able-perlinterp \
848 --%{!?with_python:dis}%{?with_python:en}able-pythoninterp \
37f9ebf5 849 --%{!?with_python3:dis}%{?with_python3:en}able-python3interp \
fbe64536
ER
850 --%{!?with_ruby:dis}%{?with_ruby:en}able-rubyinterp \
851 --%{!?with_tcl:dis}%{?with_tcl:en}able-tclinterp \
852 %{!?with_selinux:--disable-selinux} \
853 --enable-cscope \
854 --enable-gpm \
855 --enable-multibyte \
856 --enable-nls \
53014a9c 857%if "%{pld_release}" == "ac"
c68d6bca 858 --with-tlib="ncurses -ltinfo" \
53014a9c 859%else
860 --with-tlib="ncursesw" \
c68d6bca 861%endif
4862f5a3 862 --with-modified-by="PLD Linux Distribution" \
fbe64536
ER
863 --with-compiledby="PLD Linux Distribution" \
864 "$@"
865
866 %{__make} vim
867 mv -f vim bin/$target
868}
869
d6e63bbe 870%if %{with static}
b5c16c76 871LDFLAGS="%{rpmldflags} -static"
fbe64536 872build vim.static \
8490904a
JB
873 --disable-gui \
874 --without-x \
fbe64536 875 --with-features=small \
335fd127 876 --disable-canberra \
84e8f2ec 877 --disable-luainterp \
8490904a
JB
878 --disable-perlinterp \
879 --disable-pythoninterp \
6f341cd9 880 --disable-python3interp \
8490904a
JB
881 --disable-rubyinterp \
882 --disable-tclinterp \
883 --disable-cscope \
884 --disable-gpm \
86a70f7f 885 --enable-multibyte \
fbe64536 886 --disable-nls
8490904a 887
b5c16c76 888LDFLAGS="%{rpmldflags}"
8490904a
JB
889%endif
890
06e19bfc
JK
891%if %{with light}
892build vim.light \
893 --disable-gui \
894 --without-x \
895 --with-features=small \
335fd127 896 --disable-canberra \
84e8f2ec 897 --disable-luainterp \
06e19bfc
JK
898 --disable-perlinterp \
899 --disable-pythoninterp \
6f341cd9 900 --disable-python3interp \
06e19bfc
JK
901 --disable-rubyinterp \
902 --disable-tclinterp \
903 --disable-cscope \
904 --disable-gpm \
905 --disable-nls
906%endif
907
03fb26b1
JK
908build vim.ncurses \
909 --disable-gui \
28ce0b6b 910 %{__with_without x} \
335fd127 911 --disable-canberra \
03fb26b1
JK
912 --with-features=huge
913
53feb092 914%if %{with x11}
03fb26b1
JK
915build vimx \
916 --disable-gui \
917 --with-x \
335fd127 918 --disable-canberra \
03fb26b1 919 --with-features=huge
53feb092 920%endif
03fb26b1 921
d6e63bbe 922%if %{with athena}
fbe64536 923build gvim.athena \
f22e9322 924 --with-features=huge \
f73b565e 925 --enable-gui=athena \
926 --with-x \
d5d214fb 927 --enable-fontset \
335fd127 928 --disable-canberra \
d5d214fb 929 --disable-gpm \
fbe64536 930 --without-gnome
84c81dea 931
fbe64536 932%endif
a04973b9 933
d6e63bbe 934%if %{with motif}
fbe64536 935build gvim.motif \
f22e9322 936 --with-features=huge \
f73b565e 937 --enable-gui=motif \
938 --with-x \
d5d214fb 939 --enable-multibyte \
d5d214fb 940 --enable-fontset \
335fd127 941 --disable-canberra \
d5d214fb 942 --disable-gpm \
fbe64536
ER
943 --without-gnome
944
fc7569f7 945%endif
8627c94f 946
d6e63bbe 947%if %{with gtk}
fbe64536 948build gvim.gtk \
f22e9322 949 --with-features=huge \
53feb092
JB
950%if %{with gtk3}
951 --enable-gui=gtk3 \
952 --enable-gtk3-check \
953%else
db58c86e 954 --enable-gui=gtk2 \
955 --enable-gtk2-check \
53feb092 956%endif
f73b565e 957 --with-x \
335fd127 958 --disable-canberra \
fbe64536
ER
959 --disable-gpm
960
fc7569f7 961%endif
8627c94f 962
d6e63bbe 963%if %{with gnome}
fbe64536 964build gvim.gnome \
f22e9322 965 --with-features=huge \
db58c86e 966 --enable-gui=gnome2 \
db58c86e 967 --enable-gtk2-check \
968 --enable-gnome-check \
d5d214fb 969 --with-x \
fbe64536
ER
970 --disable-gpm
971
972%endif
973
974# vim.heavy / gvim.heavy
975%if %{with heavy}
976build vim.heavy \
977 --with-features=huge \
978 --disable-gui \
979 --without-x \
84e8f2ec 980 --enable-luainterp \
fbe64536
ER
981 --enable-perlinterp \
982 --enable-pythoninterp \
37f9ebf5 983 --enable-python3interp \
fbe64536
ER
984 --enable-rubyinterp \
985 --enable-tclinterp \
14ce117f 986 --disable-canberra \
fbe64536
ER
987 --disable-gpm
988
989build gvim.heavy \
990 --with-features=huge \
991 --enable-gui=gnome2 \
992 --enable-gtk2-check \
993 --enable-gnome-check \
994 --with-x \
84e8f2ec 995 --enable-luainterp \
fbe64536
ER
996 --enable-perlinterp \
997 --enable-pythoninterp \
37f9ebf5 998 --enable-python3interp \
fbe64536
ER
999 --enable-rubyinterp \
1000 --enable-tclinterp \
1001 --disable-gpm
fc7569f7 1002%endif
d5d214fb 1003
afe2d598
AF
1004%{__make} xxd/xxd languages
1005
8627c94f 1006%install
1007rm -rf $RPM_BUILD_ROOT
0b31d255 1008
f22e9322 1009install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
d1b4bd6a 1010 $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim/ftdetect} \
474e8862 1011 $RPM_BUILD_ROOT%{_desktopdir}
46f826dd 1012
f76e6f17 1013%{__make} -j1 install \
a82d590c 1014 DESTDIR=$RPM_BUILD_ROOT
7ba74caf 1015
e4c87ae9
ER
1016# generic gvim from upstream, but we have bunch of subpackages
1017%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/gvim.desktop
1018
cd474ba8
AM
1019# fix nb/no
1020%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}
1021%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/tutor/tutor.n{o,b}.utf-8
1022%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.latin1.vim
1023%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}.utf-8.vim
1024%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.latin1.vim
1025%{__mv} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_n{o,b}_no.utf-8.vim
1026
1027# remove unsupported locales
1028%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ko.UTF-8
1029%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
4e453333 1030%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.UTF-8
cd474ba8 1031%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_TW.UTF-8
d63b8acf
ER
1032%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs.cp1250
1033%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.sjis
1e434aad 1034%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.euc-jp
d63b8acf
ER
1035%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.UTF-8
1036%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.cp1250
1037%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ru.cp1251
1038%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sk.cp1250
1039%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk.cp1251
1040%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.cp936
cd474ba8 1041%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/lang/menu_zh_{cn,tw}.utf-8.vim
d63b8acf 1042
2440ded8
ER
1043%find_lang %{name}
1044
25a79fa4 1045%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
8627c94f 1046
b93a0a21 1047%if %{with static}
c64787d5
ER
1048install -p src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
1049install -p src/bin/vim.static $RPM_BUILD_ROOT/bin/vi
b93a0a21 1050%else
c64787d5 1051install -p src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
b93a0a21
AF
1052ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim
1053%endif
53feb092 1054%if %{with x11}
ac713ebd 1055install -p src/bin/vimx $RPM_BUILD_ROOT%{_bindir}/vimx
53feb092 1056%endif
c64787d5
ER
1057install -p src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
1058install -p src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor
a7fbf53c 1059
8866285b
ER
1060echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
1061echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
8627c94f 1062
9c95080e 1063# not supported directories
25a79fa4 1064%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/??.*/
9c95080e 1065
a48bd85b
ER
1066mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/vimrc_example.vim,%{_sysconfdir}/vim/vimrc}
1067mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/gvimrc_example.vim,%{_sysconfdir}/vim/gvimrc}
8627c94f 1068
923c746f 1069ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
4399a7e9 1070ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
d5d214fb
AM
1071ln -sf vi $RPM_BUILD_ROOT/bin/ex
1072ln -sf vi $RPM_BUILD_ROOT/bin/view
1073ln -sf vi $RPM_BUILD_ROOT/bin/rview
84c81dea 1074
b93a0a21 1075%if %{with athena}
92b577fa
ER
1076install -p src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
1077cp -p gvim-athena.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1078%endif
1079%if %{with motif}
92b577fa
ER
1080install -p src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif
1081cp -p gvim-motif.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1082%endif
1083%if %{with gnome}
92b577fa
ER
1084install -p src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
1085cp -p gvim-gnome.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21
AF
1086%endif
1087%if %{with gtk}
c64787d5 1088install -p src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
92b577fa 1089cp -p gvim-gtk.desktop $RPM_BUILD_ROOT%{_desktopdir}
b93a0a21 1090ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim
25a79fa4
JB
1091ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/eview
1092ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/evim
b93a0a21 1093ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview
4399a7e9 1094ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff
b93a0a21 1095ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview
4399a7e9 1096ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim
b93a0a21 1097%endif
fbe64536 1098%if %{with heavy}
c64787d5
ER
1099install -p src/bin/vim.heavy $RPM_BUILD_ROOT%{_bindir}
1100install -p src/bin/gvim.heavy $RPM_BUILD_ROOT%{_bindir}
fbe64536 1101%endif
06e19bfc
JK
1102%if %{with light}
1103install -p src/bin/vim.light $RPM_BUILD_ROOT%{_bindir}
1104%endif
8627c94f 1105
6b9748f0
ER
1106install -d $RPM_BUILD_ROOT%{_pixmapsdir}
1107mv $RPM_BUILD_ROOT{%{_iconsdir}/hicolor/48x48/apps,%{_pixmapsdir}}/gvim.png
1108
08af4e73
JB
1109# locolor scheme no longer supported
1110%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/locolor
ef0fdc18 1111
b36b7b12 1112bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
9c95080e 1113
a76f8cb4 1114install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
8e79b441 1115> $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
9f5fc2a1 1116
27be4eca 1117# separate package
a48bd85b 1118%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/{ftplugin,syntax}/spec.vim
27be4eca 1119
2440ded8 1120# unuseful
25a79fa4
JB
1121%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/tools
1122%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
1123%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/check_locales.vim
1124%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
1125%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/fixdup.vim
1126%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
af865184 1127
8627c94f 1128%clean
1129rm -rf $RPM_BUILD_ROOT
1130
b1844844 1131%post
23fe3b70 1132[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1133
1134%postun
23fe3b70 1135[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1136
2116b940
JP
1137%post doc
1138%vim_doc_helptags
1139
1140%postun doc
1141%vim_doc_helptags
1142
b1844844 1143%post -n gvim-athena
23fe3b70 1144[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1145
1146%postun -n gvim-athena
23fe3b70 1147[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1148
1149%post -n gvim-motif
23fe3b70 1150[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1151
1152%postun -n gvim-motif
23fe3b70 1153[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
b1844844 1154
1155%post -n gvim-gtk
23fe3b70 1156[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
70502921 1157%update_icon_cache hicolor
b1844844 1158
1159%postun -n gvim-gtk
23fe3b70 1160[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database
70502921 1161%update_icon_cache hicolor
b1844844 1162
1163%post -n gvim-gnome
9c95080e 1164%update_desktop_database_post
70502921 1165%update_icon_cache hicolor
b1844844 1166
1167%postun -n gvim-gnome
9c95080e 1168%update_desktop_database_postun
70502921 1169%update_icon_cache hicolor
b1844844 1170
53feb092
JB
1171%post -n gvim-heavy
1172%update_icon_cache hicolor
1173
1174%postun -n gvim-heavy
1175%update_icon_cache hicolor
1176
84c81dea 1177%files
1178%defattr(644,root,root,755)
84c81dea 1179%attr(755,root,root) %{_bindir}/rvim
4399a7e9
JB
1180%attr(755,root,root) %{_bindir}/vim
1181%attr(755,root,root) %{_bindir}/vimdiff
4399a7e9
JB
1182%{_mandir}/man1/rvim.1*
1183%{_mandir}/man1/vimdiff.1*
cbc57471
JB
1184%lang(da) %{_mandir}/da/man1/rvim.1*
1185%lang(da) %{_mandir}/da/man1/vimdiff.1*
1186%lang(de) %{_mandir}/de/man1/rvim.1*
4399a7e9 1187%lang(fi) %{_mandir}/fi/man1/rvim.1*
4399a7e9
JB
1188%lang(fr) %{_mandir}/fr/man1/rvim.1*
1189%lang(fr) %{_mandir}/fr/man1/vimdiff.1*
1190%lang(id) %{_mandir}/id/man1/rvim.1*
4399a7e9
JB
1191%lang(it) %{_mandir}/it/man1/rvim.1*
1192%lang(it) %{_mandir}/it/man1/vimdiff.1*
1e434aad 1193%lang(ja) %{_mandir}/ja/man1/rvim.1*
1e434aad 1194%lang(ja) %{_mandir}/ja/man1/vimdiff.1*
4399a7e9
JB
1195%lang(pl) %{_mandir}/pl/man1/rvim.1*
1196%lang(pl) %{_mandir}/pl/man1/vimdiff.1*
4399a7e9
JB
1197%lang(ru) %{_mandir}/ru/man1/rvim.1*
1198%lang(ru) %{_mandir}/ru/man1/vimdiff.1*
cbc57471
JB
1199%lang(tr) %{_mandir}/tr/man1/rvim.1*
1200%lang(tr) %{_mandir}/tr/man1/vimdiff.1*
92b577fa 1201%{_desktopdir}/vim.desktop
84c81dea 1202
d6e63bbe 1203%if %{with static}
84c81dea 1204%files static
2576aec7 1205%endif
ce504e8b 1206%defattr(644,root,root,755)
25a79fa4
JB
1207%attr(755,root,root) /bin/ex
1208%attr(755,root,root) /bin/rview
1209%attr(755,root,root) /bin/vi
1210%attr(755,root,root) /bin/view
671e058b
AF
1211%{_mandir}/man1/vi.1*
1212%{_mandir}/man1/ex.1*
671e058b
AF
1213%{_mandir}/man1/view.1*
1214%{_mandir}/man1/rview.1*
cbc57471
JB
1215%lang(da) %{_mandir}/da/man1/ex.1*
1216%lang(da) %{_mandir}/da/man1/rview.1*
1217%lang(da) %{_mandir}/da/man1/view.1*
1218%lang(de) %{_mandir}/de/man1/ex.1*
1219%lang(de) %{_mandir}/de/man1/rview.1*
1220%lang(de) %{_mandir}/de/man1/view.1*
0d564f51
JB
1221%lang(fi) %{_mandir}/fi/man1/vi.1*
1222%lang(fi) %{_mandir}/fi/man1/ex.1*
1223%lang(fi) %{_mandir}/fi/man1/view.1*
1224%lang(fi) %{_mandir}/fi/man1/rview.1*
9c95080e 1225%lang(fr) %{_mandir}/fr/man1/vi.1*
1226%lang(fr) %{_mandir}/fr/man1/ex.1*
1227%lang(fr) %{_mandir}/fr/man1/view.1*
1228%lang(fr) %{_mandir}/fr/man1/rview.1*
0d564f51
JB
1229%lang(id) %{_mandir}/id/man1/vi.1*
1230%lang(id) %{_mandir}/id/man1/ex.1*
1231%lang(id) %{_mandir}/id/man1/view.1*
1232%lang(id) %{_mandir}/id/man1/rview.1*
9c95080e 1233#%lang(it) %{_mandir}/it/man1/vi.1*
1234%lang(it) %{_mandir}/it/man1/ex.1*
1235%lang(it) %{_mandir}/it/man1/view.1*
1236%lang(it) %{_mandir}/it/man1/rview.1*
1e434aad
AM
1237%lang(ja) %{_mandir}/ja/man1/ex.1*
1238%lang(ja) %{_mandir}/ja/man1/view.1*
1239%lang(ja) %{_mandir}/ja/man1/rview.1*
9c95080e 1240%lang(pl) %{_mandir}/pl/man1/vi.1*
1241%lang(pl) %{_mandir}/pl/man1/ex.1*
1242%lang(pl) %{_mandir}/pl/man1/view.1*
1243%lang(pl) %{_mandir}/pl/man1/rview.1*
1244#%lang(ru) %{_mandir}/ru/man1/vi.1*
1245%lang(ru) %{_mandir}/ru/man1/ex.1*
1246%lang(ru) %{_mandir}/ru/man1/view.1*
1247%lang(ru) %{_mandir}/ru/man1/rview.1*
cbc57471
JB
1248%lang(tr) %{_mandir}/tr/man1/ex.1*
1249%lang(tr) %{_mandir}/tr/man1/view.1*
1250%lang(tr) %{_mandir}/tr/man1/rview.1*
ce504e8b 1251
2576aec7
AF
1252%files -n xxd
1253%defattr(644,root,root,755)
1254%attr(755,root,root) %{_bindir}/xxd
1255%{_mandir}/man1/xxd.1*
9c95080e 1256%lang(fr) %{_mandir}/fr/man1/xxd.1*
1257%lang(it) %{_mandir}/it/man1/xxd.1*
1e434aad 1258%lang(ja) %{_mandir}/ja/man1/xxd.1*
9c95080e 1259%lang(pl) %{_mandir}/pl/man1/xxd.1*
1260%lang(ru) %{_mandir}/ru/man1/xxd.1*
2576aec7 1261
2440ded8 1262%files rt -f %{name}.lang
8627c94f 1263%defattr(644,root,root,755)
54e1a2a3 1264%dir %{_sysconfdir}/vim
baa4aaf8 1265%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc
1266%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
84c81dea 1267
1a773fc5 1268%dir %{_datadir}/vim
7d12fced 1269%dir %{_datadir}/vim/doc
cab8ff93
ER
1270%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
1271%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
1272%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
2eeaaace
ER
1273
1274%dir %{_datadir}/vim/vimfiles
1275%dir %{_datadir}/vim/vimfiles/doc
1276%dir %{_datadir}/vim/vimfiles/after
1277%dir %{_datadir}/vim/vimfiles/after/compiler
1278%dir %{_datadir}/vim/vimfiles/after/ftdetect
1279%dir %{_datadir}/vim/vimfiles/after/ftplugin
1280%dir %{_datadir}/vim/vimfiles/after/indent
1281%dir %{_datadir}/vim/vimfiles/after/plugin
1282%dir %{_datadir}/vim/vimfiles/after/spell
1283%dir %{_datadir}/vim/vimfiles/after/syntax
1284%dir %{_datadir}/vim/vimfiles/compiler
1285%dir %{_datadir}/vim/vimfiles/ftdetect
1286%dir %{_datadir}/vim/vimfiles/ftplugin
1287%dir %{_datadir}/vim/vimfiles/indent
1288%dir %{_datadir}/vim/vimfiles/plugin
1289%dir %{_datadir}/vim/vimfiles/spell
1290%dir %{_datadir}/vim/vimfiles/syntax
2440ded8 1291
a48bd85b
ER
1292%{_datadir}/vim/*.vim
1293
88e9fd4c 1294%dir %{_datadir}/vim/autoload
49168b34 1295%{_datadir}/vim/autoload/*complete.vim
3ee5bb1b 1296%doc %{_datadir}/vim/autoload/README.txt
c2287cf0
AM
1297%dir %{_datadir}/vim/autoload/dist
1298%{_datadir}/vim/autoload/dist/ft.vim
88e9fd4c 1299
d1b4bd6a
ER
1300%dir %{_datadir}/vim/ftdetect
1301
a48bd85b
ER
1302%dir %{_datadir}/vim/ftplugin
1303%doc %{_datadir}/vim/ftplugin/README.txt
1304%{_datadir}/vim/ftplugin/*.vim
ec7cce13 1305%{_datadir}/vim/ftplugin/logtalk.dict
a48bd85b
ER
1306
1307%dir %{_datadir}/vim/indent
1308%doc %{_datadir}/vim/indent/README.txt
1309%{_datadir}/vim/indent/*.vim
1310
1311%dir %{_datadir}/vim/keymap
1312%doc %{_datadir}/vim/keymap/README.txt
1313%{_datadir}/vim/keymap/*.vim
1314
a39abb00
AM
1315%{_datadir}/vim/pack
1316
a48bd85b
ER
1317%dir %{_datadir}/vim/plugin
1318%doc %{_datadir}/vim/plugin/README.txt
a48bd85b
ER
1319
1320%dir %{_datadir}/vim/syntax
1321%doc %{_datadir}/vim/syntax/README.txt
1322%{_datadir}/vim/syntax/*.vim
1323
1324%dir %{_datadir}/vim/colors
1325%doc %{_datadir}/vim/colors/README.txt
1326%{_datadir}/vim/colors/*.vim
d6adf2d5
AM
1327%dir %{_datadir}/vim/colors/lists
1328%{_datadir}/vim/colors/lists/*.vim
8c2513ef
AM
1329%dir %{_datadir}/vim/colors/tools
1330%{_datadir}/vim/colors/tools/check_colors.vim
a48bd85b
ER
1331
1332%dir %{_datadir}/vim/lang
1333%doc %{_datadir}/vim/lang/README*
1334
1335%lang(af) %{_datadir}/vim/lang/menu_af*
1336%lang(ca) %{_datadir}/vim/lang/menu_ca*
1337%lang(cs) %{_datadir}/vim/lang/menu_cs*
1338%lang(cs) %{_datadir}/vim/lang/menu_*czech*
cbc57471 1339%lang(da) %{_datadir}/vim/lang/menu_da*
a48bd85b
ER
1340%lang(de) %{_datadir}/vim/lang/menu_de*
1341%lang(de) %{_datadir}/vim/lang/menu_*german*
1342%lang(en_GB) %{_datadir}/vim/lang/menu_en_gb*
1343%lang(en_GB) %{_datadir}/vim/lang/menu_*english*
1344%lang(eo) %{_datadir}/vim/lang/menu_eo.utf-8.vim
1345%lang(eo) %{_datadir}/vim/lang/menu_eo_eo.utf-8.vim
1346%lang(eo) %{_datadir}/vim/lang/menu_eo_xx.utf-8.vim
1347%lang(es) %{_datadir}/vim/lang/menu_es*
1348%lang(es) %{_datadir}/vim/lang/menu_*spanish*
1349%lang(fi) %{_datadir}/vim/lang/menu_fi.latin1.vim
1350%lang(fi) %{_datadir}/vim/lang/menu_fi.utf-8.vim
1351%lang(fi) %{_datadir}/vim/lang/menu_fi_fi.latin1.vim
1352%lang(fi) %{_datadir}/vim/lang/menu_fi_fi.utf-8.vim
1353%lang(fi) %{_datadir}/vim/lang/menu_finnish_finland.1252.vim
1354%lang(fr) %{_datadir}/vim/lang/menu_fr*
1355%lang(hu) %{_datadir}/vim/lang/menu_hu*
cbc57471 1356%lang(is) %{_datadir}/vim/lang/menu_is*
a48bd85b
ER
1357%lang(it) %{_datadir}/vim/lang/menu_it*
1358%lang(ja) %{_datadir}/vim/lang/menu_ja*
1359%lang(ko) %{_datadir}/vim/lang/menu_ko*
1360%lang(nl) %{_datadir}/vim/lang/menu_nl*
1361%lang(nb) %{_datadir}/vim/lang/menu_nb*
1362%lang(pl) %{_datadir}/vim/lang/menu_pl*
1363%lang(pl) %{_datadir}/vim/lang/menu_*polish*
1364%lang(pt) %{_datadir}/vim/lang/menu_pt*
1365%lang(ru) %{_datadir}/vim/lang/menu_ru*
1366%lang(sk) %{_datadir}/vim/lang/menu_sk*
1367%lang(sk) %{_datadir}/vim/lang/menu_*slovak*
1368%lang(sl) %{_datadir}/vim/lang/menu_sl_si*
1369%lang(sr) %{_datadir}/vim/lang/menu_sr*
1370%lang(sv) %{_datadir}/vim/lang/menu_sv*
cbc57471 1371%lang(tr) %{_datadir}/vim/lang/menu_tr*
a48bd85b
ER
1372%lang(uk) %{_datadir}/vim/lang/menu_uk*
1373%lang(vi) %{_datadir}/vim/lang/menu_vi*
1374%lang(zh_CN) %{_datadir}/vim/lang/menu_zh.cp936*
1375%lang(zh_CN) %{_datadir}/vim/lang/menu_zh.gb2312*
1376%lang(zh_CN) %{_datadir}/vim/lang/menu_zh_cn*
1377%lang(zh_CN) %{_datadir}/vim/lang/menu_*chinese*gb*
1378%lang(zh_TW) %{_datadir}/vim/lang/menu_zh.cp950*
1379%lang(zh_TW) %{_datadir}/vim/lang/menu_zh.big5*
1380%lang(zh_TW) %{_datadir}/vim/lang/menu_zh_tw*
1381%lang(zh_TW) %{_datadir}/vim/lang/menu_*taiwan*
1382
1383%dir %{_datadir}/vim/spell
1e434aad 1384%{_datadir}/vim/spell/spell.vim
a48bd85b
ER
1385%lang(he) %{_datadir}/vim/spell/he.*
1386%lang(yi) %{_datadir}/vim/spell/yi.*
9bc905eb 1387
4399a7e9 1388%{_mandir}/man1/vim.1*
cbc57471
JB
1389%lang(da) %{_mandir}/da/man1/vim.1*
1390%lang(de) %{_mandir}/de/man1/vim.1*
4399a7e9 1391%lang(fi) %{_mandir}/fi/man1/vim.1*
4399a7e9 1392%lang(fr) %{_mandir}/fr/man1/vim.1*
cbc57471
JB
1393%lang(id) %{_mandir}/id/man1/vim.1*
1394%lang(it) %{_mandir}/it/man1/vim.1*
1395%lang(ja) %{_mandir}/ja/man1/vim.1*
1396%lang(pl) %{_mandir}/pl/man1/vim.1*
1397%lang(ru) %{_mandir}/ru/man1/vim.1*
1398%lang(tr) %{_mandir}/tr/man1/vim.1*
6b9748f0 1399%{_pixmapsdir}/gvim.png
5def452f 1400
3ee5bb1b
ER
1401# plugins in base -rt package
1402%{_datadir}/vim/autoload/gzip.vim
1403%{_datadir}/vim/plugin/gzip.vim
1404%{_datadir}/vim/plugin/matchparen.vim
1405
2440ded8
ER
1406%files rt-extras
1407%defattr(644,root,root,755)
3ee5bb1b
ER
1408%{_datadir}/vim/plugin/*.vim
1409%{_datadir}/vim/autoload/*.vim
49168b34 1410%exclude %{_datadir}/vim/autoload/*complete.vim
3ee5bb1b 1411%{_datadir}/vim/autoload/xml
a48bd85b
ER
1412%{_datadir}/vim/compiler
1413%{_datadir}/vim/macros
1414%{_datadir}/vim/print
2440ded8 1415
3ee5bb1b
ER
1416# plugins in base -rt package
1417%exclude %{_datadir}/vim/autoload/gzip.vim
1418%exclude %{_datadir}/vim/plugin/gzip.vim
1419%exclude %{_datadir}/vim/plugin/matchparen.vim
1420
2440ded8
ER
1421%files doc
1422%defattr(644,root,root,755)
2440ded8 1423# English
f8957c50 1424%{_datadir}/vim/doc/*.txt
2440ded8
ER
1425
1426# Polish
f8957c50 1427%lang(pl) %{_datadir}/vim/doc/*.plx
2440ded8 1428
5def452f
ER
1429%files tutor
1430%defattr(644,root,root,755)
1431%attr(755,root,root) %{_bindir}/vimtutor
a48bd85b 1432%dir %{_datadir}/vim/tutor
f8585597 1433%{_datadir}/vim/tutor/tutor
a48bd85b
ER
1434
1435%{_datadir}/vim/tutor/README.txt
a48bd85b
ER
1436%{_datadir}/vim/tutor/tutor.vim
1437%{_datadir}/vim/tutor/tutor.utf-8
1438%lang(el) %{_datadir}/vim/tutor/README.el.cp737.txt
1439%lang(el) %{_datadir}/vim/tutor/README.el.txt
1440
1e434aad
AM
1441%lang(de) %{_datadir}/vim/tutor/tutor.bar
1442%lang(de) %{_datadir}/vim/tutor/tutor.bar.utf-8
98d45eb4 1443%lang(bg) %{_datadir}/vim/tutor/tutor.bg.utf-8
a48bd85b
ER
1444%lang(ca) %{_datadir}/vim/tutor/tutor.ca
1445%lang(ca) %{_datadir}/vim/tutor/tutor.ca.utf-8
1446%lang(cs) %{_datadir}/vim/tutor/tutor.cs
1447%lang(cs) %{_datadir}/vim/tutor/tutor.cs.cp1250
1448%lang(cs) %{_datadir}/vim/tutor/tutor.cs.utf-8
cbc57471
JB
1449%lang(da) %{_datadir}/vim/tutor/tutor.da
1450%lang(da) %{_datadir}/vim/tutor/tutor.da.utf-8
a48bd85b
ER
1451%lang(de) %{_datadir}/vim/tutor/tutor.de
1452%lang(de) %{_datadir}/vim/tutor/tutor.de.utf-8
1453%lang(el) %{_datadir}/vim/tutor/tutor.el
1454%lang(el) %{_datadir}/vim/tutor/tutor.el.cp737
1455%lang(el) %{_datadir}/vim/tutor/tutor.el.utf-8
37175aa8 1456%lang(eo) %{_datadir}/vim/tutor/tutor.eo
a48bd85b
ER
1457%lang(eo) %{_datadir}/vim/tutor/tutor.eo.utf-8
1458%lang(es) %{_datadir}/vim/tutor/tutor.es
1459%lang(es) %{_datadir}/vim/tutor/tutor.es.utf-8
1460%lang(fr) %{_datadir}/vim/tutor/tutor.fr
1461%lang(fr) %{_datadir}/vim/tutor/tutor.fr.utf-8
1462%lang(hr) %{_datadir}/vim/tutor/tutor.hr
1463%lang(hr) %{_datadir}/vim/tutor/tutor.hr.cp1250
1464%lang(hr) %{_datadir}/vim/tutor/tutor.hr.utf-8
1465%lang(hu) %{_datadir}/vim/tutor/tutor.hu
a48bd85b 1466%lang(hu) %{_datadir}/vim/tutor/tutor.hu.cp1250
4963cca1 1467%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
a48bd85b
ER
1468%lang(it) %{_datadir}/vim/tutor/tutor.it
1469%lang(it) %{_datadir}/vim/tutor/tutor.it.utf-8
1470%lang(ja) %{_datadir}/vim/tutor/tutor.ja.euc
1471%lang(ja) %{_datadir}/vim/tutor/tutor.ja.sjis
1472%lang(ja) %{_datadir}/vim/tutor/tutor.ja.utf-8
cbc57471 1473%lang(ko) %{_datadir}/vim/tutor/tutor.ko
a48bd85b
ER
1474%lang(ko) %{_datadir}/vim/tutor/tutor.ko.euc
1475%lang(ko) %{_datadir}/vim/tutor/tutor.ko.utf-8
cbc57471 1476%lang(lv) %{_datadir}/vim/tutor/tutor.lv.utf-8
1e434aad
AM
1477%lang(nl) %{_datadir}/vim/tutor/tutor.nl
1478%lang(nl) %{_datadir}/vim/tutor/tutor.nl.utf-8
a48bd85b
ER
1479%lang(nb) %{_datadir}/vim/tutor/tutor.nb
1480%lang(nb) %{_datadir}/vim/tutor/tutor.nb.utf-8
1481%lang(pl) %{_datadir}/vim/tutor/tutor.pl
1482%lang(pl) %{_datadir}/vim/tutor/tutor.pl.cp1250
1483%lang(pl) %{_datadir}/vim/tutor/tutor.pl.utf-8
37175aa8
AG
1484%lang(pt) %{_datadir}/vim/tutor/tutor.pt
1485%lang(pt) %{_datadir}/vim/tutor/tutor.pt.utf-8
a48bd85b
ER
1486%lang(ru) %{_datadir}/vim/tutor/tutor.ru
1487%lang(ru) %{_datadir}/vim/tutor/tutor.ru.cp1251
1488%lang(ru) %{_datadir}/vim/tutor/tutor.ru.utf-8
1489%lang(sk) %{_datadir}/vim/tutor/tutor.sk
1490%lang(sk) %{_datadir}/vim/tutor/tutor.sk.cp1250
1491%lang(sk) %{_datadir}/vim/tutor/tutor.sk.utf-8
17e4f3c7
JB
1492%lang(sr) %{_datadir}/vim/tutor/tutor.sr.cp1250
1493%lang(sr) %{_datadir}/vim/tutor/tutor.sr.utf-8
a48bd85b
ER
1494%lang(sv) %{_datadir}/vim/tutor/tutor.sv
1495%lang(sv) %{_datadir}/vim/tutor/tutor.sv.utf-8
1496%lang(tr) %{_datadir}/vim/tutor/tutor.tr.iso9
1497%lang(tr) %{_datadir}/vim/tutor/tutor.tr.utf-8
17e4f3c7 1498%lang(uk) %{_datadir}/vim/tutor/tutor.uk.utf-8
a48bd85b 1499%lang(vi) %{_datadir}/vim/tutor/tutor.vi.utf-8
1e434aad 1500%lang(zh_CN) %{_datadir}/vim/tutor/tutor.zh_cn.utf-8
a48bd85b
ER
1501%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.big5
1502%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.euc
1503%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.utf-8
1e434aad 1504%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh_tw.utf-8
478fb2f2 1505
5def452f 1506%{_mandir}/man1/vimtutor.1*
cbc57471 1507%lang(da) %{_mandir}/da/man1/vimtutor.1*
4399a7e9 1508%lang(fr) %{_mandir}/fr/man1/vimtutor.1*
4399a7e9 1509%lang(it) %{_mandir}/it/man1/vimtutor.1*
1e434aad 1510%lang(ja) %{_mandir}/ja/man1/vimtutor.1*
4399a7e9 1511%lang(pl) %{_mandir}/pl/man1/vimtutor.1*
4399a7e9 1512%lang(ru) %{_mandir}/ru/man1/vimtutor.1*
cbc57471 1513%lang(tr) %{_mandir}/tr/man1/vimtutor.1*
64bf7ae0 1514
53feb092 1515%if %{with x11}
ac713ebd
JR
1516%files -n vimx
1517%defattr(644,root,root,755)
1518%attr(755,root,root) %{_bindir}/vimx
53feb092 1519%endif
ac713ebd 1520
fbe64536
ER
1521%if %{with heavy}
1522%files heavy
1523%defattr(644,root,root,755)
1524%attr(755,root,root) %{_bindir}/vim.heavy
1525%endif
1526
06e19bfc
JK
1527%if %{with light}
1528%files light
1529%defattr(644,root,root,755)
1530%attr(755,root,root) %{_bindir}/vim.light
1531%endif
1532
4399a7e9
JB
1533%files spell-en
1534%defattr(644,root,root,755)
a48bd85b 1535%{_datadir}/vim/spell/en.*.*
4399a7e9 1536
d6e63bbe 1537%if %{with athena}
f22e9322 1538%files -n gvim-athena
1539%defattr(644,root,root,755)
c983f1ff 1540%attr(755,root,root) %{_bindir}/gvim.athena
eab7da3d 1541%{_desktopdir}/gvim-athena.desktop
f22e9322 1542%endif
1543
d6e63bbe 1544%if %{with motif}
f22e9322 1545%files -n gvim-motif
1546%defattr(644,root,root,755)
c983f1ff 1547%attr(755,root,root) %{_bindir}/gvim.motif
eab7da3d 1548%{_desktopdir}/gvim-motif.desktop
f22e9322 1549%endif
1550
d6e63bbe 1551%if %{with gtk}
f22e9322 1552%files -n gvim-gtk
1553%defattr(644,root,root,755)
c983f1ff 1554%attr(755,root,root) %{_bindir}/gvim.gtk
25a79fa4
JB
1555%attr(755,root,root) %verify(not link) %{_bindir}/gvim
1556%attr(755,root,root) %{_bindir}/eview
1557%attr(755,root,root) %{_bindir}/evim
4197338c 1558%attr(755,root,root) %{_bindir}/gview
25a79fa4 1559%attr(755,root,root) %{_bindir}/gvimdiff
c983f1ff 1560%attr(755,root,root) %{_bindir}/rgview
25a79fa4
JB
1561%attr(755,root,root) %{_bindir}/rgvim
1562%{_mandir}/man1/eview.1*
1563%{_mandir}/man1/evim.1*
cbc57471
JB
1564%{_mandir}/man1/gview.1*
1565%{_mandir}/man1/gvim.1*
1566%{_mandir}/man1/gvimdiff.1*
1567%{_mandir}/man1/rgview.1*
1568%{_mandir}/man1/rgvim.1*
1569%lang(da) %{_mandir}/da/man1/gvi*.1*
1570%lang(da) %{_mandir}/da/man1/rgv*.1*
1571%lang(de) %{_mandir}/de/man1/gvi*.1*
1572%lang(de) %{_mandir}/de/man1/rgv*.1*
1573%lang(fi) %{_mandir}/fi/man1/gvi*.1*
1574%lang(fi) %{_mandir}/fi/man1/rgv*.1*
25a79fa4
JB
1575%lang(fr) %{_mandir}/fr/man1/eview.1*
1576%lang(fr) %{_mandir}/fr/man1/evim.1*
cbc57471
JB
1577%lang(fr) %{_mandir}/fr/man1/gvi*.1*
1578%lang(fr) %{_mandir}/fr/man1/rgv*.1*
1579%lang(id) %{_mandir}/id/man1/gvi*.1*
1580%lang(id) %{_mandir}/id/man1/rgv*.1*
25a79fa4
JB
1581%lang(it) %{_mandir}/it/man1/eview.1*
1582%lang(it) %{_mandir}/it/man1/evim.1*
cbc57471
JB
1583%lang(it) %{_mandir}/it/man1/gvi*.1*
1584%lang(it) %{_mandir}/it/man1/rgv*.1*
1e434aad
AM
1585%lang(ja) %{_mandir}/ja/man1/eview.1*
1586%lang(ja) %{_mandir}/ja/man1/evim.1*
cbc57471
JB
1587%lang(ja) %{_mandir}/ja/man1/gvi*.1*
1588%lang(ja) %{_mandir}/ja/man1/rgv*.1*
25a79fa4
JB
1589%lang(pl) %{_mandir}/pl/man1/eview.1*
1590%lang(pl) %{_mandir}/pl/man1/evim.1*
cbc57471
JB
1591%lang(pl) %{_mandir}/pl/man1/gvi*.1*
1592%lang(pl) %{_mandir}/pl/man1/rgv*.1*
25a79fa4
JB
1593%lang(ru) %{_mandir}/ru/man1/eview.1*
1594%lang(ru) %{_mandir}/ru/man1/evim.1*
cbc57471
JB
1595%lang(ru) %{_mandir}/ru/man1/gvi*.1*
1596%lang(ru) %{_mandir}/ru/man1/rgv*.1*
1597%lang(tr) %{_mandir}/tr/man1/eview.1*
1598%lang(tr) %{_mandir}/tr/man1/evim.1*
1599%lang(tr) %{_mandir}/tr/man1/gvi*.1*
1600%lang(tr) %{_mandir}/tr/man1/rgv*.1*
eab7da3d 1601%{_desktopdir}/gvim-gtk.desktop
f22e9322 1602%endif
1603
d6e63bbe 1604%if %{with gnome}
f22e9322 1605%files -n gvim-gnome
1606%defattr(644,root,root,755)
c983f1ff 1607%attr(755,root,root) %{_bindir}/gvim.gnome
474e8862 1608%{_desktopdir}/gvim-gnome.desktop
afe2d598 1609%endif
fbe64536
ER
1610
1611%if %{with heavy}
1612%files -n gvim-heavy
1613%defattr(644,root,root,755)
1614%attr(755,root,root) %{_bindir}/gvim.heavy
1615%endif
This page took 1.007254 seconds and 4 git commands to generate.