1 |
# Notes / Warning : |
2 |
# - this package is not prefixable |
3 |
# - to update official patches, aka SOURCE4, see README.mga in SOURCE4 |
4 |
|
5 |
%define patchlevel 1221 |
6 |
|
7 |
# Should we build X11 gui |
8 |
%define buildgui 1 |
9 |
|
10 |
%{?_with_gui:%global buildgui 1} |
11 |
%{?_without_gui:%global buildgui 0} |
12 |
|
13 |
%define title VI editor |
14 |
%define longtitle All-purpose text editor |
15 |
|
16 |
%define baseversion 9.0 |
17 |
%define vimdir vim90 |
18 |
|
19 |
Name: vim |
20 |
Version: %{baseversion}.%{patchlevel} |
21 |
Release: %mkrel 1 |
22 |
Summary: VIsual editor iMproved |
23 |
Url: http://www.vim.org/ |
24 |
License: Charityware |
25 |
Group: Editors |
26 |
# Generated with SOURCES/vim-update.sh |
27 |
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2 |
28 |
# read README.mga prior updating official patches: |
29 |
Source3: README.mga |
30 |
# http://vim.sourceforge.net/scripts/script.php?script_id=98 |
31 |
Source56: http://trific.ath.cx/Ftp/vim/syntax/dhcpd.vim |
32 |
# from apparmor-utils package |
33 |
Source57: apparmor.vim |
34 |
Source58: cfengine.vim |
35 |
Source59: nagios.vim |
36 |
# icon rendering is ugly in GNOME3, so, adding a svg icon |
37 |
Source60: gvim.svg |
38 |
# empty rpm spec template |
39 |
Source61: template.spec.tpl |
40 |
Source62: https://github.com/nelsyeung/twig.vim/archive/refs/tags/v1.0.0.tar.gz |
41 |
|
42 |
# for updating Source0: |
43 |
Source100: vim-update.sh |
44 |
|
45 |
# MDK patches |
46 |
Patch2: vim-5.6a-paths.patch |
47 |
Patch3: vim-8.0-rpm-spec-syntax.patch |
48 |
Patch8: vim-6.0af-man-path.patch |
49 |
Patch10: xxd-locale.patch |
50 |
Patch20: vimrc_hebrew.patch |
51 |
# autoload template when creating new rpm spec files |
52 |
Patch21: vim-8.0-mga-vimrc-spec-template-autoload.patch |
53 |
Patch22: vim-8.2-fix-xterms-comments.patch |
54 |
Patch23: vim-8.2-remove-docs.patch |
55 |
Patch24: vim-8.0-outline-mode.patch |
56 |
Patch26: vim-7.4-changelog-mode.patch |
57 |
Patch28: vim-8.0-po-mode.patch |
58 |
Patch30: vim-8.0-add-dhcpd-syntax.patch |
59 |
Patch31: vim70-CVE-2007-2438.patch |
60 |
Patch32: vim-8.0-highligh-global.diff |
61 |
Patch33: vim-9.0-add-haproxy-syntax.patch |
62 |
|
63 |
# Fedora patches |
64 |
Patch100: vim-8.0-fortify_warnings-1.patch |
65 |
Patch3016: vim-8.0-copy-paste.patch |
66 |
# migrate shebangs in script to /usr/bin/python3 and use python2 when necessary |
67 |
Patch3017: vim-python3-tests.patch |
68 |
|
69 |
# |
70 |
# Security Patches |
71 |
# P4000 -> ... |
72 |
# |
73 |
BuildRequires: python3-devel |
74 |
BuildRequires: gpm-devel |
75 |
BuildRequires: pkgconfig(ruby) |
76 |
BuildRequires: perl-devel |
77 |
BuildRequires: pkgconfig(tinfo) |
78 |
BuildRequires: acl-devel |
79 |
%if %{buildgui} |
80 |
# for sound support |
81 |
BuildRequires: libcanberra-devel |
82 |
BuildRequires: gtk3-devel |
83 |
BuildRequires: pkgconfig(ncurses) |
84 |
BuildRequires: pkgconfig(xt) |
85 |
BuildRequires: tcl |
86 |
BuildRequires: pkgconfig(tcl) |
87 |
%endif |
88 |
BuildRequires: pkgconfig(lua) |
89 |
|
90 |
%global __requires_exclude perl\\(getopts.pl\\) |
91 |
|
92 |
%description |
93 |
VIM (VIsual editor iMproved) is an updated and improved version of the |
94 |
vi editor. Vi was the first real screen-based editor for UNIX, and is |
95 |
still very popular. VIM improves on vi by adding new features: |
96 |
multiple windows, multi-level undo, block highlighting and more. |
97 |
|
98 |
%package common |
99 |
Summary: The common files needed by any version of the VIM editor |
100 |
Group: Editors |
101 |
Requires(pre): coreutils |
102 |
Requires(post): coreutils |
103 |
Requires(preun): coreutils |
104 |
Requires(postun): coreutils |
105 |
# <oden> Installation failed: file /usr/share/vim/syntax/asciidoc.vim from install of vim-common-7.4.052-2.mga4.x86_64 conflicts with file from package asciidoc-8.6.8-2.mga3.noarch |
106 |
Conflicts: asciidoc < 8.6.8-4 |
107 |
|
108 |
%description common |
109 |
VIM (VIsual editor iMproved) is an updated and improved version of the |
110 |
vi editor. Vi was the first real screen-based editor for UNIX, and is |
111 |
still very popular. VIM improves on vi by adding new features: |
112 |
multiple windows, multi-level undo, block highlighting and more. The |
113 |
vim-common package contains files which every VIM binary will need in |
114 |
order to run. |
115 |
|
116 |
%package minimal |
117 |
Summary: A minimal version of the VIM editor |
118 |
Group: Editors |
119 |
Provides: vim |
120 |
Provides: vi |
121 |
Requires(post): update-alternatives |
122 |
Requires(postun): update-alternatives |
123 |
|
124 |
%description minimal |
125 |
VIM (VIsual editor iMproved) is an updated and improved version of the |
126 |
vi editor. Vi was the first real screen-based editor for UNIX, and is |
127 |
still very popular. VIM improves on vi by adding new features: |
128 |
multiple windows, multi-level undo, block highlighting and more. The |
129 |
vim-minimal package includes a minimal version of VIM, which is |
130 |
installed into /bin/vi for use when only the root partition is |
131 |
present. NOTE: The online help is only available when the vim-common |
132 |
package is installed. |
133 |
|
134 |
%package enhanced |
135 |
Summary: A version of the VIM editor which includes recent enhancements |
136 |
Group: Editors |
137 |
Requires: vim-common >= %{version}-%{release} |
138 |
Provides: vim |
139 |
Requires(post): update-alternatives |
140 |
Requires(postun): update-alternatives |
141 |
|
142 |
%description enhanced |
143 |
VIM (VIsual editor iMproved) is an updated and improved version of the |
144 |
vi editor. Vi was the first real screen-based editor for UNIX, and is |
145 |
still very popular. VIM improves on vi by adding new features: |
146 |
multiple windows, multi-level undo, block highlighting and more. The |
147 |
vim-enhanced package contains a version of VIM with extra, recently |
148 |
introduced features like Python and Perl interpreters. |
149 |
|
150 |
Install the vim-enhanced package if you'd like to use a version of the |
151 |
VIM editor which includes recently added enhancements like |
152 |
interpreters for the Python and Perl scripting languages. You'll also |
153 |
need to install the vim-common package. |
154 |
|
155 |
%if %{buildgui} |
156 |
%package X11 |
157 |
Summary: The VIM version of the vi editor for the X Window System |
158 |
Group: Editors |
159 |
Provides: vim |
160 |
Requires: vim-common >= %{version}-%{release} |
161 |
Requires(post): desktop-file-utils |
162 |
Requires(postun): desktop-file-utils |
163 |
|
164 |
%description X11 |
165 |
VIM (VIsual editor iMproved) is an updated and improved version of the |
166 |
vi editor. Vi was the first real screen-based editor for UNIX, and is |
167 |
still very popular. VIM improves on vi by adding new features: |
168 |
multiple windows, multi-level undo, block highlighting and |
169 |
more. VIM-X11 is a version of the VIM editor which will run within the |
170 |
X Window System. If you install this package, you can run VIM as an X |
171 |
application with a full GUI interface and mouse support by command gvim. |
172 |
|
173 |
Install the vim-X11 package if you'd like to try out a version of vi |
174 |
with graphics and mouse capabilities. You'll also need to install the |
175 |
vim-common package. |
176 |
%endif |
177 |
|
178 |
%define localedir %{buildroot}%{_datadir}/locale/ |
179 |
|
180 |
%prep |
181 |
%setup -q -n %{vimdir} -a 62 |
182 |
# spec plugin |
183 |
rm -f runtime/doc/pi_spec.txt |
184 |
rm -f runtime/ftpplugin/spec.vim |
185 |
cp -a %{SOURCE56} runtime/syntax/ |
186 |
cp -a %{SOURCE57} runtime/syntax/ |
187 |
cp -a %{SOURCE58} runtime/syntax/ |
188 |
cp -a %{SOURCE59} runtime/syntax/ |
189 |
cp -a twig.vim-1.0.0/indent/twig.vim runtime/indent/ |
190 |
cp -a twig.vim-1.0.0/ftplugin/twig.vim runtime/ftplugin/ |
191 |
cp -a twig.vim-1.0.0/syntax/twig.vim runtime/syntax/ |
192 |
|
193 |
#mdk patches |
194 |
%patch2 -p1 |
195 |
%patch3 -p0 -b .spec |
196 |
%patch8 -p1 -b .manpath |
197 |
%patch10 -p1 -b .xxdloc |
198 |
%patch20 -p1 -b .warly |
199 |
%patch21 -p1 -b .spec-template-autoload |
200 |
%patch22 -p0 |
201 |
%patch23 -p0 -b .doc |
202 |
%patch24 -p0 |
203 |
%patch26 -p0 |
204 |
%patch28 -p1 |
205 |
%patch30 -p0 |
206 |
%patch32 -p1 |
207 |
%patch33 -p1 -b .add-haproxy-syntax |
208 |
# Fedora patches |
209 |
%patch100 -p1 |
210 |
%patch3016 -p1 |
211 |
%patch3017 -p1 |
212 |
|
213 |
perl -pi -e 's|SYS_VIMRC_FILE "\$VIM/vimrc"|SYS_VIMRC_FILE "%_sysconfdir/vim/vimrc"|' src/os_unix.h |
214 |
perl -pi -e 's|SYS_GVIMRC_FILE "\$VIM/gvimrc"|SYS_GVIMRC_FILE "%_sysconfdir/vim/gvimrc"|' src/os_unix.h |
215 |
# disable command echo |
216 |
for i in runtime/{gvimrc_example.vim,vimrc_example.vim,defaults.vim}; do |
217 |
perl -pi -e 's!^set showcmd!set noshowcmd!' $i |
218 |
done |
219 |
perl -pi -e 's|\Qsvn-commit.*.tmp\E|svn-commit*.tmp|' ./runtime/filetype.vim |
220 |
|
221 |
%build |
222 |
# ensure xxd works with big files: |
223 |
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2" |
224 |
export CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2" |
225 |
|
226 |
export LDFLAGS="%{ldflags} $(python3-config --libs --embed)" |
227 |
|
228 |
%if %{buildgui} |
229 |
# First build: gvim |
230 |
LOCALEDIR=%{localedir} ./configure --prefix=%{_prefix} \ |
231 |
--enable-python3interp=dynamic \ |
232 |
--enable-perlinterp \ |
233 |
--enable-rubyinterp \ |
234 |
--enable-tclinterp \ |
235 |
--with-features=huge \ |
236 |
--enable-acl --with-x=yes --enable-gui=gtk3 --exec-prefix=%{_prefix}/X11R6 \ |
237 |
--enable-gtk3-check \ |
238 |
--enable-multibyte --enable-xim --enable-fontset --mandir=%{_mandir} \ |
239 |
--enable-canberra \ |
240 |
--libdir=%{_libdir} --with-compiledby="%packager" |
241 |
|
242 |
echo "#define MAX_FEAT 1" >> src/config.h |
243 |
echo "#define FEAT_GUI" >> src/config.h |
244 |
# workaround buggy build system: |
245 |
perl -pi -e 's!/usr/include long!/usr/include !' src/auto/config.mk |
246 |
|
247 |
%make_build |
248 |
mv src/vim src/gvim |
249 |
rm -rf src/auto/config.cache |
250 |
make -C src clean |
251 |
%endif |
252 |
|
253 |
# Second build: vim-enhanced |
254 |
./configure --prefix=%{_prefix} \ |
255 |
--enable-acl --enable-rubyinterp --enable-tclinterp \ |
256 |
--enable-python3interp=dynamic \ |
257 |
--enable-perlinterp --with-features=huge \ |
258 |
--libdir=%{_libdir} --with-compiledby="%packager" \ |
259 |
--with-x=no --enable-gui=no --exec-prefix=%{_prefix} \ |
260 |
--disable-canberra |
261 |
|
262 |
%make_build |
263 |
mv src/vim src/vim-enhanced |
264 |
rm -rf src/auto/config.cache |
265 |
make -C src/ clean |
266 |
|
267 |
# Third build: vim-minimal |
268 |
export LDFLAGS="%{ldflags}" |
269 |
./configure --prefix=%{_prefix} \ |
270 |
--with-features=tiny --disable-tclinterp --disable-cscope \ |
271 |
--disable-hangulinput --disable-xim --disable-fontset --disable-gui \ |
272 |
--disable-acl --disable-pythoninterp --disable-perlinterp \ |
273 |
--libdir=%{_libdir} --with-compiledby="%packager" \ |
274 |
--with-x=no --enable-gui=no --disable-gpm --exec-prefix=%{_prefix} --with-tlib=tinfo \ |
275 |
--disable-canberra |
276 |
|
277 |
%make_build |
278 |
cp src/vim src/vim-minimal |
279 |
%make_build -C src |
280 |
|
281 |
cp -al runtime/doc doc |
282 |
# apply os_doc.diff |
283 |
pushd doc |
284 |
rm -f *.1 |
285 |
rm -f os_{390,dos,msdos,risc,win32,amiga,mac,os2,beos,mint,qnx,vms}.txt |
286 |
rm -f gui_{w16,w32}.txt |
287 |
rm -f vim2html.pl Makefile *awk |
288 |
popd |
289 |
|
290 |
# britton support |
291 |
ln -s tutor.fr runtime/tutor/tutor.br |
292 |
ln -s menu_fr_fr.iso_8859-15.vim runtime/lang/menu_br |
293 |
|
294 |
%install |
295 |
perl -pi -e 's!LOCALEDIR=\$\(DEST_LANG\)!LOCALEDIR=\$(DESTDIR)\$\(prefix\)/share/locale!g' src/Makefile |
296 |
|
297 |
mkdir -p %{buildroot}{/bin,%{_bindir},%{_datadir}/{vim,locale},%{_mandir}/man1,%{localedir}} |
298 |
# Adding STRIP=/bin/true, because Vim wants to strip the binaries by himself |
299 |
# and put the stripped files into correct dirs. Build system (koji/brew) |
300 |
# does it for us, so there is no need to do it in Vim |
301 |
%make_install VIMRTDIR="" STRIP=/bin/true |
302 |
|
303 |
|
304 |
make -C src installmacros prefix=%{buildroot}%{_prefix} VIMRTDIR="" |
305 |
|
306 |
# fix unreadable files: |
307 |
chmod a+r runtime/{autoload/{tar,netrw}.vim,doc/pi_{netrw,tar}.txt} |
308 |
|
309 |
%if %{buildgui} |
310 |
mkdir -p %{buildroot}%{_bindir} |
311 |
install -m 755 src/gvim %{buildroot}%{_bindir} |
312 |
%endif |
313 |
|
314 |
install -m 755 src/vim-enhanced %{buildroot}%{_bindir} |
315 |
install -m 755 src/vim-minimal %{buildroot}/bin/vim-minimal |
316 |
|
317 |
cd %{buildroot} |
318 |
rm -f ./bin/rvim |
319 |
rm -f ./usr/bin/rview ./usr/bin/rvim ./usr/bin/view |
320 |
for i in ex vimdiff; do |
321 |
ln -sf vim-enhanced ./usr/bin/$i |
322 |
done |
323 |
rm -f ./usr/man/man1/rvim.* |
324 |
rm -f ./usr/share/man/man1/evim.* |
325 |
%if %{buildgui} |
326 |
ln -sf gvim ./usr/bin/gvimdiff |
327 |
ln -sf gvim ./usr/bin/vimx |
328 |
%endif |
329 |
rm -f ./usr/share/vim/*/cmake.vim |
330 |
cd - |
331 |
|
332 |
# installing man pages |
333 |
for i in %{buildroot}%{_mandir}/man1/{vi,rvi}; do |
334 |
cp %{buildroot}%{_mandir}/man1/vim.1 $i.1 |
335 |
done |
336 |
|
337 |
%if %{buildgui} |
338 |
cp %{buildroot}%{_mandir}/man1/vim.1 %{buildroot}%{_mandir}/man1/gvim.1 |
339 |
%endif |
340 |
|
341 |
ln -sf defaults.vim %{buildroot}/usr/share/vim/vimrc |
342 |
|
343 |
cd %{buildroot}/%{_prefix}/share/vim/tools |
344 |
# i need to make a choice :(. |
345 |
rm -f vim132 |
346 |
perl -p -i -e 's|#!/usr/bin/nawk|#!/usr/bin/gawk|' mve.awk |
347 |
perl -p -i -e 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' *.pl |
348 |
perl -p -i -e 's|#!/usr/gnu/bin/perl|#!/usr/bin/perl|' * |
349 |
cd - |
350 |
|
351 |
# Be short-circuit aware : |
352 |
ln -f runtime/macros/README.txt README_macros.txt |
353 |
ln -f runtime/tools/README.txt README_tools.txt |
354 |
perl -p -i -e "s|#!/usr/local/bin/perl|#!/usr/bin/perl|" runtime/doc/*.pl |
355 |
|
356 |
# installing the menu icons & entry |
357 |
%if %{buildgui} |
358 |
install -D -p -m 0644 %{SOURCE60} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gvim.svg |
359 |
|
360 |
# gvim and fontset (from Pablo) 2001/03/19 |
361 |
echo 'set guifontset=-*-fixed-medium-r-normal--14-*-*-*-c-*-*-*,-*-*-medium-r-normal--14-*-*-*-c-*-*-*,-*-*-medium-r-normal--14-*-*-*-m-*-*-*,*' > %{buildroot}%{_datadir}/vim/gvimrc |
362 |
%endif |
363 |
|
364 |
# fix the paths in the man pages |
365 |
for i in %{buildroot}/usr/share/man/man1/*.1; do |
366 |
perl -p -i -e "s|%{buildroot}||" $i |
367 |
done |
368 |
|
369 |
# prevent including twice the doc |
370 |
rm -fr %{buildroot}/usr/share/vim/doc |
371 |
ln -sf ../../../%{_defaultdocdir}/%{name}-common/doc %{buildroot}/usr/share/vim/doc |
372 |
|
373 |
%{find_lang} %{name} --with-man --all-name |
374 |
|
375 |
find %{buildroot}%{_datadir}/vim/ -name "tutor.*" | egrep -v 'tutor(|\.vim)$' | |
376 |
sed -e 's!^\(.*tutor.\)\(..\)!%lang(\2) \1\2!g' >> %{name}.lang |
377 |
|
378 |
find %{buildroot}%{_datadir}/vim/lang -name "menu*" | |
379 |
sed -e 's!^\(.*menu_\)\(..\)\(_\)!%lang(\2) \1\2\3!g' \ |
380 |
-e 's!^\(.*menu\)\(_chinese\)!%lang(zh) \1\2!g' \ |
381 |
-e 's!^\(.*menu\)\(_czech_\)!%lang(cs) \1\2!g' \ |
382 |
-e 's!^\(.*menu\)\(_french\)!%lang(fr) \1\2!g' \ |
383 |
-e 's!^\(.*menu\)\(_german\)!%lang(de) \1\2!g' \ |
384 |
-e 's!^\(.*menu\)\(_japanes\)!%lang(ja) \1\2!g' \ |
385 |
-e 's!^\(.*menu\)\(_polish\)!%lang(pl) \1\2!g' \ |
386 |
-e 's!^\(.*menu\)\(_slovak\)!%lang(sk) \1\2!g' \ |
387 |
-e 's!^\(.*menu\)\(_spanis\)!%lang(es) \1\2!g' \ |
388 |
>> %{name}.lang |
389 |
# add softlinks: |
390 |
find %{buildroot}%{_datadir}/vim/lang -type l >> %{name}.lang |
391 |
# clean file list: |
392 |
sed -i "s^%{buildroot}^^" %{name}.lang |
393 |
|
394 |
rm -f %{buildroot}%{_bindir}/vim |
395 |
|
396 |
mkdir -p %{buildroot}%{_sysconfdir}/vim/ |
397 |
MESSAGE='"Place your systemwide modification here.\n"%{_datadir}/vim/ files will be overwritten on update\n' |
398 |
echo -e "$MESSAGE\nsource %_datadir/vim/vimrc" > %{buildroot}/%{_sysconfdir}/vim/vimrc |
399 |
%if %{buildgui} |
400 |
echo -e "$MESSAGE\nsource %_datadir/vim/gvimrc" > %{buildroot}/%{_sysconfdir}/vim/gvimrc |
401 |
%endif |
402 |
|
403 |
# create templates folder |
404 |
mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles |
405 |
install -m 0644 %{SOURCE61} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec |
406 |
|
407 |
%post minimal |
408 |
update-alternatives --install /bin/vi vi /bin/vim-minimal 10 \ |
409 |
--slave /bin/view view /bin/vim-minimal \ |
410 |
--slave /bin/ex ex /bin/vim-minimal \ |
411 |
--slave /bin/rvi rvi /bin/vim-minimal \ |
412 |
--slave /bin/rview rview /bin/vim-minimal |
413 |
update-alternatives --install /bin/vim vim /bin/vim-minimal 10 \ |
414 |
--slave /bin/rvim rvim /bin/vim-minimal |
415 |
|
416 |
%postun minimal |
417 |
[ $1 = 0 ] || exit 0 |
418 |
update-alternatives --remove vi /bin/vim-minimal |
419 |
update-alternatives --remove vim /bin/vim-minimal |
420 |
|
421 |
%triggerpostun minimal -- vim-minimal < 7.3 |
422 |
update-alternatives --remove uvi /bin/vim-minimal |
423 |
for i in view ex rvi rview rvim; do |
424 |
update-alternatives --remove $i /bin/$i || : |
425 |
done |
426 |
|
427 |
%post enhanced |
428 |
update-alternatives --install /bin/vi vi /usr/bin/vim-enhanced 20 \ |
429 |
--slave /bin/view view /usr/bin/vim-enhanced \ |
430 |
--slave /bin/ex ex /usr/bin/vim-enhanced \ |
431 |
--slave /bin/rvi rvi /usr/bin/vim-enhanced \ |
432 |
--slave /bin/rview rview /usr/bin/vim-enhanced |
433 |
update-alternatives --install /bin/vim vim /usr/bin/vim-enhanced 20 \ |
434 |
--slave /bin/rvim rvim /usr/bin/vim-enhanced |
435 |
|
436 |
%postun enhanced |
437 |
[ $1 = 0 ] || exit 0 |
438 |
update-alternatives --remove vi /usr/bin/vim-enhanced |
439 |
update-alternatives --remove vim /usr/bin/vim-enhanced |
440 |
|
441 |
%triggerpostun enhanced -- vim-enhanced < 7.3 |
442 |
update-alternatives --remove uvi /usr/bin/vim-enhanced |
443 |
|
444 |
%files common -f vim.lang |
445 |
%doc README*.txt |
446 |
#%doc --parents mandriva/README* |
447 |
%doc doc |
448 |
%{_datadir}/vim/doc |
449 |
%dir %{_datadir}/vim/ |
450 |
%{_datadir}/vim/[^tlg]* |
451 |
%{_datadir}/vim/gvimrc_example.vim |
452 |
%{_datadir}/vim/lang/README.txt |
453 |
%{_datadir}/vim/tools |
454 |
%{_datadir}/vim/tutor/README.* |
455 |
%{_datadir}/vim/tutor/tutor |
456 |
%{_datadir}/vim/tutor/tutor.vim |
457 |
%{_mandir}/man1/vim.1* |
458 |
%{_mandir}/man1/ex.1* |
459 |
%{_mandir}/man1/vi.1* |
460 |
%{_mandir}/man1/view.1* |
461 |
%{_mandir}/man1/rvi.1* |
462 |
%{_mandir}/man1/rview.1* |
463 |
%{_mandir}/man1/vimdiff.1* |
464 |
%{_mandir}/man1/vimtutor.1* |
465 |
%{_mandir}/man1/rvim.1* |
466 |
%{_bindir}/vimtutor |
467 |
%{_bindir}/xxd |
468 |
%{_mandir}/man1/xxd.1* |
469 |
%dir %{_sysconfdir}/vim/ |
470 |
%config(noreplace) %{_sysconfdir}/vim/* |
471 |
|
472 |
%files minimal |
473 |
%doc README*.txt |
474 |
/bin/vim-minimal |
475 |
|
476 |
%files enhanced |
477 |
%doc README*.txt |
478 |
%{_bindir}/ex |
479 |
%{_bindir}/vimdiff |
480 |
%{_bindir}/vim-enhanced |
481 |
|
482 |
%if %{buildgui} |
483 |
%files X11 |
484 |
%doc README*.txt |
485 |
%{_bindir}/gvim |
486 |
%{_bindir}/gvimdiff |
487 |
%{_bindir}/vimx |
488 |
%{_mandir}/man1/gvim.1* |
489 |
%{_iconsdir}/hicolor/*/apps/gvim.* |
490 |
%{_iconsdir}/locolor/*/apps/* |
491 |
%{_datadir}/applications/*.desktop |
492 |
%{_datadir}/vim/gvimrc |
493 |
%else |
494 |
%exclude %{_datadir}/applications/*.desktop |
495 |
%exclude %{_iconsdir}/hicolor/*/apps/gvim.* |
496 |
%exclude %{_iconsdir}/locolor/*/apps/* |
497 |
%endif |