neovim/neovim.spec
Ronan Chagas caf6ba52d2 Accepting request 624577 from home:Ronis_BR
- Update to version 0.3.1:
  * Features
    - 07499a8 #8709 man.vim: C highlighting for EXAMPLES section
    - 07f82ad #8699 TUI: urxvt: also send xterm focus-reporting
      seqs
    - 40911e4 #8616 API: emit nvim_buf_lines_event from :terminal
    - c46997a #8546 fillchars: Add "eob" flag
  * Fixes
    - 74d19f6 #8576 startup: avoid blank stdin buffer if other
      files were opened
    - 4874214 #8737 Only waitpid() for processes that we care about
    - cd6e7e8 #8743 Check all child processes for exit in SIGCHLD
      handler
    - c230ef2 #8746 channel.c: Prevent channel_destroy_early() from
      freeing uninitialized rpc stuff
    - 0ed8b12 #8681 transstr_buf: fix length comparison
    - d241f27 #8708 TUI: Fix standout mode
    - 9afed40 #8698 man.vim: fix for mandoc
    - e889640 #8682 provider/node: npm --loglevel silent
    - 1cbc830 #8613 API: nvim_win_set_cursor: set curswant
    - bf6048e #8628 checkhealth: Python: fix VIRTUAL_ENV check
    - 3cc3506 #8528 checkhealth: node.js: also search yarn
  * Changes
    - b751449 #8619 defaults: shortmess+=F
    - 1248178 #8578 highlight: high-priority CursorLine if fg is
      set.
    - 01570f1 #8726 terminal: handle &confirm and :confirm on
      unloading
    - 56065bb #8721 screen: truncate showmode messages
    - bf2460e #7551 buffer: fix copying :setlocal options
    - c1c14fa #8520 Ex mode: always "improved" (gQ)
    - 050f397 #7992 options: remove 'maxcombine` option (always 6)
  * Internal
    - 463da84 #7992 screen: use UTF-8 representation

OBS-URL: https://build.opensuse.org/request/show/624577
OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=33
2018-07-22 18:42:26 +00:00

112 lines
3.3 KiB
RPMSpec

#
# spec file for package neovim
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: neovim
Version: 0.3.1
Release: 0
Summary: Vim-fork focused on extensibility and agility
License: Apache-2.0 AND Vim
Group: Productivity/Text/Editors
Url: https://neovim.io/
Source: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: hicolor-icon-theme
BuildRequires: libmsgpack-devel >= 1.2.0
BuildRequires: libmsgpackc-devel >= 1.2.0
BuildRequires: lua51-BitOp
BuildRequires: lua51-LPeg
BuildRequires: lua51-mpack
BuildRequires: luajit-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(libnsl)
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(termkey) >= 0.20
BuildRequires: pkgconfig(unibilium)
BuildRequires: pkgconfig(vterm)
%requires_eq libtermkey1
Recommends: %{name}-lang
Recommends: python-neovim
Recommends: python3-neovim
Recommends: xsel
%description
Neovim is a refactor - and sometimes redactor - in the tradition of
Vim, which itself derives from Stevie. It is not a rewrite, but a
continuation and extension of Vim. Many rewrites, clones, emulators
and imitators exist; some are very clever, but none are Vim. Neovim
strives to be a superset of Vim, notwithstanding some intentionally
removed misfeatures; excepting those few and carefully-considered
excisions, Neovim is Vim. It is built for users who want the good
parts of Vim, without compromise, and more.
%lang_package
%prep
%setup -q
# Remove __DATE__ and __TIME__.
BUILD_TIME=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{H}:%{M}')
BUILD_DATE=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{b} %{d} %{Y}')
sed -i "s/__TIME__/\"$BUILD_TIME\"/" $(grep -rl '__TIME__')
sed -i "s/__DATE__/\"$BUILD_DATE\"/" $(grep -rl '__DATE__')
%build
# set vars to make build reproducible in spite of config/CMakeLists.txt
HOSTNAME=OBS
USERNAME=OBS
%cmake \
-DLUA_PRG=%{_bindir}/lua \
-DUSE_BUNDLED=OFF \
-DLUAJIT_USE_BUNDLED=OFF \
-DENABLE_JEMALLOC=ON
make %{?_smp_mflags}
%install
%cmake_install
%suse_update_desktop_file -r nvim ConsoleOnly Application Utility TextEditor
%fdupes %{buildroot}%{_datadir}/
%find_lang nvim
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%doc BACKERS.md CONTRIBUTING.md README.md
%license LICENSE
%{_bindir}/nvim
%{_datadir}/nvim/
%{_datadir}/applications/nvim.desktop
%{_datadir}/pixmaps/nvim.png
%{_mandir}/man1/nvim.1%{?ext_man}
%files lang -f nvim.lang
%changelog