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