12
0
Files
lua-language-server/lua-language-server.spec
Ana Guerrero 07d723840e Accepting request 1295151 from devel:languages:lua
- Update to 3.15.0:
  - [fix] Linux debugging server not starting by @jpeletier
  - feat: support hex color with # by @seblyng
  - Fix gcc15 build by @CppCXY
  - docs: add missing locale. by @qwertycxz
  - Support Custom Addons Path for Enhanced Editor Flexibility by
    @IronBlood
  - Prevent class methods from triggering missing fields
    diagnostics (Fixes #3175) by @CWood-sdf
  - fix: large unions no longer erroneously fail to match later
    variants by @DoubleThoughtTheProgrammer
  - Traditional Chinese translation by @AlexCai2019
- Switch to storing upstream soruces as a tarball … saving 60MB
  on each version is just too much to overlook.

- update to 3.14.0:
  * feat: provide ES localisation
  * Diagnostics for unnecessary assert
  * fix: return empty response to textDocument/formatting if no changes
  * fix: return empty response to textDocument/completion if completion
    disabled
- move tests to a bcond_with condition, as they are very flaky, even
  on x86_64, most of the time it runs on second try, sometimes 5+

OBS-URL: https://build.opensuse.org/request/show/1295151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-language-server?expand=0&rev=21
2025-07-23 14:34:17 +00:00

77 lines
2.1 KiB
RPMSpec

#
# spec file for package lua-language-server
#
# Copyright (c) 2025 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/
#
%bcond_with tests
Name: lua-language-server
Version: 3.15.0
Release: 0
Summary: Lua Language Server coded by Lua
License: MIT
URL: https://github.com/LuaLS/lua-language-server
Source0: %{name}-%{version}.tar.gz
Source1: lua-lsp-launcher.sh
Source99: README.suse-maint.md
BuildRequires: c++_compiler
BuildRequires: ninja
%description
This package provides a Language Server Protocol (LSP) implementation for Lua.
%prep
%autosetup -p1
install -m 644 %{SOURCE99} .
%build
export CXXFLAGS="%{optflags}"
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
./3rd/luamake/luamake all
%install
install -Dm0755 bin/%{name} %{buildroot}%{_libexecdir}/%{name}/%{name}
install -Dm0644 bin/main.lua %{buildroot}%{_libexecdir}/%{name}/main.lua
install -d %{buildroot}%{_datadir}/%{name}
cp -av \
debugger.lua \
main.lua \
locale \
script \
meta \
%{buildroot}%{_datadir}/%{name}/
install -d %{buildroot}%{_bindir}
sed -e 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE1} > %{buildroot}%{_bindir}/%{name}
chmod 0755 %{buildroot}%{_bindir}/%{name}
%if %{with tests}
#tests are very flaky on all arches
%check
./3rd/luamake/luamake unit-test
%endif
%files
%license LICENSE
%doc README.md changelog.md README.suse-maint.md
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/%{name}
%changelog