1914389740
- Update to version 0.3.5: Maintenance release to fix issues found in v0.3.4: * f891131 #9894 options: properly reset directories on 'autochdir' * 9a5488c Remove MSVC optimization workaround for SHM_ALL * 1793ba8 Make SHM_ALL to a variable instead of a compound literal #define * 947069b doc: mention "pynvim" module rename * 46c7e12 #9629 screen: don't crash when drawing popupmenu with 'rightleft' option * f1843c0 vim-patch:8.1.0677: look-behind match may use the wrong line number * 1204421 #8325 :terminal : set topline based on window height * aaa8c3d #9504 :recover : Fix crash on non-existent *.swp OBS-URL: https://build.opensuse.org/request/show/699426 OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=52
167 lines
5.0 KiB
RPMSpec
167 lines
5.0 KiB
RPMSpec
#
|
|
# spec file for package neovim
|
|
#
|
|
# Copyright (c) 2019 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.5
|
|
Release: 0
|
|
Summary: Vim-fork focused on extensibility and agility
|
|
License: Apache-2.0 AND Vim
|
|
Group: Productivity/Text/Editors
|
|
URL: https://neovim.io/
|
|
Source0: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Source1: sysinit.vim
|
|
Source2: spec-template
|
|
Source3: suse-spec-template
|
|
Source99: neovim-rpmlintrc
|
|
# PATCH-FIX-OPENSUSE neovim.patch mcepl@cepl.eu
|
|
Patch0: neovim.patch
|
|
# PATCH-FIX-OPENSUSE neovim-0.1.7-bitop.patch mcepl@cepl.eu build with old Lua with external bit module
|
|
Patch1: neovim-0.1.7-bitop.patch
|
|
# fix build issue on ppc64
|
|
Patch2: neovim-0.2.0-gcc-prototype.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: filesystem
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gettext
|
|
BuildRequires: git-core
|
|
BuildRequires: gperf
|
|
BuildRequires: libtool
|
|
BuildRequires: lua51-LPeg
|
|
BuildRequires: lua51-bit32
|
|
BuildRequires: lua51-luajit-devel
|
|
BuildRequires: lua51-luarocks
|
|
BuildRequires: lua51-mpack
|
|
BuildRequires: make
|
|
BuildRequires: msgpack-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: unzip
|
|
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: gperf
|
|
Requires(post): desktop-file-utils
|
|
Requires(postun): desktop-file-utils
|
|
Recommends: xsel
|
|
%if 0%{?suse_version} < 1330
|
|
BuildRequires: hicolor-icon-theme
|
|
Requires(post): gtk3-tools
|
|
Requires(postun): gtk3-tools
|
|
%endif
|
|
|
|
%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
|
|
|
|
%define vimplugin_dir %{_datadir}/vim/site
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
# 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 \
|
|
-DUSE_BUNDLED=OFF \
|
|
-DLUAJIT_USE_BUNDLED=OFF \
|
|
-DENABLE_JEMALLOC=ON \
|
|
-Wno-dev
|
|
%make_jobs
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# system-wide configuration file
|
|
install -D -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/nvim/sysinit.vim
|
|
ln -sf %{_sysconfdir}/nvim/sysinit.vim %{buildroot}%{_datadir}/nvim/sysinit.vim
|
|
|
|
%if 0%{?suse_version}
|
|
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/nvim/template.spec
|
|
%else
|
|
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/nvim/template.spec
|
|
%endif
|
|
|
|
%suse_update_desktop_file -r nvim ConsoleOnly Application Utility TextEditor
|
|
|
|
# vim/site directories for plugins shared with vim
|
|
mkdir -p %{buildroot}%{vimplugin_dir}/{after,after/syntax,autoload,colors,doc,ftdetect,plugin,syntax}
|
|
|
|
%fdupes %{buildroot}%{_datadir}/
|
|
%find_lang nvim
|
|
|
|
%if 0%{?suse_version} < 1330
|
|
%post
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1330
|
|
%postun
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
%endif
|
|
|
|
%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}
|
|
%dir %{_sysconfdir}/nvim
|
|
%config(noreplace) %{_sysconfdir}/nvim/sysinit.vim
|
|
%dir %{_datadir}/vim
|
|
%dir %{vimplugin_dir}/
|
|
%dir %{vimplugin_dir}/after
|
|
%dir %{vimplugin_dir}/after/syntax
|
|
%dir %{vimplugin_dir}/autoload
|
|
%dir %{vimplugin_dir}/colors
|
|
%dir %{vimplugin_dir}/doc
|
|
%dir %{vimplugin_dir}/ftdetect
|
|
%dir %{vimplugin_dir}/plugin
|
|
%dir %{vimplugin_dir}/syntax
|
|
|
|
%files lang -f nvim.lang
|
|
|
|
%changelog
|