forked from pool/neovim
Accepting request 1189348 from home:mvyskocil:branches:editors
- Update to 0.10.1 OBS-URL: https://build.opensuse.org/request/show/1189348 OBS-URL: https://build.opensuse.org/package/show/editors/neovim?expand=0&rev=153
This commit is contained in:
commit
4b0c61058b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
neovim-0.10.0.tar.gz
Normal file
3
neovim-0.10.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:372ea2584b0ea2a5a765844d95206bda9e4a57eaa1a2412a9a0726bab750f828
|
||||
size 12792034
|
3
neovim-0.10.1.tar.gz
Normal file
3
neovim-0.10.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:edce96e79903adfcb3c41e9a8238511946325ea9568fde177a70a614501af689
|
||||
size 12796966
|
2175
neovim.changes
Normal file
2175
neovim.changes
Normal file
File diff suppressed because it is too large
Load Diff
212
neovim.spec
Normal file
212
neovim.spec
Normal file
@ -0,0 +1,212 @@
|
||||
#
|
||||
# spec file for package neovim
|
||||
#
|
||||
# Copyright (c) 2024 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python3_pkgversion:%define python3_pkgversion 3}
|
||||
|
||||
%define vimplugin_dir %{_datadir}/vim/site
|
||||
# Luajit not available on all platforms
|
||||
%ifarch %{arm} %{ix86} x86_64 aarch64
|
||||
%bcond_without luajit
|
||||
%else
|
||||
%bcond_with luajit
|
||||
%endif
|
||||
|
||||
Name: neovim
|
||||
Version: 0.10.1
|
||||
Release: 0
|
||||
Summary: Vim-fork focused on extensibility and agility
|
||||
License: Apache-2.0 AND Vim AND GPL-3.0-or-later AND CC-BY-3.0
|
||||
Group: Productivity/Text/Editors
|
||||
URL: https://neovim.io/
|
||||
Source0: https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: sysinit.vim
|
||||
Source3: suse-spec-template
|
||||
Source4: spec.vim
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: filesystem
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gettext
|
||||
BuildRequires: git-core
|
||||
BuildRequires: gperf
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libtool
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: lua51-bit32
|
||||
BuildRequires: lua51-compat-5.3
|
||||
BuildRequires: lua51-lpeg
|
||||
BuildRequires: lua51-luarocks
|
||||
BuildRequires: lua51-luv
|
||||
BuildRequires: lua51-mpack
|
||||
BuildRequires: make
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: tree-sitter
|
||||
BuildRequires: tree-sitter-c
|
||||
BuildRequires: tree-sitter-lua
|
||||
BuildRequires: tree-sitter-markdown
|
||||
BuildRequires: tree-sitter-python
|
||||
BuildRequires: tree-sitter-query
|
||||
BuildRequires: tree-sitter-vim
|
||||
BuildRequires: tree-sitter-vimdoc
|
||||
BuildRequires: unzip
|
||||
BuildRequires: pkgconfig(libluv)
|
||||
BuildRequires: pkgconfig(libutf8proc)
|
||||
BuildRequires: pkgconfig(libuv) >= 1.42.0
|
||||
BuildRequires: pkgconfig(msgpack-c)
|
||||
BuildRequires: pkgconfig(termkey)
|
||||
BuildRequires: pkgconfig(tree-sitter) >= 0.20.9
|
||||
BuildRequires: pkgconfig(unibilium) >= 2.0.0
|
||||
BuildRequires: pkgconfig(vterm) >= 0.3.3
|
||||
%if %{with luajit}
|
||||
BuildRequires: pkgconfig(luajit)
|
||||
%else
|
||||
BuildRequires: lua51-BitOp
|
||||
BuildRequires: lua51-devel
|
||||
%endif
|
||||
Requires: gperf
|
||||
Requires: libvterm0 >= 0.3
|
||||
Requires: lua51-bit32
|
||||
Requires: lua51-compat-5.3
|
||||
Requires: lua51-lpeg
|
||||
Requires: lua51-luarocks
|
||||
Requires: lua51-luv
|
||||
Requires: lua51-mpack
|
||||
Requires: tree-sitter
|
||||
Requires: tree-sitter-c
|
||||
Requires: tree-sitter-lua
|
||||
Requires: tree-sitter-markdown
|
||||
Requires: tree-sitter-python
|
||||
Requires: tree-sitter-query
|
||||
Requires: tree-sitter-vim
|
||||
Requires: tree-sitter-vimdoc
|
||||
Requires: xdg-utils
|
||||
Recommends: python3-neovim
|
||||
Recommends: wl-clipboard
|
||||
Recommends: xsel
|
||||
Suggests: ripgrep
|
||||
Provides: nvim
|
||||
%lang_package
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%autosetup -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
|
||||
export CFLAGS="%{optflags} -fcommon"
|
||||
export CXXFLAGS="%{optflags} -fcommon"
|
||||
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DPREFER_LUA=%{?with_luajit:OFF}%{!?with_luajit:ON} \
|
||||
-DLUA_PRG=%{_bindir}/%{?with_luajit:luajit}%{!?with_luajit:lua} \
|
||||
%if %{with luajit}
|
||||
-DLUAJIT_INCLUDE_DIR:PATH=%(pkg-config --cflags-only-I luajit|cut -c 3-) \
|
||||
%endif
|
||||
-DUSE_BUNDLED=OFF -DLUAJIT_USE_BUNDLED=OFF \
|
||||
-DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_COLOR_MAKEFILE=OFF -DLTO_ENABLE=ON \
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="$opts" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DLIBLUV_INCLUDE_DIR:PATH=%{lua_incdir}
|
||||
|
||||
%make_build
|
||||
|
||||
%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
|
||||
|
||||
# install SUSE specific spec template
|
||||
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/nvim/template.spec
|
||||
install -p -m 644 %{SOURCE4} %{buildroot}%{_datadir}/nvim/runtime/plugin/spec.vim
|
||||
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
|
||||
runtime/nvim.desktop
|
||||
install -d -m0755 %{buildroot}%{_datadir}/pixmaps
|
||||
install -m0644 runtime/nvim.png %{buildroot}%{_datadir}/pixmaps/nvim.png
|
||||
|
||||
# Fix exec bits
|
||||
find %{buildroot}%{_datadir} \( -name \*.bat -o -name \*.awk \) \
|
||||
-print -exec chmod -x '{}' \;
|
||||
|
||||
# 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
|
||||
|
||||
# let's make tree-sitter grammars visible to neovim
|
||||
install -d %{buildroot}%{_datadir}/nvim/runtime/parser
|
||||
for i in c lua markdown python query vim vimdoc; do
|
||||
ln -s %{_libdir}/libtree-sitter-$i.so %{buildroot}%{_datadir}/nvim/runtime/parser/$i.so;
|
||||
done
|
||||
ln -s %{_libdir}/libtree-sitter-markdown-inline.so %{buildroot}%{_datadir}/nvim/runtime/parser/markdown_inline.so
|
||||
|
||||
# We have to have rpath
|
||||
# https://en.opensuse.org/openSUSE:Packaging_checks
|
||||
export NO_BRP_CHECK_RPATH=true
|
||||
|
||||
%files
|
||||
%doc CONTRIBUTING.md README.md
|
||||
%docdir %{_mandir}
|
||||
%license LICENSE.txt
|
||||
%{_bindir}/nvim
|
||||
%{_mandir}/man?/nvim.1%{?ext_man}
|
||||
%dir %{_datadir}/nvim
|
||||
%{_datadir}/nvim/sysinit.vim
|
||||
%{_datadir}/nvim/template.spec
|
||||
%{_datadir}/nvim/runtime/
|
||||
%{_datadir}/applications/*
|
||||
%{_datadir}/pixmaps/*
|
||||
%{_datadir}/icons/*
|
||||
%dir %{_sysconfdir}/nvim
|
||||
%config(noreplace) %{_sysconfdir}/nvim/sysinit.vim
|
||||
%dir %{_datadir}/vim
|
||||
%dir %{vimplugin_dir}
|
||||
%dir %{vimplugin_dir}/after
|
||||
%dir %{vimplugin_dir}/after/*
|
||||
%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
|
40
spec.vim
Normal file
40
spec.vim
Normal file
@ -0,0 +1,40 @@
|
||||
if exists("loaded_spec") || &cp
|
||||
finish
|
||||
endif
|
||||
let loaded_spec = 1
|
||||
|
||||
function! SKEL_spec()
|
||||
0r /usr/share/vim/current/skeletons/skeleton.spec
|
||||
language time en_US
|
||||
if $USER != ''
|
||||
let login = $USER
|
||||
elseif $LOGNAME != ''
|
||||
let login = $LOGNAME
|
||||
else
|
||||
let login = 'unknown'
|
||||
endif
|
||||
let newline = stridx(login, "\n")
|
||||
if newline != -1
|
||||
let login = strpart(login, 0, newline)
|
||||
endif
|
||||
if $HOSTNAME != ''
|
||||
let hostname = $HOSTNAME
|
||||
else
|
||||
let hostname = system('hostname -f')
|
||||
if v:shell_error
|
||||
let hostname = 'localhost'
|
||||
endif
|
||||
endif
|
||||
let newline = stridx(hostname, "\n")
|
||||
if newline != -1
|
||||
let hostname = strpart(hostname, 0, newline)
|
||||
endif
|
||||
exe "%s/specCURRENT_YEAR/" . strftime("%Y") . "/ge"
|
||||
exe "%s/specRPM_CREATION_DATE/" . strftime("%a\ %b\ %d\ %Y") . "/ge"
|
||||
exe "%s/specRPM_CREATION_AUTHOR_MAIL/" . login . "@" . hostname . "/ge"
|
||||
exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge"
|
||||
setf spec
|
||||
endfunction
|
||||
|
||||
" Skeleton for spec files
|
||||
autocmd BufNewFile *.spec call SKEL_spec()
|
48
suse-spec-template
Normal file
48
suse-spec-template
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# spec file for package specRPM_CREATION_NAME
|
||||
#
|
||||
# Copyright (c) specCURRENT_YEAR 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: specRPM_CREATION_NAME
|
||||
Version:
|
||||
Release: 0
|
||||
Summary:
|
||||
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
|
||||
License:
|
||||
URL:
|
||||
Source0:
|
||||
BuildRequires:
|
||||
|
||||
%description
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%post
|
||||
%postun
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md ChangeLog
|
||||
|
||||
%changelog
|
10
sysinit.vim
Normal file
10
sysinit.vim
Normal file
@ -0,0 +1,10 @@
|
||||
" In order for neovim to use installed plugins shared with vim
|
||||
set runtimepath+=/usr/share/vim/site
|
||||
|
||||
augroup Fedora
|
||||
autocmd!
|
||||
" RPM spec file template
|
||||
autocmd BufNewFile *.spec silent! 0read /usr/share/nvim/template.spec
|
||||
augroup END
|
||||
|
||||
" vim: et ts=2 sw=2
|
Loading…
Reference in New Issue
Block a user