## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/golang/tools %global goipath golang.org/x/tools/gopls %global forgeurl https://github.com/golang/tools # We need a bumped epoch to match the original conjoined golang-x-tools. Epoch: 1 Version: 0.15.2 %global tag gopls/v0.15.2 %{lua: rpm.define("safe_tag " .. string.gsub(rpm.expand("%tag"), "/", "-"))} %global distprefix %{nil} %gometa -L -f %global common_description %{expand: gopls (pronounced "Go please") is the official Go language server developed by the Go team. It provides IDE features to any LSP-compatible editor. You should not need to interact with gopls directly--it will be automatically integrated into your editor. The specific features and settings vary slightly by editor, so we recommend that you proceed to the documentation for your editor.} %global golicenses LICENSE PATENTS %global godocs CONTRIBUTING.md gopls/README.md Name: golang-x-tools-gopls Release: %autorelease Summary: gopls, the Go language server License: BSD-3-Clause URL: %{gourl} Source: %{gosource} Patch: 0001-Skip-tests-that-require-module-mode.patch Patch: https://github.com/golang/tools/commit/a6c03c86fe37d3a870a08c8814c242a6a4105726.patch %description %{common_description} %prep %goprep %autopatch -p1 # Created by goprep, but with the wrong path, so re-create it. rm -r _build/src/golang.org/x/tools # mkdir -p _build/src/golang.org/x ln -fs %{_builddir}/tools-%{safe_tag} _build/src/golang.org/x/tools %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/gopls %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck -t internal/cmd -t internal/lsp/cache -t internal/telemetry %endif %files %license LICENSE PATENTS %doc CONTRIBUTING.md gopls/README.md %{_bindir}/gopls %changelog ## START: Generated by rpmautospec * Mon Apr 01 2024 Elliott Sales de Andrade - 1:0.15.2-1 - Uncommitted changes * Tue Feb 20 2024 Elliott Sales de Andrade - 1:0.12.4-1 - Initial commit ## END: Generated by rpmautospec