1. #
  2. # spec file for package vim
  3. #
  4. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
  5. #
  6. # All modifications and additions to the file contributed by third parties
  7. # remain the property of their copyright owners, unless otherwise agreed
  8. # upon. The license for this file, and modifications and additions to the
  9. # file, is the same license as for the pristine package itself (unless the
  10. # license for the pristine package is not an Open Source License, in which
  11. # case the license is the MIT License). An "Open Source License" is a
  12. # license that conforms to the Open Source Definition (Version 1.9)
  13. # published by the Open Source Initiative.
  14. # Please submit bugfixes or comments via http://bugs.opensuse.org/
  15. #
  16. %define baseversion 8.0
  17. %define patchlevel 0425
  18. %define VIM_SUBDIR vim80
  19. %define site_runtimepath /usr/share/vim/site
  20. %define make make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/current MAKE="make -e" %{?_smp_mflags}
  21. Name: vim
  22. Version: %{baseversion}.%{patchlevel}
  23. Release: 1
  24. BuildRequires: autoconf
  25. BuildRequires: db-devel
  26. BuildRequires: gettext-devel
  27. %if 0%{?suse_version} > 1110
  28. BuildRequires: gpm-devel
  29. BuildRequires: gtk3-devel
  30. %endif
  31. BuildRequires: gtk2-devel
  32. %if 0%{?suse_version} > 1200
  33. BuildRequires: pkgconfig(xt)
  34. %endif
  35. BuildRequires: libacl-devel
  36. BuildRequires: lua-devel
  37. BuildRequires: ncurses-devel
  38. BuildRequires: perl
  39. %if 0%{?suse_version} > 1010
  40. BuildRequires: fdupes
  41. # Needed to convert svg to png
  42. BuildRequires: rsvg-view
  43. %endif
  44. BuildRequires: ruby-devel
  45. BuildRequires: update-desktop-files
  46. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  47. PreReq: fileutils
  48. PreReq: sh-utils
  49. Provides: vim-base = %{version}-%{release}
  50. Provides: vim-enhanced = %{version}-%{release}
  51. Provides: vim-python = %{version}-%{release}
  52. Obsoletes: vim-base < %{version}-%{release}
  53. Obsoletes: vim-enhanced < %{version}-%{release}
  54. Obsoletes: vim-python < %{version}-%{release}
  55. Provides: vim_client
  56. Recommends: vim-data = %{version}-%{release}
  57. Summary: Vi IMproved, an open-source modal text editor developed by Bram Moolenar
  58. License: Vim
  59. Group: Productivity/Editors/Vi
  60. Url: http://www.vim.org/
  61. Source: https://github.com/vim/vim/archive/v%{baseversion}.%{patchlevel}.tar.gz
  62. Source3: suse.vimrc
  63. Source4: vimrc_example1
  64. Source5: vimrc_example2
  65. Source8: suse.gvimrc
  66. Source10: README.Japanese-XIM
  67. Source13: vitmp.c
  68. Source14: vitmp.1
  69. Source15: vim132
  70. Source18: missing-vim-client
  71. Source19: gvim.desktop
  72. Source20: spec.skeleton
  73. Source23: apparmor.vim
  74. Source24: gvim.svg
  75. Source25: gvim16.png
  76. Source26: gvim32.png
  77. Source27: gvim48.png
  78. SOurce28: gvim64.png
  79. Source99: %{name}-7.4-rpmlintrc
  80. Patch3: %{name}-7.4-disable_lang_no.patch
  81. Patch4: %{name}-7.3-gvimrc_fontset.patch
  82. Patch5: %{name}-7.4-highlight_fstab.patch
  83. Patch6: %{name}-7.3-sh_is_bash.patch
  84. Patch7: %{name}-7.3-filetype_ftl.patch
  85. Patch8: %{name}-7.3-help_tags.patch
  86. Patch9: %{name}-7.3-use_awk.patch
  87. Patch10: %{name}-7.3-name_vimrc.patch
  88. Patch11: %{name}-7.3-mktemp_tutor.patch
  89. Patch15: %{name}-7.4-filetype_apparmor.patch
  90. Patch18: %{name}-7.3-filetype_spec.patch
  91. Patch21: %{name}-7.3-filetype_changes.patch
  92. Patch22: %{name}-7.4-filetype_mine.patch
  93. Patch100: vim73-no-static-libpython.patch
  94. %description
  95. Vim (Vi IMproved) is an almost compatible version of the UNIX editor
  96. vi. Almost every possible command can be performed using only ASCII
  97. characters. Only the 'Q' command is missing (you do not need it). Many
  98. new features have been added: multilevel undo, command line history,
  99. file name completion, block operations, and editing of binary data.
  100. Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
  101. of UNIX.
  102. For SUSE Linux, Vim is used as /usr/bin/vi.
  103. %package data
  104. Summary: Vi IMproved
  105. Group: Productivity/Editors/Vi
  106. BuildArch: noarch
  107. Obsoletes: vim-plugin-matchit <= 1.13.2
  108. Provides: vim-plugin-matchit = 1.13.2
  109. %description data
  110. Vim (Vi IMproved) is an almost compatible version of the UNIX editor
  111. vi. Almost every possible command can be performed using only ASCII
  112. characters. Only the 'Q' command is missing (you do not need it). Many
  113. new features have been added: multilevel undo, command line history,
  114. file name completion, block operations, and editing of binary data.
  115. Vi is available for the AMIGA, MS-DOS, Windows NT, and various versions
  116. of UNIX.
  117. For SUSE Linux, Vim is used as /usr/bin/vi.
  118. Package vim-data contains the runtime files.
  119. %package -n gvim-gtk2
  120. Summary: A GTK2 GUI for Vim
  121. Group: Productivity/Editors/Vi
  122. Requires: gvim_client
  123. Requires: vim-data
  124. Requires: gvim-data
  125. Provides: gvim-gtk2-base = %{version}-%{release}
  126. Provides: gvim-gtk2-enhanced = %{version}-%{release}
  127. Obsoletes: gvim-gtk2-base < %{version}-%{release}
  128. Obsoletes: gvim-gtk2-enhanced < %{version}-%{release}
  129. Obsoletes: gvim-base < %{version}-%{release}
  130. Obsoletes: gvim-enhanced < %{version}-%{release}
  131. Obsoletes: gvim <= %{version}-%{release}
  132. Provides: gvim-gtk2_client
  133. Provides: gvim_client
  134. Provides: vim_client
  135. %description -n gvim-gtk2
  136. Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
  137. Package gvim contains the largest set of features of vim, which is
  138. graphical windows and language interpreter, like python, ruby, or perl.
  139. You need package vim for the help and other documentation too. If you
  140. want less features, you might want to install vim instead.
  141. %if 0%{?suse_version} > 1110
  142. %package -n gvim-gtk3
  143. Summary: A GTK3 GUI for Vim
  144. Group: Productivity/Editors/Vi
  145. Requires: gvim_client
  146. Requires: vim-data
  147. BuildRequires: gtk3-devel
  148. Requires: gvim-data
  149. Provides: gvim-gtk3-base = %{version}-%{release}
  150. Provides: gvim-gtk3-enhanced = %{version}-%{release}
  151. Obsoletes: gvim-base < %{version}-%{release}
  152. Obsoletes: gvim-enhanced < %{version}-%{release}
  153. Obsoletes: gvim-gtk3-base < %{version}-%{release}
  154. Obsoletes: gvim-gtk3-enhanced < %{version}-%{release}
  155. Provides: gvim-gtk3_client
  156. Provides: gvim_client
  157. Provides: vim_client
  158. %description -n gvim-gtk3
  159. Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
  160. Package gvim contains the largest set of features of vim, which is
  161. graphical windows and language interpreter, like python, ruby, or perl.
  162. You need package vim for the help and other documentation too. If you
  163. want less features, you might want to install vim instead.
  164. %endif
  165. %package -n gvim-data
  166. Summary: Data files for the GUIs of Vim
  167. Group: Productivity/Editors/Vi
  168. Requires: vim-data
  169. BuildArch: noarch
  170. %description -n gvim-data
  171. Copy and modify /usr/share/vim/current/gvimrc to ~/.gvimrc if needed.
  172. Package gvim contains the largest set of features of vim, which is
  173. graphical windows and language interpreter, like python, ruby, or perl.
  174. You need package vim for the help and other documentation too. If you
  175. want less features, you might want to install vim instead.
  176. %prep
  177. %setup -q -n %{name}-%{baseversion}.%{patchlevel}
  178. %patch3 -p1
  179. %patch4 -p1
  180. %patch5 -p1
  181. %patch6 -p1
  182. %patch7 -p1
  183. %patch8 -p1
  184. %patch9 -p1
  185. %patch10 -p1
  186. %patch11 -p1
  187. cp %{SOURCE23} runtime/syntax/apparmor.vim
  188. %patch15 -p1
  189. %patch18 -p1
  190. %patch21 -p1
  191. %patch22 -p1
  192. %patch100 -p1
  193. cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
  194. %build
  195. export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
  196. export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
  197. export COMMON_OPTIONS="\
  198. --with-vim-name=vim \
  199. --with-ex-name=ex \
  200. --with-view-name=view \
  201. --enable-cscope \
  202. --enable-multibyte \
  203. --with-features=huge \
  204. --with-compiledby='openSUSE Build Service (https://build.opensuse.org/)' \
  205. %if 0%{?suse_version} > 1210
  206. --with-tlib=tinfo \
  207. %else
  208. --with-tlib=ncurses \
  209. %endif
  210. --with-global-runtime=%{site_runtimepath} \
  211. --enable-luainterp=dynamic \
  212. --enable-perlinterp=yes \
  213. --enable-pythoninterp=dynamic \
  214. --enable-python3interp=dynamic \
  215. --enable-rubyinterp=dynamic"
  216. export GUI_OPTIONS_GTK2="\
  217. --disable-icon-cache-update \
  218. --enable-xim \
  219. --enable-fontset \
  220. %if 0%{?suse_version} <= 1110
  221. --disable-gpm \
  222. %endif
  223. --enable-gui=gtk2"
  224. export GUI_OPTIONS_GTK3="\
  225. --disable-icon-cache-update \
  226. --enable-xim \
  227. --enable-fontset \
  228. --enable-gui=gtk3"
  229. pushd src
  230. autoconf
  231. popd
  232. # build vim
  233. %configure ${COMMON_OPTIONS} --disable-gui --disable-gpm
  234. sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
  235. make %{?_smp_mflags}
  236. cp src/vim vim
  237. %if 0%{?suse_version} > 1110
  238. # build gvim-gtk3
  239. make distclean
  240. %configure ${COMMON_OPTIONS} ${GUI_OPTIONS_GTK3}
  241. sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
  242. make %{?_smp_mflags}
  243. cp src/vim gvim-gtk3
  244. %endif
  245. # build gvim-gtk2
  246. make distclean
  247. %configure ${COMMON_OPTIONS} ${GUI_OPTIONS_GTK2}
  248. sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
  249. make %{?_smp_mflags}
  250. #
  251. # build vitmp
  252. gcc %{optflags} %{SOURCE13} -o vitmp
  253. %install
  254. %makeinstall STRIP=:
  255. # create icon directory to have the icons installed and convert them to all hicolor expected sizes.
  256. %if 0%{?suse_version} > 1010
  257. for size in %{_datadir}/icons/hicolor/*[0-9]x[0-9]*; do
  258. SIZE=$(echo $size | awk -Fx {'print $2}')
  259. if ! [[ $SIZE == *"@"* ]]; then
  260. install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps
  261. rsvg-convert -h ${SIZE} -w ${SIZE} %{S:24} -o %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps/gvim.png
  262. fi
  263. done
  264. %else
  265. install -p -m644 %{SOURCE25} \
  266. %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gvim.png
  267. install -p -m644 %{SOURCE26} \
  268. %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gvim.png
  269. install -p -m644 %{SOURCE27} \
  270. %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gvim.png
  271. install -p -m644 %{SOURCE28} \
  272. %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png
  273. %endif
  274. install -dm0755 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
  275. install -dm0755 %{buildroot}%{_datadir}/icons/hicolor/1024x1024/apps/
  276. install -m0644 %{SOURCE24} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gvim.svg
  277. # install vim
  278. install -Dm0755 vim %{buildroot}%{_bindir}/vim
  279. # compat symlinks
  280. mkdir -p %{buildroot}/bin
  281. ln -s -f %{_bindir}/vim %{buildroot}/bin/vim
  282. # Install gvim-gtk3
  283. %if 0%{?suse_version} > 1110
  284. install -Dm0755 gvim-gtk3 %{buildroot}%{_bindir}/gvim-gtk3
  285. %endif
  286. # the last installed binary is gvim. preserve it and
  287. # fix its symlinks. e* was added here as it doesnt make much sense in
  288. # console
  289. mv %{buildroot}%{_bindir}/vim %{buildroot}%{_bindir}/gvim-gtk2
  290. for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
  291. if [[ -f %{buildroot}%{_bindir}/$f ]]; then
  292. rm %{buildroot}%{_bindir}/$f
  293. fi
  294. %if 0%{?suse_version} > 1110
  295. ln -s -vf gvim-gtk3 %{buildroot}%{_bindir}/$f-gtk3
  296. %endif
  297. ln -s -vf gvim-gtk2 %{buildroot}%{_bindir}/$f-gtk2
  298. done
  299. rm %{buildroot}%{_bindir}/{eview,evim,gview,gvim,gvimdiff,rgview,rgvim}
  300. # vitmp
  301. install -m0755 vitmp %{buildroot}%{_bindir}/vitmp
  302. install -m0644 %{SOURCE14} %{buildroot}%{_mandir}/man1/vitmp.1
  303. install -m0755 %{SOURCE15} %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
  304. # make the vim settings more generic
  305. ln -s -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
  306. # additional files
  307. install -Dm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/vimrc
  308. install -Dm0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/gvimrc
  309. # create site wide runtime directory
  310. mkdir -pm 0755 %{buildroot}%{site_runtimepath}/after
  311. mkdir -m 0755 %{buildroot}%{site_runtimepath}/autoload
  312. mkdir -m 0755 %{buildroot}%{site_runtimepath}/colors
  313. mkdir -m 0755 %{buildroot}%{site_runtimepath}/doc
  314. mkdir -m 0755 %{buildroot}%{site_runtimepath}/plugin
  315. mkdir -m 0755 %{buildroot}%{site_runtimepath}/syntax
  316. mkdir -m 0755 %{buildroot}%{site_runtimepath}/ftdetect
  317. mkdir -m 0755 %{buildroot}%{site_runtimepath}/after/syntax
  318. mkdir -m 0755 %{buildroot}%{_datadir}/vim/current/skeletons
  319. mkdir -m 0755 %{buildroot}%{_sysconfdir}/skel
  320. # install spec helper
  321. install -m0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec
  322. # desktop file for gvim-gtk2 and gvim-gtk3
  323. install -Dm0644 %{SOURCE19} %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop
  324. %if 0%{?suse_version} > 1110
  325. cp %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop %{buildroot}%{_datadir}/applications/gvim-gtk3.desktop
  326. %suse_update_desktop_file gvim-gtk3 Utility TextEditor
  327. sed -i -e 's/Exec=gvim/Exec=gvim-gtk3/g' \
  328. -e 's/Vi IMproved/GVim (GTK+3)/g' %{buildroot}%{_datadir}/applications/gvim-gtk3.desktop
  329. %endif
  330. %suse_update_desktop_file gvim-gtk2 Utility TextEditor
  331. sed -i -e 's/Exec=gvim/Exec=gvim-gtk2/g' \
  332. -e 's/Vi IMproved/GVim (GTK+2)/g' %{buildroot}%{_datadir}/applications/gvim-gtk2.desktop
  333. rm %{buildroot}%{_datadir}/applications/gvim.desktop
  334. %suse_update_desktop_file vim Utility TextEditor
  335. #
  336. # documentation
  337. cp runtime/doc/uganda.txt LICENSE
  338. install -dm0755 %{buildroot}%{_docdir}/{,g}vim/
  339. install -Dm0644 LICENSE \
  340. vimrc_example1 vimrc_example2 suse.vimrc \
  341. README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
  342. %{buildroot}%{_docdir}/vim/
  343. # gvim
  344. install -Dm0644 \
  345. README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
  346. %{buildroot}%{_docdir}/gvim/
  347. #
  348. # stupid helper
  349. install -m0755 %{SOURCE18} %{buildroot}%{_datadir}/vim/current/tools/missing-vim-client
  350. # remove unecessary duplicate manpages
  351. rm -rf %{buildroot}%{_mandir}/fr.ISO8859-1/
  352. rm -rf %{buildroot}%{_mandir}/fr.UTF-8/
  353. rm -rf %{buildroot}%{_mandir}/pl.ISO8859-2/
  354. rm -rf %{buildroot}%{_mandir}/pl.UTF-8/
  355. rm -rf %{buildroot}%{_mandir}/ru.KOI8-R/
  356. rm -rf %{buildroot}%{_mandir}/it.ISO8859-1/
  357. rm -rf %{buildroot}%{_mandir}/it.UTF-8/
  358. # and move russian manpages to a place where they can be found
  359. mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
  360. # remove some c source files
  361. rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.c
  362. rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/macros/maze/*.c
  363. # Remove sample server to avoid python dependency
  364. rm %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/demoserver.py
  365. # Create ghost files (see vim.conf)
  366. mkdir -p %{buildroot}/var/run/vi.recover
  367. %if 0%{?suse_version} > 1010
  368. %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/lang
  369. %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tutor
  370. %fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin
  371. %endif
  372. rm -rf %{buildroot}%{_datadir}/icons/locolor
  373. rm %{buildroot}%{_bindir}/{ex,view}
  374. rm %{buildroot}%{_mandir}/man1/{ex,view}.1
  375. #%check
  376. # vim does quite an extensive test relying on a full fledged terminal
  377. # inside OBS, stdio is redirected to a serial console (where the build log
  378. # is being recorded/extracted. Systemd set non-local tty by default to vt220
  379. # in upcoming versions
  380. #export TERM=linux
  381. # Reset the terminal scrolling region left behind by the testsuite
  382. #trap "printf '\e[r'" EXIT
  383. # Look for "TEST FAILURE" in the build log
  384. #make test
  385. %post -n vim-data
  386. %icon_theme_cache_post
  387. %postun -n vim-data
  388. %icon_theme_cache_postun
  389. %files
  390. %defattr(-,root,root,-)
  391. %config(noreplace) %{_sysconfdir}/vimrc
  392. %{_datadir}/applications/vim.desktop
  393. # symlinks
  394. /bin/vim
  395. %{_bindir}/rview
  396. %{_bindir}/rvim
  397. %{_bindir}/vim
  398. %{_bindir}/vimdiff
  399. # additional binaries
  400. %{_bindir}/vitmp
  401. %{_bindir}/vimtutor
  402. %{_bindir}/gvimtutor
  403. %{_bindir}/xxd
  404. # man pages
  405. %{_mandir}/man1/*
  406. %dir %{_mandir}/fr
  407. %dir %{_mandir}/fr/man1/
  408. %{_mandir}/fr/man1/*
  409. %dir %{_mandir}/it
  410. %dir %{_mandir}/it/man1/
  411. %{_mandir}/it/man1/*
  412. %dir %{_mandir}/ru
  413. %dir %{_mandir}/ru/man1/
  414. %{_mandir}/ru/man1/*
  415. %dir %{_mandir}/pl
  416. %dir %{_mandir}/pl/man1/
  417. %{_mandir}/pl/man1/*
  418. %dir %{_mandir}/ja
  419. %dir %{_mandir}/ja/man1/
  420. %{_mandir}/ja/man1/*
  421. # docs and data file
  422. %doc %{_docdir}/vim
  423. #
  424. %{_datadir}/vim/current
  425. %dir %{_datadir}/vim/
  426. %dir %{_datadir}/vim/%{VIM_SUBDIR}/
  427. %dir %{_datadir}/vim/%{VIM_SUBDIR}/autoload/
  428. %dir %{_datadir}/vim/%{VIM_SUBDIR}/colors/
  429. %dir %{_datadir}/vim/%{VIM_SUBDIR}/compiler/
  430. %dir %{_datadir}/vim/%{VIM_SUBDIR}/doc/
  431. %dir %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/
  432. %dir %{_datadir}/vim/%{VIM_SUBDIR}/indent/
  433. %dir %{_datadir}/vim/%{VIM_SUBDIR}/keymap/
  434. %dir %{_datadir}/vim/%{VIM_SUBDIR}/lang/
  435. %dir %{_datadir}/vim/%{VIM_SUBDIR}/macros/
  436. %dir %{_datadir}/vim/%{VIM_SUBDIR}/pack/
  437. %dir %{_datadir}/vim/%{VIM_SUBDIR}/plugin/
  438. %dir %{_datadir}/vim/%{VIM_SUBDIR}/print/
  439. %dir %{_datadir}/vim/%{VIM_SUBDIR}/spell/
  440. %dir %{_datadir}/vim/%{VIM_SUBDIR}/syntax/
  441. %dir %{_datadir}/vim/%{VIM_SUBDIR}/tools/
  442. %dir %{_datadir}/vim/%{VIM_SUBDIR}/tutor/
  443. %dir %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/
  444. %dir %{site_runtimepath}
  445. %dir %{site_runtimepath}/autoload/
  446. %dir %{site_runtimepath}/colors/
  447. %dir %{site_runtimepath}/doc/
  448. %dir %{site_runtimepath}/plugin/
  449. %dir %{site_runtimepath}/syntax/
  450. %dir %{site_runtimepath}/ftdetect/
  451. %dir %{site_runtimepath}/after/
  452. %dir %{site_runtimepath}/after/syntax/
  453. #
  454. %{_datadir}/vim/%{VIM_SUBDIR}/bugreport.vim
  455. %{_datadir}/vim/%{VIM_SUBDIR}/defaults.vim
  456. %{_datadir}/vim/%{VIM_SUBDIR}/evim.vim
  457. %{_datadir}/vim/%{VIM_SUBDIR}/filetype.vim
  458. %{_datadir}/vim/%{VIM_SUBDIR}/ftoff.vim
  459. %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin.vim
  460. %{_datadir}/vim/%{VIM_SUBDIR}/ftplugof.vim
  461. %{_datadir}/vim/%{VIM_SUBDIR}/indent.vim
  462. %{_datadir}/vim/%{VIM_SUBDIR}/indoff.vim
  463. %{_datadir}/vim/%{VIM_SUBDIR}/optwin.vim
  464. %{_datadir}/vim/%{VIM_SUBDIR}/rgb.txt
  465. %{_datadir}/vim/%{VIM_SUBDIR}/scripts.vim
  466. %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
  467. %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/skeleton.spec
  468. # stupid helper
  469. # THIS BREAKS THE BUILD: %{_datadir}/vim/current/tools/missing-vim-client
  470. %{_datadir}/vim/%{VIM_SUBDIR}/tools/missing-vim-client
  471. %files data
  472. %defattr(-,root,root,-)
  473. # icon files
  474. %{_datadir}/icons/hicolor/*/apps/gvim.*
  475. # data files
  476. %{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
  477. %{_datadir}/vim/%{VIM_SUBDIR}/colors/*
  478. %{_datadir}/vim/%{VIM_SUBDIR}/compiler/*
  479. %{_datadir}/vim/%{VIM_SUBDIR}/doc/*
  480. %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/*
  481. %{_datadir}/vim/%{VIM_SUBDIR}/indent/*
  482. %{_datadir}/vim/%{VIM_SUBDIR}/keymap/*
  483. %{_datadir}/vim/%{VIM_SUBDIR}/lang/*
  484. %{_datadir}/vim/%{VIM_SUBDIR}/macros/*
  485. %{_datadir}/vim/%{VIM_SUBDIR}/pack/*
  486. %{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
  487. %{_datadir}/vim/%{VIM_SUBDIR}/print/*
  488. %{_datadir}/vim/%{VIM_SUBDIR}/spell/*
  489. %{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
  490. %exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
  491. #%{_datadir}/vim/%{VIM_SUBDIR}/tools/blink.c
  492. %{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.1
  493. #%{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter.c
  494. %{_datadir}/vim/%{VIM_SUBDIR}/tools/ccfilter_README.txt
  495. %{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_filter.pl
  496. %{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_filter.txt
  497. %{_datadir}/vim/%{VIM_SUBDIR}/tools/efm_perl.pl
  498. %{_datadir}/vim/%{VIM_SUBDIR}/tools/mve.awk
  499. %{_datadir}/vim/%{VIM_SUBDIR}/tools/mve.txt
  500. %{_datadir}/vim/%{VIM_SUBDIR}/tools/pltags.pl
  501. %{_datadir}/vim/%{VIM_SUBDIR}/tools/README.txt
  502. %{_datadir}/vim/%{VIM_SUBDIR}/tools/ref
  503. %{_datadir}/vim/%{VIM_SUBDIR}/tools/shtags.1
  504. %{_datadir}/vim/%{VIM_SUBDIR}/tools/shtags.pl
  505. %{_datadir}/vim/%{VIM_SUBDIR}/tools/unicode.vim
  506. %{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
  507. %{_datadir}/vim/%{VIM_SUBDIR}/tools/vimm
  508. %{_datadir}/vim/%{VIM_SUBDIR}/tools/vimspell.sh
  509. %{_datadir}/vim/%{VIM_SUBDIR}/tools/vimspell.txt
  510. %{_datadir}/vim/%{VIM_SUBDIR}/tools/vim_vs_net.cmd
  511. #%{_datadir}/vim/%{VIM_SUBDIR}/tools/xcmdsrv_client.c
  512. %{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
  513. %{_datadir}/vim/%{VIM_SUBDIR}/delmenu.vim
  514. %{_datadir}/vim/%{VIM_SUBDIR}/gvimrc_example.vim
  515. %{_datadir}/vim/%{VIM_SUBDIR}/menu.vim
  516. %{_datadir}/vim/%{VIM_SUBDIR}/mswin.vim
  517. %{_datadir}/vim/%{VIM_SUBDIR}/synmenu.vim
  518. %{_datadir}/vim/%{VIM_SUBDIR}/vimrc_example.vim
  519. %files -n gvim-gtk2
  520. %defattr(-,root,root,-)
  521. %{_bindir}/egview-gtk2
  522. %{_bindir}/egvim-gtk2
  523. %{_bindir}/eview-gtk2
  524. %{_bindir}/evim-gtk2
  525. %{_bindir}/gex-gtk2
  526. %{_bindir}/gvi-gtk2
  527. %{_bindir}/gview-gtk2
  528. %{_bindir}/gvim-gtk2
  529. %{_bindir}/gvimdiff-gtk2
  530. %{_bindir}/rgview-gtk2
  531. %{_bindir}/rgvim-gtk2
  532. # menu icon
  533. %{_datadir}/applications/gvim-gtk2.desktop
  534. %files -n gvim-data
  535. %doc %{_docdir}/gvim
  536. %doc runtime/doc/gui_x11.txt
  537. %ghost %config(missingok) %{_sysconfdir}/gvimrc
  538. %if 0%{?suse_version} > 1110
  539. %files -n gvim-gtk3
  540. %defattr(-,root,root,-)
  541. %{_bindir}/egview-gtk3
  542. %{_bindir}/egvim-gtk3
  543. %{_bindir}/eview-gtk3
  544. %{_bindir}/evim-gtk3
  545. %{_bindir}/gex-gtk3
  546. %{_bindir}/gvi-gtk3
  547. %{_bindir}/gview-gtk3
  548. %{_bindir}/gvim-gtk3
  549. %{_bindir}/gvimdiff-gtk3
  550. %{_bindir}/rgview-gtk3
  551. %{_bindir}/rgvim-gtk3
  552. # menu icon
  553. %{_datadir}/applications/gvim-gtk3.desktop
  554. %endif
  555. %changelog