Accepting request 1135011 from home:uncomfyhalomacro

I want to add efm-langserver to editors.

OBS-URL: https://build.opensuse.org/request/show/1135011
OBS-URL: https://build.opensuse.org/package/show/editors/efm-langserver?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2023-12-25 08:48:14 +00:00 committed by Git OBS Bridge
commit 302a9d289d
6 changed files with 89 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db9ff85f5eba5439f771488434bb9f4fe93e724094189cac3a536539e7ec1e3e
size 49233

4
efm-langserver.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Dec 25 01:40:29 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Initial spec for efm-langserver 0.0.49

55
efm-langserver.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package efm-langserver
#
# Copyright (c) 2023 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: efm-langserver
Version: 0.0.49
Release: 0
Summary: General purpose language server
License: MIT
URL: https://github.com/mattn/efm-langserver
Source0: https://github.com/mattn/efm-langserver/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: c_compiler
BuildRequires: zstd
BuildRequires: golang(API) >= 1.20
%description
General purpose Language Server that can use specified error message format generated from specified command e.g.
using linters and other tooling that supports the LSP specification.
%prep
%setup -qa1
%build
%ifarch ppc64
BUILDMOD=""
%else
BUILDMOD="-buildmode=pie"
%endif
export RPM_OPT_FLAGS="%{optflags}"
go build -v -x -mod=vendor $BUILDMOD -a -ldflags "-s -X main.version=%{version} -X main.revision=%{version}" -o %{name}
%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%license LICENSE
%doc README.md
%changelog

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff441aad662f378c496652a5d57f6cfb7707999a2a2e79b3799b51d3f75201f7
size 96110