Accepting request 1061407 from home:gladiac:branches:devel:languages:lua

- Update to version 3.6.7:
  * https://github.com/sumneko/lua-language-server/blob/3.6.7/changelog.md
    or packaged changelog.md
- Fixed setting CFLAGS and LDFLAGS
- Added %check section
- Moved lua-language-server binary to /usr/libexec

OBS-URL: https://build.opensuse.org/request/show/1061407
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=27
This commit is contained in:
2023-01-27 13:43:00 +00:00
committed by Git OBS Bridge
parent ce91409c89
commit b5c3a86d72
9 changed files with 33 additions and 21 deletions

BIN
3.5.6.tar.gz LFS

Binary file not shown.

BIN
3.6.7.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -2,9 +2,9 @@
## Prerequisites:
You need the `tar_scm` obs service installed:
You need the `tar_scm` and `download_url` obs service installed:
zypper in obs-service-tar_scm
zypper in obs-service-tar_scm obs-service-download_url
## Updating to a new version from upstream

View File

@@ -4,14 +4,14 @@
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">16f4d9c</param>
<param name="revision">8da1d0d2158d73934b7c4af0a1e691fc1d58c639</param>
<param name="versionrewrite-pattern">(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="download_url" mode="disabled">
<param name="protocol">https</param>
<param name="host">github.com</param>
<param name="path">sumneko/lua-language-server/releases/download/3.5.6/lua-language-server-3.5.6-submodules.zip</param>
<param name="path">sumneko/lua-language-server/releases/download/3.6.7/lua-language-server-3.6.7-submodules.zip</param>
</service>
<service name="tar" mode="disabled" />
<service name="recompress" mode="disabled">

Binary file not shown.

Binary file not shown.

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jan 26 18:50:47 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
- Update to version 3.6.7:
* https://github.com/sumneko/lua-language-server/blob/3.6.7/changelog.md
or packaged changelog.md
- Added %check section
- Moved lua-language-server binary to /usr/libexec
-------------------------------------------------------------------
Sat Sep 24 10:17:33 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-language-server
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2021 Andreas Schneider <asn@cryptomilk.org>
#
# All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
Name: lua-language-server
Version: 3.5.6
Version: 3.6.7
Release: 0
Summary: Lua Language Server coded by Lua
License: MIT
@@ -49,11 +49,11 @@ export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
./3rd/luamake/luamake rebuild
./3rd/luamake/luamake all
%install
install -d -m 0755 %{buildroot}%{_libdir}/%{name}
cp -av bin/* %{buildroot}%{_libdir}/%{name}
install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
cp -av bin/* %{buildroot}%{_libexecdir}/%{name}
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
cp -av \
@@ -65,16 +65,19 @@ cp -av \
%{buildroot}%{_datadir}/%{name}/
install -d -m 0755 %{buildroot}%{_bindir}
sed -e 's#@LIBDIR@#%{_libdir}#' %{SOURCE2} > %{buildroot}%{_bindir}/%{name}
sed -e 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE2} > %{buildroot}%{_bindir}/%{name}
chmod 0755 %{buildroot}%{_bindir}/%{name}
%fdupes %{buildroot}%{_libdir}/%{name}
%fdupes %{buildroot}%{_libexecdir}/%{name}
%check
./3rd/luamake/luamake bee-test unit-test
%files
%license LICENSE
%doc README.md
%doc README.md changelog.md
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_datadir}/%{name}/
%changelog

View File

@@ -1,12 +1,12 @@
#!/bin/sh
cd /usr/share/lua-language-server/
cd /usr/share/lua-language-server/ || exit 1
TMPPATH=$(mktemp -d "/tmp/lua-language-server.XXXX")
DEFAULT_LOGPATH="${TMPPATH}/log"
DEFAULT_METAPATH="${TMPPATH}/meta"
exec @LIBDIR@/lua-language-server/lua-language-server \
exec @LIBEXECDIR@/lua-language-server/lua-language-server \
-E ./main.lua \
--logpath="${DEFAULT_LOGPATH}" \
--metapath="${DEFAULT_METAPATH}" \