2023-08-01 00:07:53 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: gopls
|
2023-08-14 20:18:14 +00:00
|
|
|
Version: 0.13.2
|
2023-08-01 00:07:53 +03:00
|
|
|
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}
|
|
|
|
|