]>
Commit | Line | Data |
---|---|---|
9bc905eb | 1 | # TODO: |
970ad6a1 | 2 | # - merge with AC-branch |
9bc905eb | 3 | # - some nice icon |
c931d32b | 4 | # - create vim-full (better name, anybody?) or/and other packages |
5 | # for scripting languages support | |
6facb60f JB |
6 | # |
7 | # Conditional build: | |
ec23c5c9 JB |
8 | %bcond_without static # don't build static version |
9 | %bcond_without athena # don't build Athena Widgets-based gvim | |
10 | %bcond_without motif # don't build Motif-based gvim | |
e746f321 | 11 | %bcond_without gtk # don't build GTK+-based gvim support |
12 | %bcond_without gnome # don't build GNOME-based gvim support | |
237877cd | 13 | %bcond_with perl # with Perl interp |
c931d32b | 14 | %bcond_with python # with Python interp |
15 | %bcond_with ruby # with Ruby interp | |
16 | %bcond_with tcl # with Tcl interp | |
ec23c5c9 | 17 | %bcond_without selinux # without selinux support |
ec23c5c9 | 18 | %bcond_without home_etc # without home_etc support |
7ba74caf | 19 | # |
95142873 | 20 | %define _ver 7.1 |
b0c2021d AG |
21 | %define _patchlevel 100 |
22 | %define _rel 1 | |
80b161c5 | 23 | |
fc7b36fc ER |
24 | # cflags get changed while configuring |
25 | %undefine configure_cache | |
26 | # | |
84c81dea | 27 | Summary: Vi IMproved - a Vi clone |
1a02d184 ER |
28 | Summary(de.UTF-8): VIsual editor iMproved |
29 | Summary(es.UTF-8): Editor visual incrementado | |
30 | Summary(fr.UTF-8): Editeur VIM : VIsual editor iMproved | |
31 | Summary(pl.UTF-8): Vi IMproved - klon edytora Vi | |
32 | Summary(pt_BR.UTF-8): Editor visual incrementado | |
33 | Summary(ru.UTF-8): Visual editor IMproved - Единственно Правильный Редактор :) | |
34 | Summary(tr.UTF-8): Gelişmiş bir vi sürümü | |
35 | Summary(uk.UTF-8): Visual editor IMproved - Єдино Вірний Редактор :) | |
86c64819 | 36 | Name: vim |
96eaec6a | 37 | Version: %{_ver}.%{_patchlevel} |
c557a18e | 38 | Release: %{_rel} |
2f66771d | 39 | Epoch: 4 |
f73b565e | 40 | License: Charityware |
8627c94f | 41 | Group: Applications/Editors/Vim |
96eaec6a | 42 | Source0: ftp://ftp.vim.org/pub/vim/unix/%{name}-%{_ver}.tar.bz2 |
95142873 | 43 | # Source0-md5: 44c6b4914f38d6f9aa959640b89da329 |
aaf60aad | 44 | Source1: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-lang.tar.gz |
95142873 | 45 | # Source1-md5: 144aa049ba70621acf4247f0459f3ee7 |
41f33985 | 46 | Source2: ftp://ftp.vim.org/pub/vim/extra/%{name}-%{_ver}-extra.tar.gz |
95142873 | 47 | # Source2-md5: 605cc7ae31bcc9d7864bb0bb6025f55d |
41f33985 AM |
48 | Source3: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
49 | # Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f | |
50 | Source4: http://skawina.eu.org/mikolaj/usr_doc_pl.zip | |
51 | # Source4-md5: ff96284b1c913d55cf0877839b34d490 | |
59e47b54 AF |
52 | Source10: g%{name}-athena.desktop |
53 | Source11: g%{name}-motif.desktop | |
54 | Source12: g%{name}-gtk.desktop | |
55 | Source13: g%{name}-gnome.desktop | |
0f99c50f | 56 | Source14: %{name}.desktop |
2215010b | 57 | # http://www.vim.org/scripts/script.php?script_id=415 (1.15) |
19d8e711 AG |
58 | Source15: zenburn.%{name} |
59 | Source16: spec.%{name} | |
2215010b | 60 | # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.3) |
19d8e711 | 61 | Source17: javascript.%{name} |
aaf60aad ER |
62 | Source18: nagios.%{name} |
63 | Source19: %{name}-ftplugin-spec.vim | |
db58c86e | 64 | Patch0: %{name}-sysconfdir.patch |
65 | Patch1: %{name}-visual.patch | |
66 | Patch2: %{name}-paths.patch | |
d1abaab5 AG |
67 | Patch3: %{name}-%{name}rc.patch |
68 | Patch4: %{name}-no_libelf.patch | |
69 | Patch5: %{name}-egrep.patch | |
70 | Patch6: %{name}-awk.patch | |
d6de9a65 AG |
71 | Patch7: %{name}-filetype_vim-perl_tests.patch |
72 | Patch8: %{name}-apache.patch | |
73 | Patch9: %{name}-po-syntax.patch | |
74 | Patch10: %{name}-modprobe.patch | |
75 | Patch11: %{name}-doubleparenthesis.patch | |
76 | Patch12: %{name}-syntax-fstab.patch | |
77 | Patch13: 010_all_%{name}-6.3-vixie.patch | |
78 | Patch14: 013_all_%{name}-7.0-cron-vars-79981.patch | |
79 | Patch15: 020_all_%{name}-7.0-fstab-tmpfs-size.patch | |
80 | Patch16: 021_all_%{name}-7.0-fstab-bogus-errors.patch | |
81 | Patch17: 024_all_%{name}-6.3-bash-83565.patch | |
82 | Patch18: 027_all_%{name}-7.0-automake-substitutions-93378.patch | |
83 | Patch19: %{name}-smarty.patch | |
84 | Patch20: %{name}-tutor-lessdeps.patch | |
85 | Patch21: %{name}-nagios.patch | |
86 | Patch22: %{name}-filetypes.patch | |
9c95080e | 87 | Patch23: %{name}-man_installation.patch |
d6de9a65 | 88 | Patch102: %{name}-gtkfilechooser.patch |
d6de9a65 AG |
89 | Patch104: %{name}-home_etc.patch |
90 | Patch105: %{name}-selinux.patch | |
95142873 AG |
91 | Patch106: %{name}-autopaste.patch |
92 | Patch107: %{name}-ft-cron.patch | |
6991bfe9 | 93 | %patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.1/7.1.%03g 1 %{_patchlevel} |
f73b565e | 94 | URL: http://www.vim.org/ |
21ab67a5 | 95 | BuildRequires: acl-devel |
da7b5595 JB |
96 | BuildRequires: autoconf |
97 | BuildRequires: gettext-devel | |
84c81dea | 98 | BuildRequires: gpm-devel |
a8f099d1 | 99 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.6.0} |
d6e63bbe | 100 | %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.2.0.1} |
e57aa23e | 101 | %{?with_selinux:BuildRequires: libselinux-devel} |
1fa34b46 | 102 | BuildRequires: ncurses-devel |
e37f7386 | 103 | %{?with_motif:BuildRequires: openmotif-devel} |
d6e63bbe | 104 | %{?with_perl:BuildRequires: perl-devel} |
f14f41d3 | 105 | %{?with_python:BuildRequires: python-devel >= 2.5} |
2a5b9a50 | 106 | %{?with_ruby:BuildRequires: ruby-devel} |
d6e63bbe | 107 | %{?with_tcl:BuildRequires: tcl-devel} |
2a61b438 ER |
108 | %{?with_athena:BuildRequires: xorg-lib-libXaw-devel} |
109 | Obsoletes: kvim | |
60aa9cdd | 110 | BuildRequires: rpmbuild(macros) >= 1.351 |
082a03d8 AM |
111 | %if %{with static} |
112 | BuildRequires: acl-static | |
40ff2b7e JB |
113 | BuildRequires: attr-static |
114 | BuildRequires: glibc-static | |
e57aa23e | 115 | %{?with_selinux:BuildRequires: libselinux-static} |
40ff2b7e | 116 | BuildRequires: ncurses-static |
082a03d8 | 117 | %else |
7ba74caf | 118 | Provides: %{name}-static = %{epoch}:%{version}-%{release} |
214d5c14 ER |
119 | Obsoletes: elvis-static |
120 | Obsoletes: nvi | |
121 | Obsoletes: vi | |
122 | Obsoletes: vim-minimal | |
fc7b36fc | 123 | Obsoletes: vim-static |
082a03d8 | 124 | %endif |
7b8fe793 | 125 | BuildRequires: unzip |
99216be1 | 126 | Requires: %{name}-rt = %{epoch}:%{version}-%{release} |
ed99f1fe | 127 | Provides: vi-editor |
fc7b36fc | 128 | Provides: vi |
84c81dea | 129 | Obsoletes: vim-enhanced |
5664b129 | 130 | Obsoletes: vim-ispell |
ea73bb7e | 131 | Obsoletes: vim-plugin-multvals |
beb06d49 | 132 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8627c94f | 133 | |
f2ff3795 | 134 | # that's example script |
135 | %define _noautoreq '/bin/csh' | |
136 | ||
84c81dea | 137 | %description |
f73b565e | 138 | Text editor similar to Vi. Important improvements: multiple windows, |
b83ed9cf | 139 | multi-level undo, block highliting, folding, and many other. |
f73b565e | 140 | |
5cf83aa7 JR |
141 | %description -l cs.UTF-8 |
142 | ViM je nový a vylepšený editor vycházející z klasického editoru vi. Vi | |
143 | byl prvním celoobrazovkovým editorem pro Unix a je stále velmi | |
144 | populární. ViM je obohacený funkcemi jako: podpora více oken, | |
145 | víceúrovňové undo, zvýrazňování bloků a řadu dalších užitečných | |
146 | funkcí. | |
507e1057 | 147 | |
5cf83aa7 | 148 | %description -l de.UTF-8 |
f73b565e | 149 | Der Visual-Editor iMproved ist ein aktualisierter und erweiterter Klon |
150 | des vi-Editors, der mit praktisch allen UN*X-Systemen ausgeliefert | |
151 | wird. Er bringt mehrere Fenster, mehrstufige Widerrufen-Funktion, | |
152 | Block-Markierung und viele weitere Zusatzfunktionen im Vergleich zum | |
153 | Standard-vi-Programm. | |
154 | ||
5cf83aa7 JR |
155 | %description -l es.UTF-8 |
156 | El editor Visual Mejorado es una versión actualizada y con nuevas | |
157 | características adicionales del mundialmente famoso 'vi' que acompaña | |
158 | prácticamente todos los sistemas UN*X. Posibilita trabajar con | |
159 | múltiples ventanas, varios niveles de deshacer, bloques enfatizados, y | |
160 | otras muchas características del 'vi'. | |
161 | ||
162 | %description -l fr.UTF-8 | |
163 | L'éditeur VIsuel aMélioré est un clone mis à jour et doté de | |
164 | caractéristiques supplémentaires de l'éditeur « vi » fourni avec | |
165 | pratiquement tous les systèmes UN*X. Il ajoute les fenêtres | |
166 | mutltiples, l'annulation a plusieurs niveaux, la mise en évidence des | |
167 | blocs et autres caractéristiques au vi de base. | |
168 | ||
169 | %description -l id.UTF-8 | |
507e1057 | 170 | VIM (VIsual editor iMproved) adalah versi vi editor yang sudah |
171 | diupdate dan ditambah kemampuannya. Vi adalah editor untuk UNIX yang | |
172 | pertama yang menggunakan layar, dan sekarang masih sangat populer. VIM | |
173 | mengembangkan vi dengan menambah kemampuan baru seperti: multiple | |
174 | windows, multi-level undo, block highlighting, dll. | |
175 | ||
5cf83aa7 JR |
176 | %description -l is.UTF-8 |
177 | VIM (VIsual editor iMproved) er uppfærð og endurbætt útgáfa af vi | |
178 | ritlinum. Vi var fyrsti skjá-ritillinn fyrir UNIX og er enn mjög | |
179 | vinsæll. VIM gerist föðurbetrungur með nýjum möguleikum líkt og | |
180 | gluggakerfi, iðrun og yfirbót (e: multi-level undo), blokkarvali og | |
507e1057 | 181 | fleira. |
182 | ||
5cf83aa7 JR |
183 | %description -l it.UTF-8 |
184 | VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor | |
185 | vi. Vi è stato il primo editor per UNIX realmente basato su video ed è | |
507e1057 | 186 | ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni: |
187 | finestre multiple, funzione \"annulla\" multilivello, evidenziazione | |
188 | dei blocchi e altro. | |
189 | ||
5cf83aa7 JR |
190 | %description -l pl.UTF-8 |
191 | Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu | |
192 | oknach, wielopoziomowa opcja 'cofnij', bloki, podświetlanie składni, | |
b83ed9cf | 193 | folding i wiele innych. |
8f1c0b93 | 194 | |
5cf83aa7 JR |
195 | %description -l pt.UTF-8 |
196 | O VIM (VIsual editor iMproved) é uma versão melhorada e actualizada do | |
197 | editor vi. O vi foi o primeiro verdadeiro editor baseado em ecrã para | |
198 | o UNIX, e ainda é muito popular. O VIM melhora o vi acrescentando | |
199 | novas potencialidades: janelas múltiplas, anulação multi-nível, realce | |
507e1057 | 200 | de blocos e mais. |
201 | ||
5cf83aa7 JR |
202 | %description -l pt_BR.UTF-8 |
203 | O editor Vim (Vi Enhanced) é um versão atualizada e com novas | |
204 | características do mundialmente famoso 'vi' que acompanha praticamente | |
205 | todos os sistemas UN*X. Ele possibilita trabalhar com múltiplas | |
206 | janelas, vários níveis de desfazer, blocos enfatizados, e muitas | |
207 | outras características do 'vi'. | |
208 | ||
209 | %description -l ru.UTF-8 | |
210 | VIsual editor iMproved - это обновленный и значительно улучшенный клон | |
211 | редактора vi, который поставляется практически со всеми | |
212 | UN*X-системами. В этой версии есть многоуровневый откат, выделение | |
213 | блоков, синтаксическая подсветка и много другого... | |
214 | ||
215 | %description -l sk.UTF-8 | |
216 | VIM (VIsual editor iMproved) je novšia a vylepšená verzia editoru vi. | |
217 | Vi bol prvým skutočne obrazovkovo orientovaným editorom pre UNIX a | |
218 | stále je veľmi populárny. VIM má oproti vi vylepšenia ako: prácu s | |
219 | viacerými oknami, viacnásobné undo, zvýrazňovanie blokov textu a iné. | |
220 | ||
221 | %description -l sv.UTF-8 | |
222 | VIM (Vi IMproved) är en uppdaterad och förbättrad version av | |
223 | redigeraren vi. Vi var den första riktiga skärmbaserade redigeraren | |
224 | till UNIX, och är fortfarande väldigt populär. VIM förbättrar vi med | |
225 | nya finesser: flera fönster, flernivå ångra, blockmarkering och mer | |
226 | ändå. | |
227 | ||
228 | %description -l tr.UTF-8 | |
229 | Standart vi metin düzenleyicisinin gelişmiş hali; daha fazla komut, | |
230 | birden fazla pencere desteği ve blok işaretleme yetenekleri içerir. | |
231 | ||
232 | %description -l uk.UTF-8 | |
233 | VIsual editor iMproved - це оновлений та значно поліпшений клон | |
234 | редактора vi, який поставляється практично зі всіма UN*X-системами. В | |
235 | цій версії є багаторівневий відкат, виділення блоків, синтаксична | |
236 | підсвітка та багато іншого... | |
9e79ff1a | 237 | |
5f8672c8 JB |
238 | %package -n xxd |
239 | Summary: Utility to convert files to hexdump or do the reverse | |
1a02d184 | 240 | Summary(pl.UTF-8): Narzędzie do zamiany plików na postać szesnastkową i odwrotnie |
5f8672c8 | 241 | Group: Applications/Editors/Vim |
5f8672c8 JB |
242 | |
243 | %description -n xxd | |
244 | xxd creates a hex dump of a given file or standard input. It can also | |
245 | convert a hex dump back to its original binary form. Like uuencode and | |
246 | uudecode it allows the transmission of binary data in a `mail-safe' | |
247 | ASCII representation, but has the advantage of decoding to standard | |
248 | output. Moreover, it can be used to perform binary file patching. | |
249 | ||
5cf83aa7 JR |
250 | %description -n xxd -l pl.UTF-8 |
251 | xxd tworzy szesnastkowy zapis pliku podanego na standardowe wejście. | |
252 | Może także przekonwertować taki zapis na oryginalną, binarną postać. | |
253 | Podobnie jak uuencode i uudecode pozwala na przesyłanie danych | |
254 | binarnych w postaci ASCII, ale ma możliwość dekodowania na standardowe | |
255 | wyjście. Co więcej, może być użyty do modyfikowania plików binarnych. | |
5f8672c8 | 256 | |
6590d069 | 257 | %package static |
7e3e3036 | 258 | Summary: Statically linked Vim |
1a02d184 | 259 | Summary(pl.UTF-8): Statycznie skonsolidowany Vim |
84c81dea | 260 | Group: Applications/Editors/Vim |
ed99f1fe | 261 | Provides: vi-editor |
fc7b36fc | 262 | Provides: vi |
95a598bc JB |
263 | Obsoletes: elvis-static |
264 | Obsoletes: nvi | |
84c81dea | 265 | Obsoletes: vim-minimal |
c9897555 | 266 | |
84c81dea | 267 | %description static |
b83ed9cf | 268 | Text editor similar to Vi. This version is built with minimal feature |
f73b565e | 269 | and is installed in /bin as a rescue tool. The installation of this |
270 | package is STRONGLY recommended. | |
84c81dea | 271 | |
5cf83aa7 JR |
272 | %description static -l pl.UTF-8 |
273 | Edytor tekstu podobny do Vi. Ta wersja została skonsolidowana | |
274 | statycznie i posiada minimalną ilość dodatków. Jest instalowana w /bin | |
275 | jako narzędzie dla administratora. Instalacja tego pakietu jest MOCNO | |
276 | zalecana, może on pomóc Ci uratować system w czasie awarii. | |
8627c94f | 277 | |
5cf83aa7 JR |
278 | %description static -l ru.UTF-8 |
279 | Пакет vim-static устанавливает разновидность vim как /bin/vi, что | |
280 | удобно для запуска даже когда смонтирована только корневая файловая | |
281 | система. | |
9e79ff1a | 282 | |
5cf83aa7 JR |
283 | %description static -l uk.UTF-8 |
284 | Пакет vim-static встановлює різновид vim як /bin/vi, що зручно для | |
285 | запуску навіть тоді, коли змонтована тільки корньова файлова система. | |
9e79ff1a | 286 | |
c9897555 | 287 | %package rt |
8627c94f | 288 | Summary: Vim runtime files |
1a02d184 ER |
289 | Summary(cs.UTF-8): Soubory nezbytné pro libovolný editor ViM |
290 | Summary(da.UTF-8): Fælles filer som er nødvendige for enhver version af VIM editoren | |
291 | Summary(de.UTF-8): Die von allen Versionen des VIM-Editors benötigten gemeinsamen Dateien | |
292 | Summary(es.UTF-8): Ficheros comunes a todas las versiones de VIM | |
293 | Summary(fr.UTF-8): Fichiers communs indispensables pour toute version de l'éditeur VIM | |
294 | Summary(id.UTF-8): File umum yang dibutuhkan oleh semua versi editor VIM | |
295 | Summary(is.UTF-8): Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að halda | |
296 | Summary(it.UTF-8): File comuni necessari per tutte le versioni dell'editor VIM | |
297 | Summary(ja.UTF-8): すべてのバージョンの VIM エディタで必要とされる共通ファイル | |
298 | Summary(nb.UTF-8): Felles filer som er nødvendige for enhver versjon av VIM editoren | |
299 | Summary(pl.UTF-8): Pliki przydatne edytorowi Vim | |
300 | Summary(pt.UTF-8): Os ficheiros comuns necessários para qualquer versão do editor VIM | |
301 | Summary(ru.UTF-8): Файлы, требуемые для любой версии редактора vim | |
302 | Summary(sk.UTF-8): Spoločné súbory potrebné pre všetky verzie editoru VIM | |
303 | Summary(sl.UTF-8): Skupne datoteke, potrebne s katerokoli različico urejevalnika VIM | |
304 | Summary(sv.UTF-8): De gemensamma filerna som behövs av alla versioner av redigeraren VIM | |
305 | Summary(uk.UTF-8): Файли, потрібні для будь-якої версії редактору vim | |
306 | Summary(zh_CN.UTF-8): 任何版本的 VIM 编辑器所需的公用文件。 | |
8627c94f | 307 | Group: Applications/Editors/Vim |
fc7b36fc | 308 | # mktemp is for vimtutor |
b8b82f5a | 309 | Requires: mktemp |
ed99f1fe | 310 | Requires: vi-editor |
237877cd | 311 | Obsoletes: gvim-bonobo |
84c81dea | 312 | Obsoletes: vim-common |
8627c94f | 313 | |
314 | %description rt | |
f73b565e | 315 | This package contains macros, documentation, syntax configuration and |
ec6033c5 | 316 | manual pages for Vim. If you want to take advantage of Vim more |
f73b565e | 317 | powerful features, you should install this package. |
8627c94f | 318 | |
5cf83aa7 JR |
319 | %description rt -l cs.UTF-8 |
320 | Tento balíček obsahuje společné soubory pro všechny další balíčky s | |
507e1057 | 321 | vim. |
322 | ||
5cf83aa7 | 323 | %description rt -l da.UTF-8 |
507e1057 | 324 | The vim-rt package contains files which every VIM binary will need in |
325 | order to run. | |
326 | ||
5cf83aa7 JR |
327 | %description rt -l de.UTF-8 |
328 | Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die | |
329 | Ausführung benötigt. | |
507e1057 | 330 | |
5cf83aa7 | 331 | %description rt -l fr.UTF-8 |
507e1057 | 332 | Le paquetage vim-rt contient des fichiers dont chaque fichier binaire |
333 | VIM a besoin pour fonctionner. | |
334 | ||
5cf83aa7 | 335 | %description rt -l id.UTF-8 |
507e1057 | 336 | Package vim-rt berisi file yang dibutuhkan semua versi VIM agar bisa |
337 | berjalan. | |
338 | ||
5cf83aa7 JR |
339 | %description rt -l is.UTF-8 |
340 | vim-rt pakkinn inniheldur skrár sem allar VIM keyrsluskrárnar þurfa | |
341 | til að keyra. | |
507e1057 | 342 | |
5cf83aa7 | 343 | %description rt -l it.UTF-8 |
507e1057 | 344 | Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM |
345 | per poter funzionare. | |
346 | ||
5cf83aa7 JR |
347 | %description rt -l pl.UTF-8 |
348 | W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i | |
349 | strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z | |
350 | zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet. | |
84c81dea | 351 | |
5cf83aa7 JR |
352 | %description rt -l pt.UTF-8 |
353 | O pacote vim-rt contém os ficheiros que todos os executáveis do VIM | |
354 | irão necessitar para correr. | |
507e1057 | 355 | |
5cf83aa7 JR |
356 | %description rt -l ru.UTF-8 |
357 | Пакет vim-rt содержит файлы (например, файлы справки), которые нужны | |
358 | для работы любой программы vim. | |
9e79ff1a | 359 | |
5cf83aa7 JR |
360 | %description rt -l sk.UTF-8 |
361 | Balík vim-rt obsahuje súbory, ktoré bude potrebovať pre správnu | |
362 | funkciu každá verzia editoru VIM. | |
507e1057 | 363 | |
5cf83aa7 JR |
364 | %description rt -l sv.UTF-8 |
365 | Paketet vim-rt innehåller filer som alla VIM-binärer behöver för att | |
366 | köra. | |
507e1057 | 367 | |
5cf83aa7 JR |
368 | %description rt -l uk.UTF-8 |
369 | Пакет vim-rt містить файли (наприклад, файли довідки), котрі потрібні | |
370 | для роботи будь-якої програми vim. | |
9e79ff1a | 371 | |
4399a7e9 JB |
372 | %package spell-en |
373 | Summary: English dictionaries for VIMspell | |
1a02d184 | 374 | Summary(pl.UTF-8): Angielskie słowniki dla VIMspella |
4399a7e9 JB |
375 | Group: Applications/Editors/Vim |
376 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
377 | ||
378 | %description spell-en | |
379 | English dictionaries for VIMspell. | |
380 | ||
5cf83aa7 JR |
381 | %description spell-en -l pl.UTF-8 |
382 | Angielskie słowniki dla VIMspella. | |
4399a7e9 | 383 | |
84c81dea | 384 | %package -n gvim-athena |
6facb60f | 385 | Summary: Vim for X Window built with Athena |
1a02d184 | 386 | Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Athena |
84c81dea | 387 | Group: Applications/Editors/Vim |
99216be1 | 388 | Requires: %{name}-rt = %{epoch}:%{version}-%{release} |
d5d214fb | 389 | Requires: iconv |
86dc40a0 | 390 | Provides: gvim |
ed99f1fe | 391 | Provides: vi-editor |
84c81dea | 392 | Obsoletes: vim-X11 |
393 | ||
394 | %description -n gvim-athena | |
f73b565e | 395 | The classic Unix text editor now also under X Window System! This |
b83ed9cf | 396 | version is built with Athena Widget Set. |
84c81dea | 397 | |
5cf83aa7 JR |
398 | %description -n gvim-athena -l pl.UTF-8 |
399 | Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem | |
f73b565e | 400 | biblioteki Athena Widget Set. |
84c81dea | 401 | |
5cf83aa7 JR |
402 | %description -n gvim-athena -l ru.UTF-8 |
403 | Этот пакет представляет собой версию VIM, собранную с библиотеками | |
404 | Athena Widget Set, что позволяет запускать VIM как приложение X Window | |
405 | System - с полностью графическим интерфейсом и поддержкой мыши. | |
9e79ff1a | 406 | |
5cf83aa7 JR |
407 | %description -n gvim-athena -l uk.UTF-8 |
408 | Цей пакет містить версію VIM, зібрану з бібліотеками Athena Widget | |
409 | Set, що дозволяє запускати VIM як прикладну програму X Window System - | |
410 | з повністю графічним інтерфейсом та підтримкою миші. | |
9e79ff1a | 411 | |
7a9200fa JR |
412 | %package -n gvim-motif |
413 | Summary: Vim for X Window built with Motif | |
1a02d184 | 414 | Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki Motif |
84c81dea | 415 | Group: Applications/Editors/Vim |
99216be1 | 416 | Requires: %{name}-rt = %{epoch}:%{version}-%{release} |
d5d214fb | 417 | Requires: iconv |
86dc40a0 | 418 | Provides: gvim |
ed99f1fe | 419 | Provides: vi-editor |
84c81dea | 420 | Obsoletes: vim-X11 |
8627c94f | 421 | |
7a9200fa | 422 | %description -n gvim-motif |
f73b565e | 423 | The classic Unix text editor now also under X Window System! This |
b83ed9cf | 424 | version is built with Motif. |
84c81dea | 425 | |
5cf83aa7 JR |
426 | %description -n gvim-motif -l pl.UTF-8 |
427 | Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem | |
7a9200fa | 428 | biblioteki Motif. |
84c81dea | 429 | |
5cf83aa7 JR |
430 | %description -n gvim-motif -l ru.UTF-8 |
431 | Этот пакет представляет собой версию VIM, собранную с библиотеками | |
432 | Motif, что позволяет запускать VIM как приложение X Window System - с | |
433 | полностью графическим интерфейсом и поддержкой мыши. | |
9e79ff1a | 434 | |
5cf83aa7 JR |
435 | %description -n gvim-motif -l uk.UTF-8 |
436 | Цей пакет містить версію VIM, зібрану з бібліотеками Motif, що | |
437 | дозволяє запускати VIM як прикладну програму X Window System - з | |
438 | повністю графічним інтерфейсом та підтримкою миші. | |
9e79ff1a | 439 | |
84c81dea | 440 | %package -n gvim-gtk |
441 | Summary: Vim for X Window built with gtk | |
1a02d184 | 442 | Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GTK |
8627c94f | 443 | Group: Applications/Editors/Vim |
9c95080e | 444 | Requires(post,postun): gtk+2 |
4399a7e9 | 445 | Requires(post,postun): hicolor-icon-theme |
99216be1 | 446 | Requires: %{name}-rt = %{epoch}:%{version}-%{release} |
d5d214fb | 447 | Requires: iconv |
86dc40a0 | 448 | Provides: gvim |
ed99f1fe | 449 | Provides: vi-editor |
84c81dea | 450 | Obsoletes: vim-X11 |
8627c94f | 451 | |
84c81dea | 452 | %description -n gvim-gtk |
f73b565e | 453 | The classic Unix text editor now also under X Window System! This |
b83ed9cf | 454 | version is built with GTK. |
8627c94f | 455 | |
5cf83aa7 JR |
456 | %description -n gvim-gtk -l pl.UTF-8 |
457 | Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem | |
0d72267e | 458 | biblioteki GTK. |
d5d214fb | 459 | |
5cf83aa7 JR |
460 | %description -n gvim-gtk -l ru.UTF-8 |
461 | Этот пакет представляет собой версию VIM, собранную с библиотеками | |
462 | GTK, что позволяет запускать VIM как приложение X Window System - с | |
463 | полностью графическим интерфейсом и поддержкой мыши. Просто скажите | |
9e79ff1a | 464 | 'gvim'... |
465 | ||
5cf83aa7 JR |
466 | %description -n gvim-gtk -l uk.UTF-8 |
467 | Цей пакет містить версію VIM, зібрану з бібліотеками GTK, що дозволяє | |
468 | запускати VIM як прикладну програму X Window System - з повністю | |
469 | графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'... | |
9e79ff1a | 470 | |
d5d214fb | 471 | %package -n gvim-gnome |
e746f321 | 472 | Summary: Vim for X Window built with GNOME |
1a02d184 | 473 | Summary(pl.UTF-8): Vim dla X Window korzystający z biblioteki GNOME |
d5d214fb | 474 | Group: Applications/Editors/Vim |
9c95080e | 475 | Requires(post,postun): gtk+2 |
4399a7e9 | 476 | Requires(post,postun): hicolor-icon-theme |
99216be1 | 477 | Requires: %{name}-rt = %{epoch}:%{version}-%{release} |
d5d214fb | 478 | Requires: iconv |
86dc40a0 | 479 | Provides: gvim |
ed99f1fe | 480 | Provides: vi-editor |
d5d214fb AM |
481 | Obsoletes: vim-X11 |
482 | ||
483 | %description -n gvim-gnome | |
484 | The classic Unix text editor now also under X Window System! This | |
485 | version is build with GNOME. | |
486 | ||
5cf83aa7 JR |
487 | %description -n gvim-gnome -l pl.UTF-8 |
488 | Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem | |
0d72267e | 489 | bibliotek GNOME. |
8627c94f | 490 | |
5cf83aa7 JR |
491 | %description -n gvim-gnome -l ru.UTF-8 |
492 | Этот пакет представляет собой версию VIM, собранную с библиотеками | |
493 | GNOME, что позволяет запускать VIM как приложение X Window System - с | |
494 | полностью графическим интерфейсом и поддержкой мыши. | |
9e79ff1a | 495 | |
5cf83aa7 JR |
496 | %description -n gvim-gnome -l uk.UTF-8 |
497 | Цей пакет містить версію VIM, зібрану з бібліотеками GNOME, що | |
498 | дозволяє запускати VIM як прикладну програму X Window System - з | |
499 | повністю графічним інтерфейсом та підтримкою миші. | |
9e79ff1a | 500 | |
8627c94f | 501 | %prep |
95142873 | 502 | %setup -q -n %{name}71 -b1 -b2 |
60aa9cdd AG |
503 | |
504 | # official patches | |
6991bfe9 | 505 | %patchset_patch 1 %{_patchlevel} |
60aa9cdd | 506 | |
db58c86e | 507 | %patch0 -p1 |
357ae4b4 | 508 | %patch1 -p1 |
2f99b393 | 509 | %patch2 -p1 |
d1abaab5 AG |
510 | %patch3 -p1 |
511 | %patch4 -p1 | |
d0793c9f | 512 | %patch5 -p1 |
64570325 | 513 | %patch6 -p1 |
d6de9a65 | 514 | %patch7 -p1 |
19d8e711 | 515 | %patch8 -p1 |
d6de9a65 AG |
516 | %patch9 -p1 |
517 | %patch10 -p0 | |
518 | %patch11 -p1 | |
19d8e711 | 519 | %patch12 -p1 |
d6de9a65 AG |
520 | %patch13 -p1 |
521 | %patch14 -p1 | |
522 | %patch15 -p1 | |
bf653f43 | 523 | %patch16 -p1 |
d6de9a65 AG |
524 | %patch17 -p0 |
525 | %patch18 -p0 | |
d1abaab5 AG |
526 | %patch19 -p1 |
527 | %patch20 -p1 | |
528 | %patch21 -p1 | |
d6de9a65 | 529 | %patch22 -p1 |
9c95080e | 530 | %patch23 -p1 |
d6de9a65 | 531 | |
d6de9a65 AG |
532 | # home etc |
533 | %{?with_home_etc:%patch104 -p1} | |
534 | ||
535 | # selinux | |
536 | %{?with_selinux:%patch105 -p1} | |
99890e04 | 537 | |
9e18e433 | 538 | # autopaste patch - automatically switch to paste mode if `really fast typing' |
e8531d99 | 539 | # situation happens |
95142873 | 540 | %patch106 -p1 |
9e18e433 | 541 | |
95142873 | 542 | %patch107 -p1 |
e8531d99 | 543 | |
19d8e711 AG |
544 | install %{SOURCE14} runtime/indent |
545 | install %{SOURCE15} runtime/colors | |
546 | install %{SOURCE16} runtime/syntax | |
32e75812 | 547 | install %{SOURCE17} runtime/syntax |
b88c7a3a | 548 | install %{SOURCE18} runtime/syntax |
19d8e711 | 549 | install %{SOURCE19} runtime/ftplugin/spec.vim |
abf48674 | 550 | |
8627c94f | 551 | %build |
96eaec6a | 552 | cd src |
34ddecbc | 553 | %{__autoconf} |
ffce5254 JB |
554 | # needed to prevent deconfiguring |
555 | cp -f configure auto | |
8490904a | 556 | |
69b192f0 | 557 | install -d bin |
afe2d598 | 558 | |
d6e63bbe | 559 | %if %{with static} |
8490904a JB |
560 | %{__make} distclean |
561 | LDFLAGS="%{rpmldflags} -static" | |
562 | %configure \ | |
563 | --disable-gui \ | |
564 | --without-x \ | |
565 | --disable-perlinterp \ | |
566 | --disable-pythoninterp \ | |
567 | --disable-rubyinterp \ | |
568 | --disable-tclinterp \ | |
569 | --disable-cscope \ | |
570 | --disable-gpm \ | |
571 | --disable-multibyte \ | |
572 | --with-features=small \ | |
00311d17 | 573 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 574 | --disable-nls \ |
e9089381 | 575 | --with-modifiedby="PLD Linux Distribution" \ |
576 | --with-compiledby="PLD Linux Distribution" | |
8490904a | 577 | |
725c510f JB |
578 | %{__make} vim |
579 | ||
afe2d598 | 580 | mv -f vim bin/vim.static |
8490904a JB |
581 | LDFLAGS="%{rpmldflags}" |
582 | %endif | |
583 | ||
d924622d | 584 | %{__make} distclean |
84c81dea | 585 | %configure \ |
586 | --disable-gui \ | |
587 | --without-x \ | |
d6e63bbe AF |
588 | %{!?with_perl:--disable-perlinterp} \ |
589 | %{?with_perl:--enable-perlinterp} \ | |
590 | %{!?with_python:--disable-pythoninterp} \ | |
591 | %{?with_python:--enable-pythoninterp} \ | |
592 | %{!?with_ruby:--disable-rubyinterp} \ | |
593 | %{?with_ruby:--enable-rubyinterp} \ | |
594 | %{!?with_tcl:--disable-tclinterp} \ | |
595 | %{?with_tcl:--enable-tclinterp} \ | |
d5d214fb | 596 | --enable-cscope \ |
f22e9322 | 597 | --enable-gpm \ |
598 | --with-features=huge \ | |
d5d214fb | 599 | --enable-multibyte \ |
ba794b83 | 600 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 601 | --enable-nls \ |
e9089381 | 602 | --with-modifiedby="PLD Linux Distribution" \ |
603 | --with-compiledby="PLD Linux Distribution" | |
d5d214fb | 604 | |
725c510f JB |
605 | %{__make} vim |
606 | ||
afe2d598 | 607 | mv -f vim bin/vim.ncurses |
a04973b9 | 608 | |
d6e63bbe | 609 | %if %{with athena} |
fc7569f7 | 610 | %{__make} distclean |
a82d590c | 611 | %configure \ |
f22e9322 | 612 | --with-features=huge \ |
f73b565e | 613 | --enable-gui=athena \ |
614 | --with-x \ | |
d6e63bbe AF |
615 | %{!?with_perl:--disable-perlinterp} \ |
616 | %{?with_perl:--enable-perlinterp} \ | |
617 | %{!?with_python:--disable-pythoninterp} \ | |
618 | %{?with_python:--enable-pythoninterp} \ | |
619 | %{!?with_ruby:--disable-rubyinterp} \ | |
620 | %{?with_ruby:--enable-rubyinterp} \ | |
621 | %{!?with_tcl:--disable-tclinterp} \ | |
622 | %{?with_tcl:--enable-tclinterp} \ | |
d5d214fb AM |
623 | --enable-cscope \ |
624 | --enable-fontset \ | |
625 | --disable-gpm \ | |
626 | --without-gnome \ | |
00311d17 | 627 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 628 | --enable-nls \ |
e9089381 | 629 | --with-modifiedby="PLD Linux Distribution" \ |
630 | --with-compiledby="PLD Linux Distribution" | |
a82d590c | 631 | |
fc7569f7 | 632 | %{__make} vim |
afe2d598 | 633 | mv -f vim bin/gvim.athena |
fc7569f7 | 634 | %endif |
84c81dea | 635 | |
a04973b9 | 636 | |
d6e63bbe | 637 | %if %{with motif} |
fc7569f7 | 638 | %{__make} distclean |
a82d590c | 639 | %configure \ |
f22e9322 | 640 | --with-features=huge \ |
f73b565e | 641 | --enable-gui=motif \ |
642 | --with-x \ | |
d6e63bbe AF |
643 | %{!?with_perl:--disable-perlinterp} \ |
644 | %{?with_perl:--enable-perlinterp} \ | |
645 | %{!?with_python:--disable-pythoninterp} \ | |
646 | %{?with_python:--enable-pythoninterp} \ | |
647 | %{!?with_ruby:--disable-rubyinterp} \ | |
648 | %{?with_ruby:--enable-rubyinterp} \ | |
649 | %{!?with_tcl:--disable-tclinterp} \ | |
650 | %{?with_tcl:--enable-tclinterp} \ | |
d5d214fb AM |
651 | --enable-multibyte \ |
652 | --enable-cscope \ | |
653 | --enable-fontset \ | |
654 | --disable-gpm \ | |
655 | --without-gnome \ | |
00311d17 | 656 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 657 | --enable-nls \ |
e9089381 | 658 | --with-modifiedby="PLD Linux Distribution" \ |
659 | --with-compiledby="PLD Linux Distribution" | |
e7cb0e5d | 660 | |
fc7569f7 | 661 | %{__make} vim |
afe2d598 | 662 | mv -f vim bin/gvim.motif |
fc7569f7 | 663 | %endif |
8627c94f | 664 | |
d6e63bbe | 665 | %if %{with gtk} |
fc7569f7 | 666 | %{__make} distclean |
a82d590c | 667 | %configure \ |
f22e9322 | 668 | --with-features=huge \ |
db58c86e | 669 | --enable-gui=gtk2 \ |
670 | --enable-gtk2-check \ | |
f73b565e | 671 | --with-x \ |
d6e63bbe AF |
672 | %{!?with_perl:--disable-perlinterp} \ |
673 | %{?with_perl:--enable-perlinterp} \ | |
674 | %{!?with_python:--disable-pythoninterp} \ | |
675 | %{?with_python:--enable-pythoninterp} \ | |
676 | %{!?with_ruby:--disable-rubyinterp} \ | |
677 | %{?with_ruby:--enable-rubyinterp} \ | |
678 | %{!?with_tcl:--disable-tclinterp} \ | |
679 | %{?with_tcl:--enable-tclinterp} \ | |
d5d214fb AM |
680 | --disable-gpm \ |
681 | --enable-cscope \ | |
00311d17 | 682 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 683 | --enable-nls \ |
e9089381 | 684 | --with-modifiedby="PLD Linux Distribution" \ |
685 | --with-compiledby="PLD Linux Distribution" | |
a82d590c | 686 | |
fc7569f7 | 687 | %{__make} vim |
afe2d598 | 688 | mv -f vim bin/gvim.gtk |
fc7569f7 | 689 | %endif |
8627c94f | 690 | |
d6e63bbe | 691 | %if %{with gnome} |
fc7569f7 | 692 | %{__make} distclean |
a82d590c | 693 | %configure \ |
f22e9322 | 694 | --with-features=huge \ |
db58c86e | 695 | --enable-gui=gnome2 \ |
db58c86e | 696 | --enable-gtk2-check \ |
697 | --enable-gnome-check \ | |
d5d214fb | 698 | --with-x \ |
d6e63bbe AF |
699 | %{!?with_perl:--disable-perlinterp} \ |
700 | %{?with_perl:--enable-perlinterp} \ | |
701 | %{!?with_python:--disable-pythoninterp} \ | |
702 | %{?with_python:--enable-pythoninterp} \ | |
703 | %{!?with_ruby:--disable-rubyinterp} \ | |
704 | %{?with_ruby:--enable-rubyinterp} \ | |
705 | %{!?with_tcl:--disable-tclinterp} \ | |
706 | %{?with_tcl:--enable-tclinterp} \ | |
d5d214fb AM |
707 | --disable-gpm \ |
708 | --enable-cscope \ | |
00311d17 | 709 | --with-tlib="ncurses -ltinfo" \ |
a82d590c | 710 | --enable-nls \ |
e9089381 | 711 | --with-modifiedby="PLD Linux Distribution" \ |
712 | --with-compiledby="PLD Linux Distribution" | |
a82d590c | 713 | |
fc7569f7 | 714 | %{__make} vim |
afe2d598 | 715 | mv -f vim bin/gvim.gnome |
fc7569f7 | 716 | %endif |
d5d214fb | 717 | |
afe2d598 AF |
718 | %{__make} xxd/xxd languages |
719 | ||
8627c94f | 720 | %install |
721 | rm -rf $RPM_BUILD_ROOT | |
0b31d255 | 722 | |
f22e9322 | 723 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \ |
d5d214fb | 724 | $RPM_BUILD_ROOT{/bin,%{_mandir}/man1,%{_datadir}/vim} \ |
474e8862 | 725 | $RPM_BUILD_ROOT%{_desktopdir} |
46f826dd | 726 | |
f76e6f17 | 727 | %{__make} -j1 install \ |
a82d590c | 728 | DESTDIR=$RPM_BUILD_ROOT |
7ba74caf | 729 | |
310b65f3 | 730 | rm -f $RPM_BUILD_ROOT%{_bindir}/* |
8627c94f | 731 | |
b93a0a21 | 732 | %if %{with static} |
baa4aaf8 | 733 | install src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim |
734 | install src/bin/vim.static $RPM_BUILD_ROOT/bin/vi | |
b93a0a21 | 735 | %else |
baa4aaf8 | 736 | install src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi |
b93a0a21 AF |
737 | ln -sf /bin/vi $RPM_BUILD_ROOT%{_bindir}/vim |
738 | %endif | |
baa4aaf8 | 739 | install src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd |
740 | install src/vimtutor $RPM_BUILD_ROOT%{_bindir}/vimtutor | |
a7fbf53c | 741 | |
9c95080e | 742 | # Moved into patch |
743 | # | |
744 | # rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1 | |
745 | # install runtime/doc/vim.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
746 | # install runtime/doc/xxd.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
747 | # install runtime/doc/vimtutor.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
748 | # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/ex.1 | |
749 | # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rview.1 | |
750 | # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/rvim.1 | |
751 | # echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1 | |
4ae2e5e0 | 752 | |
84c81dea | 753 | echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1 |
754 | echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1 | |
8627c94f | 755 | |
9c95080e | 756 | # not supported directories |
757 | rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/ | |
758 | ||
64570325 | 759 | mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/vimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/vimrc |
d5d214fb | 760 | mv -f $RPM_BUILD_ROOT%{_datadir}/vim/v*/gvimrc_example.vim $RPM_BUILD_ROOT%{_sysconfdir}/vim/gvimrc |
8627c94f | 761 | |
4399a7e9 JB |
762 | ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview |
763 | ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim | |
923c746f | 764 | ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim |
4399a7e9 | 765 | ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff |
d5d214fb AM |
766 | ln -sf vi $RPM_BUILD_ROOT/bin/ex |
767 | ln -sf vi $RPM_BUILD_ROOT/bin/view | |
768 | ln -sf vi $RPM_BUILD_ROOT/bin/rview | |
84c81dea | 769 | |
0f99c50f PG |
770 | install %{SOURCE14} $RPM_BUILD_ROOT%{_desktopdir} |
771 | ||
b93a0a21 | 772 | %if %{with athena} |
baa4aaf8 | 773 | install src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena |
eab7da3d | 774 | install %{SOURCE10} $RPM_BUILD_ROOT%{_desktopdir} |
b93a0a21 AF |
775 | %endif |
776 | %if %{with motif} | |
baa4aaf8 | 777 | install src/bin/gvim.motif $RPM_BUILD_ROOT%{_bindir}/gvim.motif |
eab7da3d | 778 | install %{SOURCE11} $RPM_BUILD_ROOT%{_desktopdir} |
b93a0a21 AF |
779 | %endif |
780 | %if %{with gnome} | |
baa4aaf8 | 781 | install src/bin/gvim.gnome $RPM_BUILD_ROOT%{_bindir}/gvim.gnome |
b93a0a21 AF |
782 | install %{SOURCE13} $RPM_BUILD_ROOT%{_desktopdir} |
783 | %endif | |
784 | %if %{with gtk} | |
baa4aaf8 | 785 | install src/bin/gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim.gtk |
b93a0a21 | 786 | ln -sf gvim.gtk $RPM_BUILD_ROOT%{_bindir}/gvim |
b93a0a21 | 787 | ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gview |
4399a7e9 | 788 | ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/gvimdiff |
b93a0a21 | 789 | ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgview |
4399a7e9 | 790 | ln -sf gvim $RPM_BUILD_ROOT%{_bindir}/rgvim |
eab7da3d | 791 | install %{SOURCE12} $RPM_BUILD_ROOT%{_desktopdir} |
b93a0a21 | 792 | %endif |
8627c94f | 793 | |
ef0fdc18 | 794 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps |
795 | install runtime/vim16x16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/vim.png | |
796 | install runtime/vim32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vim.png | |
797 | install runtime/vim48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vim.png | |
798 | ||
41f33985 | 799 | bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
9c95080e | 800 | |
41f33985 | 801 | unzip -qd $RPM_BUILD_ROOT%{_datadir}/vim/v*/doc %{SOURCE4} |
9e79ff1a | 802 | |
a76f8cb4 | 803 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}} |
8e79b441 | 804 | > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags |
9f5fc2a1 | 805 | |
8627c94f | 806 | %clean |
807 | rm -rf $RPM_BUILD_ROOT | |
808 | ||
b1844844 | 809 | %post |
7285c5a1 | 810 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post |
b1844844 | 811 | |
812 | %postun | |
7285c5a1 | 813 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun |
b1844844 | 814 | |
815 | %post -n gvim-athena | |
7285c5a1 | 816 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post |
b1844844 | 817 | |
818 | %postun -n gvim-athena | |
7285c5a1 | 819 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun |
b1844844 | 820 | |
821 | %post -n gvim-motif | |
7285c5a1 | 822 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post |
b1844844 | 823 | |
824 | %postun -n gvim-motif | |
7285c5a1 | 825 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun |
b1844844 | 826 | |
827 | %post -n gvim-gtk | |
7285c5a1 | 828 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post |
70502921 | 829 | %update_icon_cache hicolor |
b1844844 | 830 | |
831 | %postun -n gvim-gtk | |
7285c5a1 | 832 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun |
70502921 | 833 | %update_icon_cache hicolor |
b1844844 | 834 | |
835 | %post -n gvim-gnome | |
9c95080e | 836 | %update_desktop_database_post |
70502921 | 837 | %update_icon_cache hicolor |
b1844844 | 838 | |
839 | %postun -n gvim-gnome | |
9c95080e | 840 | %update_desktop_database_postun |
70502921 | 841 | %update_icon_cache hicolor |
b1844844 | 842 | |
84c81dea | 843 | %files |
844 | %defattr(644,root,root,755) | |
4399a7e9 JB |
845 | %attr(755,root,root) %{_bindir}/eview |
846 | %attr(755,root,root) %{_bindir}/evim | |
84c81dea | 847 | %attr(755,root,root) %{_bindir}/rvim |
4399a7e9 JB |
848 | %attr(755,root,root) %{_bindir}/vim |
849 | %attr(755,root,root) %{_bindir}/vimdiff | |
c931d32b | 850 | #%{_mandir}/man1/eview.1* |
4399a7e9 JB |
851 | %{_mandir}/man1/evim.1* |
852 | %{_mandir}/man1/rvim.1* | |
853 | %{_mandir}/man1/vimdiff.1* | |
854 | %lang(fi) %{_mandir}/fi/man1/rvim.1* | |
c931d32b | 855 | #%lang(fr) %{_mandir}/fr/man1/eview.1* |
4399a7e9 JB |
856 | %lang(fr) %{_mandir}/fr/man1/evim.1* |
857 | %lang(fr) %{_mandir}/fr/man1/rvim.1* | |
858 | %lang(fr) %{_mandir}/fr/man1/vimdiff.1* | |
859 | %lang(id) %{_mandir}/id/man1/rvim.1* | |
c931d32b | 860 | #%lang(it) %{_mandir}/it/man1/eview.1* |
4399a7e9 JB |
861 | %lang(it) %{_mandir}/it/man1/evim.1* |
862 | %lang(it) %{_mandir}/it/man1/rvim.1* | |
863 | %lang(it) %{_mandir}/it/man1/vimdiff.1* | |
c931d32b | 864 | #%lang(pl) %{_mandir}/pl/man1/eview.1* |
4399a7e9 JB |
865 | %lang(pl) %{_mandir}/pl/man1/evim.1* |
866 | %lang(pl) %{_mandir}/pl/man1/rvim.1* | |
867 | %lang(pl) %{_mandir}/pl/man1/vimdiff.1* | |
c931d32b | 868 | #%lang(ru) %{_mandir}/ru/man1/eview.1* |
4399a7e9 JB |
869 | %lang(ru) %{_mandir}/ru/man1/evim.1* |
870 | %lang(ru) %{_mandir}/ru/man1/rvim.1* | |
871 | %lang(ru) %{_mandir}/ru/man1/vimdiff.1* | |
0f99c50f | 872 | %{_desktopdir}/%{name}.desktop |
84c81dea | 873 | |
d6e63bbe | 874 | %if %{with static} |
84c81dea | 875 | %files static |
2576aec7 | 876 | %endif |
ce504e8b | 877 | %defattr(644,root,root,755) |
ce504e8b | 878 | %attr(755,root,root) /bin/* |
671e058b AF |
879 | %{_mandir}/man1/vi.1* |
880 | %{_mandir}/man1/ex.1* | |
671e058b AF |
881 | %{_mandir}/man1/view.1* |
882 | %{_mandir}/man1/rview.1* | |
0d564f51 JB |
883 | %lang(fi) %{_mandir}/fi/man1/vi.1* |
884 | %lang(fi) %{_mandir}/fi/man1/ex.1* | |
885 | %lang(fi) %{_mandir}/fi/man1/view.1* | |
886 | %lang(fi) %{_mandir}/fi/man1/rview.1* | |
9c95080e | 887 | %lang(fr) %{_mandir}/fr/man1/vi.1* |
888 | %lang(fr) %{_mandir}/fr/man1/ex.1* | |
889 | %lang(fr) %{_mandir}/fr/man1/view.1* | |
890 | %lang(fr) %{_mandir}/fr/man1/rview.1* | |
0d564f51 JB |
891 | %lang(id) %{_mandir}/id/man1/vi.1* |
892 | %lang(id) %{_mandir}/id/man1/ex.1* | |
893 | %lang(id) %{_mandir}/id/man1/view.1* | |
894 | %lang(id) %{_mandir}/id/man1/rview.1* | |
9c95080e | 895 | #%lang(it) %{_mandir}/it/man1/vi.1* |
896 | %lang(it) %{_mandir}/it/man1/ex.1* | |
897 | %lang(it) %{_mandir}/it/man1/view.1* | |
898 | %lang(it) %{_mandir}/it/man1/rview.1* | |
899 | %lang(pl) %{_mandir}/pl/man1/vi.1* | |
900 | %lang(pl) %{_mandir}/pl/man1/ex.1* | |
901 | %lang(pl) %{_mandir}/pl/man1/view.1* | |
902 | %lang(pl) %{_mandir}/pl/man1/rview.1* | |
903 | #%lang(ru) %{_mandir}/ru/man1/vi.1* | |
904 | %lang(ru) %{_mandir}/ru/man1/ex.1* | |
905 | %lang(ru) %{_mandir}/ru/man1/view.1* | |
906 | %lang(ru) %{_mandir}/ru/man1/rview.1* | |
ce504e8b | 907 | |
2576aec7 AF |
908 | %files -n xxd |
909 | %defattr(644,root,root,755) | |
910 | %attr(755,root,root) %{_bindir}/xxd | |
911 | %{_mandir}/man1/xxd.1* | |
9c95080e | 912 | %lang(fr) %{_mandir}/fr/man1/xxd.1* |
913 | %lang(it) %{_mandir}/it/man1/xxd.1* | |
914 | %lang(pl) %{_mandir}/pl/man1/xxd.1* | |
915 | %lang(ru) %{_mandir}/ru/man1/xxd.1* | |
2576aec7 | 916 | |
8627c94f | 917 | %files rt |
918 | %defattr(644,root,root,755) | |
307833bf | 919 | %attr(755,root,root) %{_bindir}/vimtutor |
54e1a2a3 | 920 | %dir %{_sysconfdir}/vim |
baa4aaf8 | 921 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/vimrc |
922 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc | |
84c81dea | 923 | |
1a773fc5 | 924 | %dir %{_datadir}/vim |
d5d214fb | 925 | %dir %{_datadir}/vim/v* |
05a269bd | 926 | %dir %{_datadir}/vim/v*/doc |
1a881f20 | 927 | %doc %{_datadir}/vim/v*/doc/*.txt |
17bdc5ff | 928 | %lang(pl) %doc %{_datadir}/vim/v*/doc/*.plx |
1a881f20 | 929 | %attr(755,root,root) %{_datadir}/vim/v*/doc/*.pl |
baa4aaf8 | 930 | %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags |
931 | %lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/v*/doc/tags-pl | |
d5d214fb AM |
932 | %{_datadir}/vim/v*/ftplugin |
933 | %{_datadir}/vim/v*/indent | |
934 | %{_datadir}/vim/v*/keymap | |
935 | %dir %{_datadir}/vim/v*/lang | |
1a881f20 | 936 | %doc %{_datadir}/vim/v*/lang/README* |
42d18f12 | 937 | |
59274d07 | 938 | # just add after/ and ftdetect/ separately, other dirs caught by globs above or below |
dd179d92 ER |
939 | %{_datadir}/vim/vimfiles/after |
940 | %{_datadir}/vim/vimfiles/ftdetect | |
9f5fc2a1 | 941 | |
0b1385e8 | 942 | %lang(af) %{_datadir}/vim/v*/lang/menu_af* |
96eaec6a | 943 | %lang(af) %{_datadir}/vim/v*/lang/af/ |
0b1385e8 | 944 | %lang(ca) %{_datadir}/vim/v*/lang/menu_ca* |
96eaec6a | 945 | %lang(ca) %{_datadir}/vim/v*/lang/ca/ |
0b1385e8 AM |
946 | %lang(cs) %{_datadir}/vim/v*/lang/menu_cs* |
947 | %lang(cs) %{_datadir}/vim/v*/lang/menu_*czech* | |
96eaec6a | 948 | %lang(cs) %{_datadir}/vim/v*/lang/cs/ |
0b1385e8 AM |
949 | %lang(de) %{_datadir}/vim/v*/lang/menu_de* |
950 | %lang(de) %{_datadir}/vim/v*/lang/menu_*german* | |
96eaec6a | 951 | %lang(de) %{_datadir}/vim/v*/lang/de/ |
23543ee3 | 952 | %lang(en_GB) %{_datadir}/vim/v*/lang/menu_en_gb* |
0b1385e8 | 953 | %lang(en_GB) %{_datadir}/vim/v*/lang/menu_*english* |
96eaec6a AG |
954 | %lang(en_GB) %{_datadir}/vim/v*/lang/en_GB/ |
955 | %lang(es) %{_datadir}/vim/v*/lang/menu_es* | |
956 | %lang(es) %{_datadir}/vim/v*/lang/menu_*spanish* | |
957 | %lang(es) %{_datadir}/vim/v*/lang/es/ | |
0b1385e8 | 958 | %lang(fr) %{_datadir}/vim/v*/lang/menu_fr* |
96eaec6a | 959 | %lang(fr) %{_datadir}/vim/v*/lang/fr/ |
37e3507e | 960 | %lang(ga) %{_datadir}/vim/v*/lang/ga/ |
0b1385e8 AM |
961 | %lang(hu) %{_datadir}/vim/v*/lang/menu_hu* |
962 | %lang(it) %{_datadir}/vim/v*/lang/menu_it* | |
96eaec6a | 963 | %lang(it) %{_datadir}/vim/v*/lang/it/ |
0b1385e8 | 964 | %lang(ja) %{_datadir}/vim/v*/lang/menu_ja* |
96eaec6a | 965 | %lang(ja) %{_datadir}/vim/v*/lang/ja/ |
0b1385e8 | 966 | %lang(ko) %{_datadir}/vim/v*/lang/menu_ko* |
96eaec6a | 967 | %lang(ko) %{_datadir}/vim/v*/lang/ko/ |
0b1385e8 AM |
968 | %lang(nl) %{_datadir}/vim/v*/lang/menu_nl* |
969 | %lang(nb) %{_datadir}/vim/v*/lang/menu_no* | |
96eaec6a | 970 | %lang(nb) %{_datadir}/vim/v*/lang/no/ |
0b1385e8 AM |
971 | %lang(pl) %{_datadir}/vim/v*/lang/menu_pl* |
972 | %lang(pl) %{_datadir}/vim/v*/lang/menu_*polish* | |
96eaec6a | 973 | %lang(pl) %{_datadir}/vim/v*/lang/pl/ |
0b1385e8 AM |
974 | %lang(pt) %{_datadir}/vim/v*/lang/menu_pt* |
975 | %lang(ru) %{_datadir}/vim/v*/lang/menu_ru* | |
96eaec6a | 976 | %lang(ru) %{_datadir}/vim/v*/lang/ru/ |
0b1385e8 AM |
977 | %lang(sk) %{_datadir}/vim/v*/lang/menu_sk* |
978 | %lang(sk) %{_datadir}/vim/v*/lang/menu_*slovak* | |
96eaec6a | 979 | %lang(sk) %{_datadir}/vim/v*/lang/sk/ |
0b1385e8 AM |
980 | %lang(sr) %{_datadir}/vim/v*/lang/menu_sr* |
981 | %lang(sv) %{_datadir}/vim/v*/lang/menu_sv* | |
96eaec6a | 982 | %lang(sv) %{_datadir}/vim/v*/lang/sv/ |
0b1385e8 | 983 | %lang(uk) %{_datadir}/vim/v*/lang/menu_uk* |
37e3507e | 984 | %lang(uk) %{_datadir}/vim/v*/lang/uk/ |
9bc905eb | 985 | %lang(vi) %{_datadir}/vim/v*/lang/menu_vi* |
37e3507e | 986 | %lang(vi) %{_datadir}/vim/v*/lang/vi/ |
7a778761 | 987 | %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.cp936* |
ec23c5c9 | 988 | %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh.gb2312* |
42d18f12 | 989 | %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_zh_cn* |
0b1385e8 | 990 | %lang(zh_CN) %{_datadir}/vim/v*/lang/menu_*chinese*gb* |
96eaec6a | 991 | %lang(zh_CN) %{_datadir}/vim/v*/lang/zh_CN/ |
7a778761 JB |
992 | %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.cp950* |
993 | %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh.big5* | |
42d18f12 | 994 | %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_zh_tw* |
0b1385e8 | 995 | %lang(zh_TW) %{_datadir}/vim/v*/lang/menu_*taiwan* |
96eaec6a | 996 | %lang(zh_TW) %{_datadir}/vim/v*/lang/zh_TW/ |
42d18f12 | 997 | |
1d2cf3d5 | 998 | %dir %{_datadir}/vim/v*/spell |
3558f1d8 | 999 | %{_datadir}/vim/v*/spell/cleanadd.vim |
9c95080e | 1000 | %lang(he) %{_datadir}/vim/v*/spell/he.* |
1001 | %lang(yi) %{_datadir}/vim/v*/spell/yi.* | |
9bc905eb | 1002 | |
d5d214fb AM |
1003 | %{_datadir}/vim/v*/macros |
1004 | %{_datadir}/vim/v*/plugin | |
23543ee3 | 1005 | %{_datadir}/vim/v*/print |
d5d214fb | 1006 | %{_datadir}/vim/v*/syntax |
a82d590c | 1007 | %{_datadir}/vim/v*/tools |
d5d214fb | 1008 | %{_datadir}/vim/v*/tutor |
ba50d0a1 | 1009 | %{_datadir}/vim/v*/colors |
a0f9a135 | 1010 | %{_datadir}/vim/v*/compiler |
9bc905eb | 1011 | %{_datadir}/vim/v*/autoload |
d5d214fb | 1012 | %{_datadir}/vim/v*/*.vim |
8627c94f | 1013 | |
4399a7e9 JB |
1014 | %{_mandir}/man1/rvim.1* |
1015 | %{_mandir}/man1/vim.1* | |
1016 | %{_mandir}/man1/vimtutor.1* | |
1017 | %lang(fi) %{_mandir}/fi/man1/rvim.1* | |
1018 | %lang(fi) %{_mandir}/fi/man1/vim.1* | |
1019 | %lang(fr) %{_mandir}/fr/man1/rvim.1* | |
1020 | %lang(fr) %{_mandir}/fr/man1/vim.1* | |
1021 | %lang(fr) %{_mandir}/fr/man1/vimtutor.1* | |
1022 | %lang(id) %{_mandir}/id/man1/vim.1* | |
1023 | %lang(it) %{_mandir}/it/man1/vim.1* | |
1024 | %lang(it) %{_mandir}/it/man1/vimtutor.1* | |
1025 | %lang(pl) %{_mandir}/pl/man1/vim.1* | |
1026 | %lang(pl) %{_mandir}/pl/man1/vimtutor.1* | |
1027 | %lang(ru) %{_mandir}/ru/man1/vim.1* | |
1028 | %lang(ru) %{_mandir}/ru/man1/vimtutor.1* | |
64bf7ae0 | 1029 | %{_iconsdir}/hicolor/16x16/apps/vim.png |
1030 | %{_iconsdir}/hicolor/32x32/apps/vim.png | |
1031 | %{_iconsdir}/hicolor/48x48/apps/vim.png | |
1032 | ||
4399a7e9 JB |
1033 | %files spell-en |
1034 | %defattr(644,root,root,755) | |
1035 | %{_datadir}/vim/v*/spell/en.*.* | |
1036 | ||
d6e63bbe | 1037 | %if %{with athena} |
f22e9322 | 1038 | %files -n gvim-athena |
1039 | %defattr(644,root,root,755) | |
c983f1ff | 1040 | %attr(755,root,root) %{_bindir}/gvim.athena |
eab7da3d | 1041 | %{_desktopdir}/gvim-athena.desktop |
f22e9322 | 1042 | %endif |
1043 | ||
d6e63bbe | 1044 | %if %{with motif} |
f22e9322 | 1045 | %files -n gvim-motif |
1046 | %defattr(644,root,root,755) | |
c983f1ff | 1047 | %attr(755,root,root) %{_bindir}/gvim.motif |
eab7da3d | 1048 | %{_desktopdir}/gvim-motif.desktop |
f22e9322 | 1049 | %endif |
1050 | ||
d6e63bbe | 1051 | %if %{with gtk} |
f22e9322 | 1052 | %files -n gvim-gtk |
1053 | %defattr(644,root,root,755) | |
c983f1ff | 1054 | %attr(755,root,root) %{_bindir}/gvim.gtk |
4399a7e9 | 1055 | %attr(755,root,root) %{_bindir}/gvimdiff |
c983f1ff | 1056 | %attr(755,root,root) %{_bindir}/rgvim |
1057 | %attr(755,root,root) %{_bindir}/rgview | |
1058 | %attr(755,root,root) %verify(not link) %{_bindir}/gvim | |
4399a7e9 JB |
1059 | %{_mandir}/man1/gvi* |
1060 | %{_mandir}/man1/rgv* | |
9c95080e | 1061 | %lang(fi) %{_mandir}/fi/man1/gvi* |
1062 | %lang(fi) %{_mandir}/fi/man1/rgv* | |
1063 | %lang(fr) %{_mandir}/fr/man1/gvi* | |
1064 | %lang(fr) %{_mandir}/fr/man1/rgv* | |
1065 | %lang(id) %{_mandir}/id/man1/gvi* | |
1066 | %lang(id) %{_mandir}/id/man1/rgv* | |
4399a7e9 JB |
1067 | %lang(it) %{_mandir}/it/man1/gvi* |
1068 | %lang(it) %{_mandir}/it/man1/rgv* | |
9c95080e | 1069 | %lang(pl) %{_mandir}/pl/man1/gvi* |
1070 | %lang(pl) %{_mandir}/pl/man1/rgv* | |
4399a7e9 JB |
1071 | %lang(ru) %{_mandir}/ru/man1/gvi* |
1072 | %lang(ru) %{_mandir}/ru/man1/rgv* | |
eab7da3d | 1073 | %{_desktopdir}/gvim-gtk.desktop |
f22e9322 | 1074 | %endif |
1075 | ||
d6e63bbe | 1076 | %if %{with gnome} |
f22e9322 | 1077 | %files -n gvim-gnome |
1078 | %defattr(644,root,root,755) | |
c983f1ff | 1079 | %attr(755,root,root) %{_bindir}/gvim.gnome |
474e8862 | 1080 | %{_desktopdir}/gvim-gnome.desktop |
afe2d598 | 1081 | %endif |