forked from pool/lua-language-server
- Update to version 3.0.0: * fix(completion): push (#1022) to 3.0 by @kevinhwang91 in #1026 * fixed #976 by @xiyaowong in #983 * Ensure that a completion result has 'isIncomplete' by @yoshi1123 in #995 * update meta basic.lua by @fesily in #1004 * fix(semantic-tokens): coreect token type priority by @kevinhwang91 in #1009 * Event emitter support fix by @Cassolette in #1011 * fix meta debuginfo in jit version by @fesily in #1007 * chore(editorconfig): use lf for end_of_line by @kevinhwang91 in #1010 * feat(completion): truncate arguments for callSnippet by @kevinhwang91 in #1014 * fix(completion): use args table instead of args string to parse snippet by @kevinhwang91 in #1016 * fix(completion): avoid unnecessary file sep as trigger chars by @kevinhwang91 in #1017 * fix(completion): limit extra lines by @kevinhwang91 in #1019 * fix(files): check uri whether equal or not by @kevinhwang91 in #1020 * chore(postfix): pretty postfix description by @kevinhwang91 in #1021 * feat(completion): use Lua code as snippet description by @kevinhwang91 in #1022 * FIX #1023 by @CppCXY in #1024 OBS-URL: https://build.opensuse.org/request/show/968306 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=16
79 lines
2.3 KiB
RPMSpec
79 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package lua-language-server
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2021 Andreas Schneider <asn@cryptomilk.org>
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define pkg_name lua-language-server
|
|
|
|
Name: lua-language-server
|
|
Version: 3.0.0
|
|
Release: 0
|
|
Summary: Lua Language Server coded by Lua
|
|
License: MIT
|
|
URL: https://github.com/sumneko/lua-language-server
|
|
# Checkout from git is required because of gh#sumneko/lua-language-server#878
|
|
# Source0: %%{name}-%%{version}.tar.gz
|
|
Source0: https://github.com/sumneko/%{pkg_name}/releases/download/%{version}/%{pkg_name}-%{version}-submodules.zip
|
|
Source1: lua-lsp-launcher.sh
|
|
Source2: README.suse-maint.md
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: ninja
|
|
BuildRequires: unzip
|
|
ExcludeArch: s390x ppc64le ppc64
|
|
|
|
%description
|
|
This package provides a Language Server Protocol (LSP) implementation for Lua.
|
|
|
|
%prep
|
|
%autosetup -p1 -c
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
|
./3rd/luamake/luamake rebuild
|
|
|
|
%install
|
|
install -d -m 0755 %{buildroot}%{_libdir}/%{name}
|
|
cp -av bin/* %{buildroot}%{_libdir}/%{name}
|
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
|
cp -av \
|
|
debugger.lua \
|
|
main.lua \
|
|
locale \
|
|
script \
|
|
meta \
|
|
%{buildroot}%{_datadir}/%{name}/
|
|
|
|
install -d -m 0755 %{buildroot}%{_bindir}
|
|
sed -e 's#@LIBDIR@#%{_libdir}#' %{SOURCE1} > %{buildroot}%{_bindir}/%{name}
|
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
%fdupes %{buildroot}%{_libdir}/%{name}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_libdir}/%{name}/
|
|
%{_datadir}/%{name}/
|
|
|
|
%changelog
|