mirror of
https://abf.rosa.ru/djam/gopls.git
synced 2025-02-23 06:13:06 +00:00
Imported from SRPM
This commit is contained in:
commit
763a52a71d
2 changed files with 39 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
gopls-0.13.0.tar.gz: 1e5333392186bba56a756b921f6411a9ae51da2f
|
37
gopls.spec
Normal file
37
gopls.spec
Normal file
|
@ -0,0 +1,37 @@
|
|||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
|
||||
Name: gopls
|
||||
Version: 0.13.0
|
||||
Release: 1
|
||||
Summary: Go language server
|
||||
URL: https://golang.org/x/tools
|
||||
Source0: https://github.com/golang/tools/archive/gopls/v%{version}/%{name}-%{version}.tar.gz
|
||||
License: BSD
|
||||
Group: Development/Other
|
||||
BuildRequires: go
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
|
||||
%description
|
||||
gopls (pronounced "Go please") is the official Go language
|
||||
server developed by the Go team. It provides IDE features
|
||||
to any LSP-compatible editor.
|
||||
|
||||
%prep
|
||||
%setup -qn tools-%{name}-v%{version}
|
||||
|
||||
%build
|
||||
pushd gopls
|
||||
go build --ldflags="-s -w" -o ../bin/%{name} .
|
||||
popd
|
||||
|
||||
upx bin/%{name}
|
||||
|
||||
%install
|
||||
install -Dm0755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%files
|
||||
%doc %{name}/README.md %{name}/doc LICENSE
|
||||
%{_bindir}/%{name}
|
||||
|
Loading…
Add table
Reference in a new issue