commit 763a52a71d0f589be21a99f33a2f13d8a26cace1 Author: Sergey Zhemoytel Date: Tue Aug 1 00:07:53 2023 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..cba4e24 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + gopls-0.13.0.tar.gz: 1e5333392186bba56a756b921f6411a9ae51da2f diff --git a/gopls.spec b/gopls.spec new file mode 100644 index 0000000..a3376f9 --- /dev/null +++ b/gopls.spec @@ -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} +