]> git.pld-linux.org Git - packages/gopls.git/blame - gopls.spec
up to 0.12.2
[packages/gopls.git] / gopls.spec
CommitLineData
a12f6c27 1%define vendor_version 0.12.2
6ed56adf
JP
2
3Summary: Official Go language server developed by the Go team
4Name: gopls
a12f6c27 5Version: 0.12.2
6ed56adf
JP
6Release: 1
7License: BSD
8Group: Development/Tools
9Source0: https://github.com/golang/tools/archive/gopls/v%{version}/%{name}-%{version}.tar.gz
a12f6c27 10# Source0-md5: 76ff68c87ab64ad1140382e77d6722ab
6ed56adf 11Source1: %{name}-vendor-%{vendor_version}.tar.xz
a12f6c27 12# Source1-md5: c15d029d1e15e64b659ed1a40f5dae28
6ed56adf
JP
13URL: https://pkg.go.dev/golang.org/x/tools/gopls
14BuildRequires: golang >= 1.18
15BuildRequires: rpmbuild(macros) >= 2.009
16BuildRequires: tar >= 1:1.22
17BuildRequires: xz
18ExclusiveArch: %go_arches
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _debugsource_packages 0
22
23%description
24gopls (pronounced "Go please") is the official Go language server
25developed by the Go team. It provides IDE features to any
26LSP-compatible editor.
27
28%prep
29%setup -q -n tools-%{name}-v%{version} -a1
30
31%{__mkdir} .go-cache
32
33%build
34cd gopls
35%__go build -v -mod=vendor -o target/gopls
36
37%install
38rm -rf $RPM_BUILD_ROOT
39
40install -d $RPM_BUILD_ROOT%{_bindir}
41
42cp -p gopls/target/gopls $RPM_BUILD_ROOT%{_bindir}/gopls
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46%files
47%defattr(644,root,root,755)
48%doc gopls/doc/*.md gopls/README.md
49%attr(755,root,root) %{_bindir}/gopls
This page took 0.153976 seconds and 4 git commands to generate.