vim/vim.spec

543 lines
17 KiB
RPMSpec
Raw Normal View History

#
# spec file for package vim
#
- Updated to version 8.2.0119, fixes the following problems * Printf formats are not exactly right. * Hgignore is out of sync from gitignore. * When sign text is changed a manual redraw is needed. (Pontus Lietzler) * Corrupted text properties when expanding spaces. * prop_find() is not implemented. * VAR_SPECIAL is also used for booleans. * Illegal memory access when using 'cindent'. * "make cmdidxs" fails. * Info about sourced scripts is scattered. * Byte2line() does not work correctly with text properties. (Billie Cleek) * BufEnter autocmd not triggered on ":tab drop". (Andy Stewart) * Crash when using gettabwinvar() with invalid arguments. (Yilin Yang) * Crash when cycling to buffers involving popup window . * Message test fails on some platforms. (Elimar Riesebieter) * Wrong size argument to vim_snprintf(). (Dominique Pelle) * Diffmode completion doesn't use per-window setting. * Some corners of vim_snprintf() are not tested. * ERROR_UNKNOWN clashes on some systems. * Crash when using Python 3 with "utf32" encoding. (Dominique Pelle) * ETYPE_ is used for two different enums. * Crash when using Python 3 with "debug" encoding. (Dominique Pelle) * Initializing globals with COMMA is clumsy. * Python 3 unicode test sometimes fails. * Python 3 unicode test still sometimes fails. * settagstack() cannot truncate at current index. * Expanding <sfile> works differently the second time. * Python 3 unicode test still fails on MS-Windows. * Globals using INIT4() are not in the tags file. * When reusing a buffer listeners are not cleared. (Axel Forsman) OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=581
2020-01-15 13:55:21 +01:00
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 636139 from home:mimi_vx:branches:editors - update to version 8.1.401 * refresh vim-8.1.0297-dump3.patch * Can't get swap name of another buffer. * Using freed memory with :diffget. * 'hlsearch' highlight remains in other window * No event triggered after updating diffs * Diffs are not always updated correctly * Not all white space difference options available. * Error while typing :/foo/s// with 'incsearch' enabled * Building in a shadow directory fails. * Coverity complains about possible NULL pointer use. * Sign ordering depends on +netbeans feature. * Missing source file rename. * some make programs can't handle dependency on "xdiff/../" * Variable declaration not at start of block. * "make proto" doesn't work well. * Xdiff doesn't use the Vim memory allocation functions * Compiler warning for uninitialized variable. * Moving the cursor is slow when 'relativenumber' is set. * Screen updating still slow when 'cursorline' is set. * Argument types for select() may be wrong. * Not using internal diff if 'diffopt' is not changed * Continuation lines cannot contain comments. * GTK code has too many #ifdefs and building fails with GTK 2.10. * getchar(1) no longer processes pending messages * Pieces of the xdiff code are not used. * Function profile doesn't specify where it was defined. * compiler warning in xdiff code * Internal diff isn't used by default as advertised. * Cannot get the script line number when executing a function. OBS-URL: https://build.opensuse.org/request/show/636139 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=516
2018-09-17 13:34:01 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pkg_version 8.2
- Updated to version 8.2.0348, fixes the following problems * Short name not set for terminal buffer. * Build failure on HP-UX system. * ex_getln.c code has insufficient test coverage. * MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build. * Vim9: types not sufficiently tested. * File missing in distribution, comments outdated. * No Haiku support. * Vim9: ":execute" does not work yet. * Vim9: error checks not tested. * Vim9: calling a function that is defined later is slow. * Text property not updated correctly when inserting/deleting. * Ex_getln.c code not covered by tests. * Compiler warning for using uninitialized variable. (Yegappan Lakshmanan) * Crash when opening and closing two popup terminal windows. * No redraw when leaving terminal-normal mode in a terminal popup window. * Popup filter converts 0x80 bytes. * Build error with popup window but without terminal. * Internal error when using test_void() and test_unknown(). (Dominique Pelle) * Some code in ex_getln.c not covered by tests. * Terminal in popup test is flaky. * Abort called when using test_void(). (Dominique Pelle) * No completion for :disassemble. * Vim9: insufficient test coverage for compiling. * Build fails on a few systems. * Build failure without the channel feature. * Vim9: function return type may depend on arguments. * Vim9: function and partial types not tested. * Using ":for" in Vim9 script gives an error. * Some code in ex_getln.c not covered by tests. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=589
2020-03-03 13:30:40 +01:00
%define patchlevel 0348
- Updated to revision 1390, fixes the following problems * Balloon shows when cursor is in WinBar. * terminal test hangs, executing abcde. (Stucki) * Cannot drag status line or vertical separator of new terminal window. (UncleBill) * MS-Windows: drawing underline, curl and strike-throw is slow, mFallbackDC not properly updated. * Channel test for callback is flaky. * Shift-Insert doesn't always work in MS-Windows console. * Profile log may be truncated halfway a character. * No error when settting 'renderoptions' to an invalid value before starting the GUI. * CTRL-A does not work with an empty line. (Alex) * Window size wrong after maximizing with WinBar. (Lifepillar) * Cursor in terminal not always updated. * Cannot call a dict function in autoloaded dict. * Autoload script sources itself when defining function. * Configure check for selinux does not check for header file. * When recovering a file with "vim -r swapfile" the hit-enter prompt is at the top of the window. * ch_readraw() waits for NL if channel mode is NL. * Get "no write since last change" message if a terminal is open. * Local additions in help skips some files. (joshklod) * Not enough quickfix help; confusing winid. * Python 3.5 is getting old. * Cannot select modified buffers with getbufinfo(). * Wordcount test is old style. * Char not overwritten with ambiguous width char, if the ambiguous char is single width but we reserve double-width space. * getqflist() items are missing if not set, that makes it more difficult OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=464
2017-12-15 14:24:10 +01:00
%define patchlevel_compact %{patchlevel}
%define VIM_SUBDIR vim82
%define site_runtimepath %{_datadir}/vim/site
%define make make VIMRCLOC=%{_sysconfdir} VIMRUNTIMEDIR=%{_datadir}/vim/current MAKE="make -e" %{?_smp_mflags}
%bcond_without python2
Name: vim
Version: %{pkg_version}.%{patchlevel_compact}
Release: 0
Summary: Vi IMproved
License: Vim
Group: Productivity/Text/Editors
URL: http://www.vim.org/
Source: https://github.com/vim/vim/archive/v%{pkg_version}.%{patchlevel}.tar.gz#/vim-%{pkg_version}.%{patchlevel}.tar.gz
Source3: suse.vimrc
Source4: vimrc_example1
Source5: vimrc_example2
Source8: suse.gvimrc
Source10: README.Japanese-XIM
Source13: vitmp.c
Source14: vitmp.1
Source15: vim132
Source19: gvim.desktop
Source20: spec.skeleton
Source23: apparmor.vim
Source24: gvim.svg
Source25: gvim_24.png
Source26: gvim_32.png
Source27: gvim_48.png
Source28: gvim_64.png
Source29: gvim_96.png
Source98: vim-changelog.sh
Source99: %{name}-7.4-rpmlintrc
Patch3: %{name}-7.4-disable_lang_no.patch
Patch4: %{name}-7.3-gvimrc_fontset.patch
Patch5: %{name}-7.4-highlight_fstab.patch
Patch6: %{name}-7.3-sh_is_bash.patch
Patch7: %{name}-7.3-filetype_ftl.patch
Patch8: %{name}-7.3-help_tags.patch
Patch9: %{name}-7.3-use_awk.patch
Patch10: %{name}-7.3-name_vimrc.patch
Patch11: %{name}-7.3-mktemp_tutor.patch
Patch15: %{name}-7.4-filetype_apparmor.patch
Patch18: %{name}-7.3-filetype_spec.patch
Patch21: %{name}-7.3-filetype_changes.patch
Patch22: %{name}-7.4-filetype_mine.patch
Patch23: vim-8.0-ttytype-test.patch
Patch24: disable-unreliable-tests.patch
Patch100: vim73-no-static-libpython.patch
Patch101: vim-8.0.1568-defaults.patch
Accepting request 630978 from home:mimi_vx:branches:editors - update to version 8.1.318 - add vim-8.1.0297-dump3.patch - disable broken test * helpgrep with language doesn't work properly * build failure without the +eval feature * information about a swap file is unavailable * wrong type for flags used in signal handlers * filtering entries in a quickfix list is not easy * File info message not always suppressed with 'F' in 'shortmess'. * profiling does not show a count for condition lines * a quick undo shows "1 seconds ago" * there is no good way to get the window layout * plural messages are not translated properly * no redraw when using a STOP signal on Vim and then CONT * line2byte() is wrong for last line with 'noeol' * crash when using :suspend and "fg" * GTK: input method popup displayed on wrong screen. * the old window title might be freed twice * command parsing for 'incsearch' is a bit ugly * no 'incsearch' highlighting for :vimgrep and similar * checks for type of stack is cryptic * 'incsearch' highlighting not used for :sort * "cit" on an empty HTML tag changes the whole tag * cursor moves to wrong column after quickfix jump * quickfix code uses cmdidx too often * MAX is not defined everywhere * 'incsearch' does not apply to :smagic and :snomagic * 'cursorline' highlighting wrong with 'incsearch' * 'incsearch' does not work with command modifiers * parsing command modifiers is not separated * 'incsearch' highlighting does not work for ":g!/" OBS-URL: https://build.opensuse.org/request/show/630978 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=514
2018-08-23 09:45:26 +02:00
# https://github.com/vim/vim/issues/3348 - problem more probadly in buildenv than in test
Patch102: vim-8.1.0297-dump3.patch
Patch103: no-common.patch
BuildRequires: autoconf
BuildRequires: db-devel
BuildRequires: fdupes
BuildRequires: gettext-devel
BuildRequires: gpm-devel
BuildRequires: krb5-mini
BuildRequires: libacl-devel
Accepting request 662793 from home:mimi_vx:branches:editors - Updated to version 8.1.0687 , fixes the following problems + refreshed disable-unreliable-tests.patch * Asan complains about reading before allocated block. * SGR not enabled for mintty because $TERM is "xterm". * Error for NUL byte in ScreenLines goes unnoticed. * Error message for NUL byte in ScreenLines breaks Travis CI. * Execute() always resets display column to zero. (Sha Liu) * 'commentstring' not used when adding fold marker. (Maxim Kim) * Non-silent execute() resets display column to zero. * Stopping a job does not work properly on OpenBSD. * Cannot redefine user command without ! in same script * 'commentstring' not used when adding fold marker in C. * Termdebug: clearing multi-breakpoint does not work. * Indent script tests pick up installed scripts. * Tabpage right-click menu never shows "Close tab". * Cannot disable arabic, rightleft and farsi in configure. * Cannot attach properties to text. * Invalid memory access when using text properties. * Double free without the text properties feature. * Text properties are not enabled. * Using illogical name for get_dict_number()/get_dict_string(). * With search CTRL-L does not pick up composing characters. * Undo test may fail on MS-Windows. * :digraph output is not easy to read. * GvimExt: realloc() failing is not handled properly. * Cannot define a sign with space in the text. * Compilation error in gvimext.cpp. * When a job ends the closed channels are not handled. * Channel sort test is flaky. * The libvterm tests are not run as part of Vim tests. OBS-URL: https://build.opensuse.org/request/show/662793 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=532
2019-01-04 14:34:11 +01:00
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: ruby-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(xt)
- Updated to version 8.1.1600, fixes the following problems * Popup_setoptions() is not implemented yet. * Popup window not always redrawn after popup_setoptions(). * Crash when using closures. * Sign column takes up space. (Adam Stankiewicz) * Error message when terminal closes while it is not in the current tab. * Localtime_r() does not respond to $TZ changes. * Cannot build with signs but without diff feature. * Icon signs not displayed properly in the number column. * textprop highlight starts too early if just after a tab. * Compiler warnings with tiny build. (Tony Mechelynck) * Textprop test fails if screenhots do not work. * Tabpage option not yet implemented for popup window. * Compiler warning for unused argument. * Command line redrawn for +arabic without Arabic characters. (Dominique Pelle) * Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) * Cannot make part of a popup transparent. * Shared functions for testing are disorganised. * Cannot build with +textprop but without +timers. * Set_ref_in_list() only sets ref in items. * The evalfunc.c file is getting too big. * :let-heredoc does not trim enough. * Error number used in two places. * Redraw problem when sign icons in the number column. * In :let-heredoc line continuation is recognized. * Popup window does not indicate scroll position. * Popup window test fails. * On error garbage collection may free memory in use. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=558
2019-06-26 20:02:55 +02:00
Requires: vim-data-common = %{version}-%{release}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: vim-data = %{version}-%{release}
Conflicts: vim-base < 8.2
Provides: vi
Provides: vim-base = %{version}-%{release}
Provides: vim-enhanced = %{version}-%{release}
Provides: vim-python = %{version}-%{release}
Obsoletes: vim-base < %{version}-%{release}
Obsoletes: vim-enhanced < %{version}-%{release}
Obsoletes: vim-python < %{version}-%{release}
Provides: vim_client
%{?libperl_requires}
- Updated to version 8.1.1600, fixes the following problems * Popup_setoptions() is not implemented yet. * Popup window not always redrawn after popup_setoptions(). * Crash when using closures. * Sign column takes up space. (Adam Stankiewicz) * Error message when terminal closes while it is not in the current tab. * Localtime_r() does not respond to $TZ changes. * Cannot build with signs but without diff feature. * Icon signs not displayed properly in the number column. * textprop highlight starts too early if just after a tab. * Compiler warnings with tiny build. (Tony Mechelynck) * Textprop test fails if screenhots do not work. * Tabpage option not yet implemented for popup window. * Compiler warning for unused argument. * Command line redrawn for +arabic without Arabic characters. (Dominique Pelle) * Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) * Cannot make part of a popup transparent. * Shared functions for testing are disorganised. * Cannot build with +textprop but without +timers. * Set_ref_in_list() only sets ref in items. * The evalfunc.c file is getting too big. * :let-heredoc does not trim enough. * Error number used in two places. * Redraw problem when sign icons in the number column. * In :let-heredoc line continuation is recognized. * Popup window does not indicate scroll position. * Popup window test fails. * On error garbage collection may free memory in use. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=558
2019-06-26 20:02:55 +02:00
%if %{with python2}
BuildRequires: python2-devel
%endif
%description
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
vi. Almost every possible command can be performed using only ASCII
characters. Only the 'Q' command is missing (you do not need it). Many
new features have been added: multilevel undo, command line history,
file name completion, block operations, and editing of binary data.
%package data
Summary: Data files needed for extended vim functionality
# Used to be in vim-plugins package
Group: Productivity/Text/Editors
- Updated to version 8.1.1600, fixes the following problems * Popup_setoptions() is not implemented yet. * Popup window not always redrawn after popup_setoptions(). * Crash when using closures. * Sign column takes up space. (Adam Stankiewicz) * Error message when terminal closes while it is not in the current tab. * Localtime_r() does not respond to $TZ changes. * Cannot build with signs but without diff feature. * Icon signs not displayed properly in the number column. * textprop highlight starts too early if just after a tab. * Compiler warnings with tiny build. (Tony Mechelynck) * Textprop test fails if screenhots do not work. * Tabpage option not yet implemented for popup window. * Compiler warning for unused argument. * Command line redrawn for +arabic without Arabic characters. (Dominique Pelle) * Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) * Cannot make part of a popup transparent. * Shared functions for testing are disorganised. * Cannot build with +textprop but without +timers. * Set_ref_in_list() only sets ref in items. * The evalfunc.c file is getting too big. * :let-heredoc does not trim enough. * Error number used in two places. * Redraw problem when sign icons in the number column. * In :let-heredoc line continuation is recognized. * Popup window does not indicate scroll position. * Popup window test fails. * On error garbage collection may free memory in use. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=558
2019-06-26 20:02:55 +02:00
Requires: vim-data-common = %{version}-%{release}
Obsoletes: vim-plugin-matchit <= 1.13.2
Provides: vim-plugin-matchit = 1.13.2
BuildArch: noarch
%description data
This package contains optional runtime & syntax files for vim.
%package data-common
Summary: Common Data files for vim & gvim
Group: Productivity/Text/Editors
BuildArch: noarch
%description data-common
This package contains common runtime & syntax files for vim and gvim.
%package -n gvim
Summary: A GUI for Vi
Group: Productivity/Text/Editors
Requires: gvim_client
Requires: vim-data = %{version}-%{release}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: gvim < 8.2
Provides: gvim-base = %{version}-%{release}
Provides: gvim-enhanced = %{version}-%{release}
Obsoletes: gvim-base < %{version}-%{release}
Obsoletes: gvim-enhanced < %{version}-%{release}
Provides: gvim_client
Provides: vi
Provides: vim_client
%description -n gvim
Package gvim contains the largest set of features of vim, which is
graphical windows and language interpreter, like python, ruby, or perl.
You need package vim for the help and other documentation too. If you
want less features, you might want to install vim instead.
%prep
%setup -q -n %{name}-%{pkg_version}.%{patchlevel}
- Use mercurial tags instead of applying patches one by one. This reduces unexpected failures. - Updated to revision 417, fixes the following problems * Can't build with Perl on Fedora 20. * Fold does not open after search when there is a CmdwinLeave autocommand. * "foo bar" sorts before "foo" with sort(). (John Little) * Cannot define a command only when it's used. * Cannot build. Warning for shadowed variable. (John Little) * Problem with breakindent/showbreak and tabs. * After splitting a window and setting 'breakindent' the default minimum with is not respected. * Screen updating is slow when using matches. * Inserting text for Visual block mode, with cursor movement, repeats the wrong text. (Aleksandar Ivanov) * Visual block insert breaks a multi-byte character. * Compiler warning for unused argument and unused variable. * Character after "fb" command not mapped if it might be a composing character. * Test 63 fails when run with GUI-only Vim. * Popup menu flickers too much. * When 'equalalways' is set a split may report "no room" even though there is plenty of room. * Title of quickfist list is not kept for setqflist(list, 'r'). * Accessing freed memory after using setqflist(list, 'r'). (Lcd) * Loading python may cause Vim to exit. * Get u_undo error when backspacing in Insert mode deletes more than one line break. (Ayberk Ozgur) * Mapping characters may not work after typing Esc in Insert mode. * Bad interaction between preview window and omnifunc. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=224
2014-08-25 13:50:01 +02:00
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
cp %{SOURCE23} runtime/syntax/apparmor.vim
%patch15 -p1
%patch18 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch100 -p1
%patch101 -p1
Accepting request 630978 from home:mimi_vx:branches:editors - update to version 8.1.318 - add vim-8.1.0297-dump3.patch - disable broken test * helpgrep with language doesn't work properly * build failure without the +eval feature * information about a swap file is unavailable * wrong type for flags used in signal handlers * filtering entries in a quickfix list is not easy * File info message not always suppressed with 'F' in 'shortmess'. * profiling does not show a count for condition lines * a quick undo shows "1 seconds ago" * there is no good way to get the window layout * plural messages are not translated properly * no redraw when using a STOP signal on Vim and then CONT * line2byte() is wrong for last line with 'noeol' * crash when using :suspend and "fg" * GTK: input method popup displayed on wrong screen. * the old window title might be freed twice * command parsing for 'incsearch' is a bit ugly * no 'incsearch' highlighting for :vimgrep and similar * checks for type of stack is cryptic * 'incsearch' highlighting not used for :sort * "cit" on an empty HTML tag changes the whole tag * cursor moves to wrong column after quickfix jump * quickfix code uses cmdidx too often * MAX is not defined everywhere * 'incsearch' does not apply to :smagic and :snomagic * 'cursorline' highlighting wrong with 'incsearch' * 'incsearch' does not work with command modifiers * parsing command modifiers is not separated * 'incsearch' highlighting does not work for ":g!/" OBS-URL: https://build.opensuse.org/request/show/630978 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=514
2018-08-23 09:45:26 +02:00
%patch102 -p1
%patch103 -p1
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
# Unreliable tests
# See also disable-unreliable-tests.patch
rm src/testdir/test_arglist.*
rm src/testdir/test_command_count.*
rm src/testdir/test_cmdline.*
rm src/testdir/test_channel.*
rm src/testdir/test_diffmode.*
rm src/testdir/test_mksession.*
rm src/testdir/gen_opt_test.*
rm src/testdir/test_options.*
rm src/testdir/test_popupwin.*
rm src/testdir/test_startup.*
rm src/testdir/test_terminal*
rm src/testdir/test_textprop.*
rm src/testdir/test_window_cmd.*
rm src/testdir/test_writefile.*
%build
export CFLAGS="%{optflags} -Wall -pipe -fno-strict-aliasing"
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=1}
export COMMON_OPTIONS="\
--with-vim-name=vim \
--with-ex-name=ex \
--with-view-name=view \
--enable-cscope \
--enable-multibyte \
--with-features=huge \
--with-compiledby='http://www.opensuse.org/' \
%if 0%{?suse_version} > 1210
--with-tlib=tinfo \
%else
--with-tlib=ncurses \
%endif
--with-global-runtime=%{site_runtimepath} \
--enable-luainterp=dynamic \
--enable-perlinterp=yes \
--enable-python3interp=dynamic \
--enable-rubyinterp=dynamic"
%if %{with python2}
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-pythoninterp=yes"
%else
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-pythoninterp=no"
%endif
export GUI_OPTIONS="\
--disable-icon-cache-update \
--enable-xim \
--enable-fontset \
--enable-gui=gtk3"
pushd src
autoconf
popd
# build vim
%configure ${COMMON_OPTIONS} --disable-gui --disable-gpm --with-x=no
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
make %{?_smp_mflags}
cp src/vim vim-nox11
# build gvim
make -j1 distclean
%configure ${COMMON_OPTIONS} ${GUI_OPTIONS}
sed -i -e 's|define HAVE_DATE_TIME 1|undef HAVE_DATE_TIME|' src/auto/config.h
make %{?_smp_mflags}
#
# build vitmp
gcc %{optflags} %{SOURCE13} -o vitmp
%install
%make_install STRIP=:
# create icon directories and install the icons into it
for SIZE in 24 32 48 64 96; do
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps
install -m 0644 %{_sourcedir}/gvim_${SIZE}.png %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps/gvim.png
done
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -m 0644 %{SOURCE24} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gvim.svg
# the last installed binary is gvim. preserve it and
# fix its symlinks. e* was added here as it doesnt make much sense in
# console
mv %{buildroot}%{_bindir}/vim %{buildroot}%{_bindir}/gvim
for f in egvim egview eview evim gex gvi gview gvimdiff rgview rgvim ; do
ln -s -vf gvim %{buildroot}%{_bindir}/$f
done
# install vim
install -D -m 0755 vim-nox11 %{buildroot}%{_bindir}/vim-nox11
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -s -f %{_sysconfdir}/alternatives/vim %{buildroot}%{_bindir}/vim
# compat symlinks
mkdir %{buildroot}/bin
ln -s -f %{_bindir}/vim %{buildroot}/bin/vi
ln -s -f %{_bindir}/vim %{buildroot}/bin/vim
ln -s -f vim %{buildroot}%{_bindir}/vi
ln -s -f vim %{buildroot}%{_bindir}/edit
ln -s -f %{_bindir}/vim %{buildroot}/bin/ex
# man pages
ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/vi.1.gz
ln -s -f vim.1.gz %{buildroot}%{_mandir}/man1/ex.1.gz
# vitmp
install -m 0755 vitmp %{buildroot}%{_bindir}/vitmp
install -m 0644 %{SOURCE14} %{buildroot}%{_mandir}/man1/vitmp.1
install -m 0755 %{SOURCE15} %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/vim132
# make the vim settings more generic
ln -s -f %{VIM_SUBDIR} %{buildroot}%{_datadir}/vim/current
# additional files
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/vimrc
install -D -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/gvimrc
# create site wide runtime directory
mkdir -p -m 0755 %{buildroot}%{site_runtimepath}/after
mkdir -m 0755 %{buildroot}%{site_runtimepath}/autoload
mkdir -m 0755 %{buildroot}%{site_runtimepath}/colors
mkdir -m 0755 %{buildroot}%{site_runtimepath}/doc
mkdir -m 0755 %{buildroot}%{site_runtimepath}/plugin
mkdir -m 0755 %{buildroot}%{site_runtimepath}/syntax
mkdir -m 0755 %{buildroot}%{site_runtimepath}/ftdetect
mkdir -m 0755 %{buildroot}%{site_runtimepath}/after/syntax
mkdir -m 0755 %{buildroot}%{_datadir}/vim/current/skeletons
mkdir -m 0755 %{buildroot}%{_sysconfdir}/skel
# install spec helper
install -m 0644 %{SOURCE20} %{buildroot}%{_datadir}/vim/current/skeletons/skeleton.spec
# desktop file for gvim
install -D -m 0644 %{SOURCE19} %{buildroot}%{_datadir}/applications/gvim.desktop
%suse_update_desktop_file gvim Utility TextEditor
#
# documentation
install -d -m 0755 %{buildroot}%{_docdir}/{,g}vim/
install -D -m 0644 \
vimrc_example1 vimrc_example2 suse.vimrc \
README.txt READMEdir/README_src.txt READMEdir/README_unix.txt \
%{buildroot}%{_docdir}/vim/
# gvim
install -D -m 0644 \
README.Japanese-XIM runtime/gvimrc_example.vim suse.gvimrc \
%{buildroot}%{_docdir}/gvim/
# remove unecessary duplicate manpages
rm -rf %{buildroot}%{_mandir}/fr.ISO8859-1/
rm -rf %{buildroot}%{_mandir}/fr.UTF-8/
rm -rf %{buildroot}%{_mandir}/pl.ISO8859-2/
rm -rf %{buildroot}%{_mandir}/pl.UTF-8/
rm -rf %{buildroot}%{_mandir}/ru.KOI8-R/
rm -rf %{buildroot}%{_mandir}/it.ISO8859-1/
rm -rf %{buildroot}%{_mandir}/it.UTF-8/
Accepting request 622350 from home:mimi_vx:branches:editors - update to 8.1 revision 8.1.0178 - refresh disable-unreliable-tests.patch vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-help_tags.patch vim-7.3-name_vimrc.patch vim-7.4-filetype_apparmor.patch * Warning for passing pointer to non-pointer argument. * Overlapping string argument for strcpy(). * Marks test fails in very wide window * After paging up and down fold line is wrong. * 'viminfofile' option does not behave like a file name. * Typing CTRL-W n in a terminal window causes ml_get error. * Invalid memory use with complicated pattern. * Calling message_filtered() a bit too often. * output of :marks is too short with multi-byte chars * lock flag in new dictitem is reset in many places * using dict_add_nr_str() is clumsy * :clist output can be very long. * luaeval('vim.buffer().name') returns an error. * Danish and German man pages are not installed. * Buffer not updated with 'autoread' set if file was deleted. * completion for user names does not work for a prefix. * GUI: input() fails if CTRL-C was pressed before * Evim.man missing from the distribution. * Crash with "set smarttab shiftwidth=0 softtabstop=-1". * Build with SHADOWDIR fails. * session is wrong with multiple tabs when :lcd was used * Memory leak when using :tcl expr command. OBS-URL: https://build.opensuse.org/request/show/622350 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=503
2018-07-13 08:48:02 +02:00
rm -rf %{buildroot}%{_mandir}/da.UTF-8/
rm -rf %{buildroot}%{_mandir}/de.UTF-8/
rm -rf %{buildroot}%{_mandir}/da.ISO8859-1/
rm -rf %{buildroot}%{_mandir}/de.ISO8859-1/
# remove unnecessary files
rm -rf %{buildroot}%{_datadir}/applications/vim.desktop
rm -rf %{buildroot}%{_datadir}/icons/locolor
# and move russian manpages to a place where they can be found
mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
# remove some c source files
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.c
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/macros/maze/*.c
# Remove sample server to avoid python dependency
rm %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/demoserver.py
# Create ghost files (see vim.conf)
mkdir -p %{buildroot}%{_localstatedir}/run/vi.recover
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/lang
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tutor
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin
sed -i "s@%{_bindir}/env perl@%{_bindir}/perl@" %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.pl
sed -i "s@%{_bindir}/env perl@%{_bindir}/perl@" %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/doc/vim2html.pl
- Updated to version 8.1.1600, fixes the following problems * Popup_setoptions() is not implemented yet. * Popup window not always redrawn after popup_setoptions(). * Crash when using closures. * Sign column takes up space. (Adam Stankiewicz) * Error message when terminal closes while it is not in the current tab. * Localtime_r() does not respond to $TZ changes. * Cannot build with signs but without diff feature. * Icon signs not displayed properly in the number column. * textprop highlight starts too early if just after a tab. * Compiler warnings with tiny build. (Tony Mechelynck) * Textprop test fails if screenhots do not work. * Tabpage option not yet implemented for popup window. * Compiler warning for unused argument. * Command line redrawn for +arabic without Arabic characters. (Dominique Pelle) * Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) * Cannot make part of a popup transparent. * Shared functions for testing are disorganised. * Cannot build with +textprop but without +timers. * Set_ref_in_list() only sets ref in items. * The evalfunc.c file is getting too big. * :let-heredoc does not trim enough. * Error number used in two places. * Redraw problem when sign icons in the number column. * In :let-heredoc line continuation is recognized. * Popup window does not indicate scroll position. * Popup window test fails. * On error garbage collection may free memory in use. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=558
2019-06-26 20:02:55 +02:00
%check
# vim does quite an extensive test relying on a full fledged terminal
# inside OBS, stdio is redirected to a serial console (where the build log
# is being recorded/extracted. Systemd set non-local tty by default to vt220
# in upcoming versions
export TERM=linux
# Reset the terminal scrolling region left behind by the testsuite
trap "printf '\e[r'" EXIT
# Look for "TEST FAILURE" in the build log
%ifarch ppc ppc64 ppc64le
LC_ALL=en_US.UTF-8 make -j1 test || { echo "Ignore transient errors for PowerPC. boo#1072651"; }
%else
LC_ALL=en_US.UTF-8 make -j1 test
%endif
%post
%{_sbindir}/update-alternatives --install %{_bindir}/vim vim %{_bindir}/vim-nox11 20
%postun
if [ ! -e %{_bindir}/vim-nox11 ] ; then
%{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-nox11
fi
%post -n gvim
%{_sbindir}/update-alternatives --install %{_bindir}/vim vim %{_bindir}/gvim 30
%icon_theme_cache_post
%postun -n gvim
if [ ! -e %{_bindir}/gvim ] ; then
%{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim
fi
%icon_theme_cache_postun
%files
%config(noreplace) %{_sysconfdir}/vimrc
%ghost %{_sysconfdir}/alternatives/vim
%{_bindir}/vim-nox11
%{_bindir}/vim
# symlinks
/bin/vi
/bin/vim
/bin/ex
%{_bindir}/edit
%{_bindir}/ex
%{_bindir}/rview
%{_bindir}/rvim
%{_bindir}/vi
%{_bindir}/view
%{_bindir}/vimdiff
# additional binaries
%{_bindir}/vitmp
%{_bindir}/vimtutor
%{_bindir}/gvimtutor
%{_bindir}/xxd
# man pages
%{_mandir}/man1/*
Accepting request 622350 from home:mimi_vx:branches:editors - update to 8.1 revision 8.1.0178 - refresh disable-unreliable-tests.patch vim-7.3-filetype_changes.patch vim-7.3-filetype_ftl.patch vim-7.3-filetype_spec.patch vim-7.3-help_tags.patch vim-7.3-name_vimrc.patch vim-7.4-filetype_apparmor.patch * Warning for passing pointer to non-pointer argument. * Overlapping string argument for strcpy(). * Marks test fails in very wide window * After paging up and down fold line is wrong. * 'viminfofile' option does not behave like a file name. * Typing CTRL-W n in a terminal window causes ml_get error. * Invalid memory use with complicated pattern. * Calling message_filtered() a bit too often. * output of :marks is too short with multi-byte chars * lock flag in new dictitem is reset in many places * using dict_add_nr_str() is clumsy * :clist output can be very long. * luaeval('vim.buffer().name') returns an error. * Danish and German man pages are not installed. * Buffer not updated with 'autoread' set if file was deleted. * completion for user names does not work for a prefix. * GUI: input() fails if CTRL-C was pressed before * Evim.man missing from the distribution. * Crash with "set smarttab shiftwidth=0 softtabstop=-1". * Build with SHADOWDIR fails. * session is wrong with multiple tabs when :lcd was used * Memory leak when using :tcl expr command. OBS-URL: https://build.opensuse.org/request/show/622350 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=503
2018-07-13 08:48:02 +02:00
%dir %{_mandir}/da
%dir %{_mandir}/da/man1/
%{_mandir}/da/man1/*
%dir %{_mandir}/de
%dir %{_mandir}/de/man1/
%{_mandir}/de/man1/*
%dir %{_mandir}/fr
%dir %{_mandir}/fr/man1/
%{_mandir}/fr/man1/*
%dir %{_mandir}/it
%dir %{_mandir}/it/man1/
%{_mandir}/it/man1/*
%dir %{_mandir}/ru
%dir %{_mandir}/ru/man1/
%{_mandir}/ru/man1/*
%dir %{_mandir}/pl
%dir %{_mandir}/pl/man1/
%{_mandir}/pl/man1/*
%dir %{_mandir}/ja
%dir %{_mandir}/ja/man1/
%{_mandir}/ja/man1/*
# docs and data file
%license LICENSE
%doc %{_docdir}/vim
#
%{_datadir}/vim/current
%dir %{_datadir}/vim/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/autoload/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/colors/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/compiler/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/doc/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/indent/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/keymap/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/lang/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/macros/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/pack/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/plugin/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/print/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/spell/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/syntax/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/tools/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/tutor/
%dir %{_datadir}/vim/%{VIM_SUBDIR}/skeletons/
%dir %{site_runtimepath}
%dir %{site_runtimepath}/autoload/
%dir %{site_runtimepath}/colors/
%dir %{site_runtimepath}/doc/
%dir %{site_runtimepath}/plugin/
%dir %{site_runtimepath}/syntax/
%dir %{site_runtimepath}/ftdetect/
%dir %{site_runtimepath}/after/
%dir %{site_runtimepath}/after/syntax/
%files data
# exclude common files
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/autoload/dist/ft.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/nosyntax.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/resolv.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/sh.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syncolor.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/synload.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
%exclude %{_datadir}/vim/%{VIM_SUBDIR}/syntax/vim.vim
# data files
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/*
%{_datadir}/vim/%{VIM_SUBDIR}/colors/*
%{_datadir}/vim/%{VIM_SUBDIR}/compiler/*
%{_datadir}/vim/%{VIM_SUBDIR}/doc/*
%{_datadir}/vim/%{VIM_SUBDIR}/ftplugin/*
%{_datadir}/vim/%{VIM_SUBDIR}/indent/*
%{_datadir}/vim/%{VIM_SUBDIR}/keymap/*
%{_datadir}/vim/%{VIM_SUBDIR}/lang/*
%{_datadir}/vim/%{VIM_SUBDIR}/macros/*
%{_datadir}/vim/%{VIM_SUBDIR}/pack/*
%{_datadir}/vim/%{VIM_SUBDIR}/plugin/*
%{_datadir}/vim/%{VIM_SUBDIR}/print/*
%{_datadir}/vim/%{VIM_SUBDIR}/skeletons/*
%{_datadir}/vim/%{VIM_SUBDIR}/spell/*
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/*
%{_datadir}/vim/%{VIM_SUBDIR}/tools/*
%{_datadir}/vim/%{VIM_SUBDIR}/tutor/*
%files data-common
%{_datadir}/vim/%{VIM_SUBDIR}/autoload/dist/ft.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/nosyntax.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/resolv.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/sh.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/syncolor.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/synload.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/syntax.vim
%{_datadir}/vim/%{VIM_SUBDIR}/syntax/vim.vim
%{_datadir}/vim/%{VIM_SUBDIR}/*.vim
%{_datadir}/vim/%{VIM_SUBDIR}/rgb.txt
%files -n gvim
%doc runtime/doc/gui_x11.txt
%ghost %config(missingok) %{_sysconfdir}/gvimrc
%ghost %{_sysconfdir}/alternatives/vim
%{_bindir}/vim
%{_bindir}/egview
%{_bindir}/egvim
%{_bindir}/eview
%{_bindir}/evim
%{_bindir}/gex
%{_bindir}/gvi
%{_bindir}/gview
%{_bindir}/gvim
%{_bindir}/gvimdiff
%{_bindir}/rgview
%{_bindir}/rgvim
# menu icon
%{_datadir}/applications/gvim.desktop
%{_datadir}/icons/hicolor/*/apps/gvim.*
%doc %{_docdir}/gvim
%changelog