forked from pool/lua-language-server
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:
parent
ce91409c89
commit
b5c3a86d72
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8370df4cac05677028cff36743795b3d63be2a1d033e8b7d16c8d553563c2ee7
|
|
||||||
size 3133740
|
|
3
3.6.7.tar.gz
Normal file
3
3.6.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:23813deabe59f105f440410b3c9a59b616d5bbbf5ae784617af4c95499848aae
|
||||||
|
size 3289636
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
## Prerequisites:
|
## 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
|
## Updating to a new version from upstream
|
||||||
|
|
||||||
|
4
_service
4
_service
@ -4,14 +4,14 @@
|
|||||||
<param name="versionformat">@PARENT_TAG@</param>
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="exclude">.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-pattern">(.*)</param>
|
||||||
<param name="versionrewrite-replacement">\1</param>
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="download_url" mode="disabled">
|
<service name="download_url" mode="disabled">
|
||||||
<param name="protocol">https</param>
|
<param name="protocol">https</param>
|
||||||
<param name="host">github.com</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>
|
||||||
<service name="tar" mode="disabled" />
|
<service name="tar" mode="disabled" />
|
||||||
<service name="recompress" mode="disabled">
|
<service name="recompress" mode="disabled">
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e93879645e8fd7de8b434f8db4825e29960806805f1612f34765a359251e1059
|
|
||||||
size 30682527
|
|
3
lua-language-server-3.6.7-submodules.zip
Normal file
3
lua-language-server-3.6.7-submodules.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ba0489a3dae507781e4b957cecc1a2accac5a0a2a543dd5fe09e69bb41e5114a
|
||||||
|
size 32326158
|
@ -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>
|
Sat Sep 24 10:17:33 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lua-language-server
|
# 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>
|
# Copyright (c) 2021 Andreas Schneider <asn@cryptomilk.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: lua-language-server
|
Name: lua-language-server
|
||||||
Version: 3.5.6
|
Version: 3.6.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Lua Language Server coded by Lua
|
Summary: Lua Language Server coded by Lua
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -49,11 +49,11 @@ export CFLAGS="%{optflags}"
|
|||||||
export CXXFLAGS="%{optflags}"
|
export CXXFLAGS="%{optflags}"
|
||||||
|
|
||||||
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
||||||
./3rd/luamake/luamake rebuild
|
./3rd/luamake/luamake all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 0755 %{buildroot}%{_libdir}/%{name}
|
install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
|
||||||
cp -av bin/* %{buildroot}%{_libdir}/%{name}
|
cp -av bin/* %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -av \
|
cp -av \
|
||||||
@ -65,16 +65,19 @@ cp -av \
|
|||||||
%{buildroot}%{_datadir}/%{name}/
|
%{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_bindir}
|
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}
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
%fdupes %{buildroot}%{_libdir}/%{name}
|
%fdupes %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
./3rd/luamake/luamake bee-test unit-test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md changelog.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_libdir}/%{name}/
|
%{_libexecdir}/%{name}/
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd /usr/share/lua-language-server/
|
cd /usr/share/lua-language-server/ || exit 1
|
||||||
|
|
||||||
TMPPATH=$(mktemp -d "/tmp/lua-language-server.XXXX")
|
TMPPATH=$(mktemp -d "/tmp/lua-language-server.XXXX")
|
||||||
DEFAULT_LOGPATH="${TMPPATH}/log"
|
DEFAULT_LOGPATH="${TMPPATH}/log"
|
||||||
DEFAULT_METAPATH="${TMPPATH}/meta"
|
DEFAULT_METAPATH="${TMPPATH}/meta"
|
||||||
|
|
||||||
exec @LIBDIR@/lua-language-server/lua-language-server \
|
exec @LIBEXECDIR@/lua-language-server/lua-language-server \
|
||||||
-E ./main.lua \
|
-E ./main.lua \
|
||||||
--logpath="${DEFAULT_LOGPATH}" \
|
--logpath="${DEFAULT_LOGPATH}" \
|
||||||
--metapath="${DEFAULT_METAPATH}" \
|
--metapath="${DEFAULT_METAPATH}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user