SHA256
1
0
forked from pool/neovim
neovim/neovim.spec
Ronan Chagas ac5f07f033 - Update to version 0.1.7:
* Features
    - 0213e99 PR #5561 'inccommand'
  * Fixes
    - c685879 PR #5632 SECURITY FIX
    - d28d108 CheckHealth: Fix version comparison.
    - 7be113d PR #5670 shell_write_cb: Schedule error message.
    - 1d45637 jobs: ensure calling jobclose() on a pty job sends
      SIGHUP.
    - 36c0ec6 tui/suspend_event(): set STDIN to "blocking"
    - 7a4d069, cf52b88 man.vim: avoid errors in unusual
      circumstances
    - ed19873 PR #5546 ex_global: Catch CTRL-C even if it is
      mapped.
  * Changes
    - 9147331 PR #2905 encoding: only allow encoding=utf-8
    - 5f02608 PR #5636 build: Upgrade jemalloc
    - f1fed42 PR #5567 l10n: Update Ukrainian translation

OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=10
2016-11-28 21:49:23 +00:00

118 lines
3.5 KiB
RPMSpec

#
# spec file for package neovim
#
# Copyright (c) 2016 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.1.7
Release: 0
Summary: Vim-fork focused on extensibility and agility
License: Apache-2.0
Group: Productivity/Text/Editors
Url: https://neovim.io/
Source: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: neovim.desktop
Source2: neovim.svg
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(libuv)
BuildRequires: pkgconfig(termkey)
BuildRequires: pkgconfig(unibilium)
BuildRequires: pkgconfig(vterm)
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
cp -f %{SOURCE1} neovim.desktop
cp -f %{SOURCE2} neovim.svg
# 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
%cmake \
-DLUA_PRG=%{_bindir}/lua \
-DUSE_BUNDLED=OFF \
-DLUAJIT_USE_BUNDLED=OFF \
-DENABLE_JEMALLOC=ON
make %{?_smp_mflags}
%install
%cmake_install
# Install desktop file.
install -Dpm 0644 neovim.desktop %{buildroot}/%{_datadir}/applications/neovim.desktop
# Install the icon.
install -Dpm 0644 neovim.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/neovim.svg
%suse_update_desktop_file -r neovim 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
%defattr(-,root,root)
%doc BACKERS.md CONTRIBUTING.md LICENSE README.md
%{_bindir}/nvim
%{_datadir}/nvim/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/nvim.1%{?ext_man}
%files lang -f nvim.lang
%defattr(-,root,root)
%changelog