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