# Generated by go2rpm %bcond_without check # https://github.com/golang/tools %global goipath golang.org/x/tools %global forgeurl https://github.com/golang/tools Version: 0.1.12 %gometa %global common_description %{expand: This package holds the source for various tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go guru and the test coverage tool, can be fetched with go get. Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.} %global golicenses LICENSE PATENTS %global godocs CONTRIBUTING.md README.md %global commands benchcmp bundle callgraph compilebench cover digraph eg fiximports getgo go-contrib-init godex godoc goimports gomvpkg gorename gotype goyacc guru html2article present splitdwarf ssadump stress stringer toolstash Name: %{goname} Release: %mkrel 2 Summary: Various packages and tools that support the Go programming language Group: Development/Other # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang-tests BuildRequires: golang(github.com/jba/printsrc) BuildRequires: golang(github.com/sergi/go-diff/diffmatchpatch) BuildRequires: golang(github.com/yuin/goldmark) BuildRequires: golang(github.com/yuin/goldmark/ast) BuildRequires: golang(github.com/yuin/goldmark/parser) BuildRequires: golang(github.com/yuin/goldmark/renderer/html) BuildRequires: golang(github.com/yuin/goldmark/text) BuildRequires: golang(golang.org/x/mod/modfile) BuildRequires: golang(golang.org/x/mod/module) BuildRequires: golang(golang.org/x/mod/semver) BuildRequires: golang(golang.org/x/net/context/ctxhttp) BuildRequires: golang(golang.org/x/net/html) BuildRequires: golang(golang.org/x/net/html/atom) BuildRequires: golang(golang.org/x/net/websocket) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(golang.org/x/sys/execabs) BuildRequires: golang(golang.org/x/text/unicode/runenames) BuildRequires: golang(golang.org/x/vuln/client) BuildRequires: golang(golang.org/x/vuln/osv) BuildRequires: golang(golang.org/x/vuln/vulncheck) BuildRequires: golang(honnef.co/go/tools/analysis/lint) BuildRequires: golang(honnef.co/go/tools/quickfix) BuildRequires: golang(honnef.co/go/tools/simple) BuildRequires: golang(honnef.co/go/tools/staticcheck) BuildRequires: golang(honnef.co/go/tools/stylecheck) BuildRequires: golang(mvdan.cc/gofumpt/format) BuildRequires: golang(mvdan.cc/xurls) %if %{with_check} BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts) %endif %description %{common_description} %package -n golang-godoc Summary: Documentation tool for the Go programming language Epoch: 1 Obsoletes: golang-godoc = 1.1.2 %description -n golang-godoc Godoc extracts and generates documentation for Go programs. %package -n golang-gotype Summary: Go programming language source code analysis tool %description -n golang-gotype The gotype command, like the front-end of a Go compiler, parses and type-checks a single Go package. Errors are reported if the analysis fails; otherwise gotype is quiet (unless -v is set). %package -n golang-html2article Summary: Tool for creating articles from HTML files %description -n golang-html2article This program takes an HTML file and outputs a corresponding article file in present format. See: golang.org/x/tools/present %package callgraph Summary: Tool for reporting the call graph of a Go program %description callgraph %{summary}. %package compilebench Summary: Benchmarks the speed of the Go compiler %description compilebench %{summary}. See https://godoc.org/golang.org/x/tools/cmd/compilebench for more information. %package cover Summary: Tool for analyzing Go coverage profiles %description cover %{summary}. See https://godoc.org/golang.org/x/tools/cmd/cover for more information. %package digraph Summary: Tool for queries over unlabelled directed graphs in text form %description digraph The digraph command performs queries over unlabelled directed graphs represented in text form. %package gorename Summary: Tool for precise type-safe renaming of identifiers in Go code %description gorename The gorename command performs precise type-safe renaming of identifiers in Go source code. %package stringer Summary: Tool to automate creating methods satisfying the fmt.Stringer interface %description stringer Stringer is a tool to automate the creation of methods that satisfy the fmt.Stringer interface. %package godex Summary: Tool to dump exported information for Go packages or objects %description godex The godex command prints (dumps) exported information of packages or selected package objects. See https://godoc.org/golang.org/x/tools/cmd/godex for more information. %package benchcmp Summary: Displays performance changes between benchmarks for the Go programming language %description benchcmp %{summary}. See https://godoc.org/golang.org/x/tools/cmd/benchcmp for more information. %package bundle Summary: Creates a single-source-file version of a source package %description bundle %{summary}. See https://godoc.org/golang.org/x/tools/cmd/bundle for more information. %package eg Summary: Example-based refactoring for the Go programming language %description eg %{summary}. See `eg -help` for more information. %package fiximports Summary: Fixes import declarations to use the canonical import path %description fiximports %{summary}. %package getgo Summary: Installs Go to the user's system %description getgo %{summary}. See https://godoc.org/golang.org/x/tools/cmd/getgo for more information. %package go-contrib-init Summary: Helps new Go contributors get their development environment set up %description go-contrib-init The go-contrib-init command helps new Go contributors get their development environment set up for the Go contribution process. It aims to be a complement or alternative to https://golang.org/doc/contribute.html. %package goimports Summary: Go programming language import line formatter %description goimports %{summary}. See https://godoc.org/golang.org/x/tools/cmd/goimports for more information. %package gomvpkg Summary: Tool to move Go packages, updating import declarations %description gomvpkg %{summary}. See https://godoc.org/golang.org/x/tools/cmd/gomvpkg for more information. %package gopls Summary: LSP server for Go %description gopls %{summary}. See https://godoc.org/golang.org/x/tools/cmd/gopls for more information. %package guru Summary: Tool for answering questions about Go source code %description guru %{summary}. See https://godoc.org/golang.org/x/tools/cmd/guru for more information. %package present Summary: Display slide presentations and articles %description present %{summary}. See https://godoc.org/golang.org/x/tools/cmd/present for more information. %package splitdwarf Summary: Uncompress and copy the DWARF segment of a Mach-O executable into the "dSYM" file %description splitdwarf %{summary}. See https://godoc.org/golang.org/x/tools/cmd/splitdwarf for more information. %package ssadump Summary: Tool for displaying and interpreting the SSA form of Go programs %description ssadump %{summary}. %package stress Summary: Tool for catching sporadic failures %description stress %{summary}. See https://godoc.org/golang.org/x/tools/cmd/stress for more information. %package toolstash Summary: Provides a way to save, run, and restore a known good copy of the Go toolchain %description toolstash %{summary}. See https://godoc.org/golang.org/x/tools/cmd/toolstash for more information. %package goyacc Summary: Goyacc is a version of yacc for Go %description goyacc %{summary}. See https://godoc.org/golang.org/x/tools/cmd/goyacc for more information. %gopkg %prep %goprep find . -type f -name "*.go" -exec sed -i "s|mvdan.cc/xurls/v2|mvdan.cc/xurls|" "{}" +; %generate_buildrequires %go_generate_buildrequires %build for cmd in %commands; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/cmd/$cmd done %gobuild -o %{gobuilddir}/bin/gopls %{goipath}/gopls %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # Fix conflict with rubygem-bundler mv %{buildroot}%{_bindir}/bundle %{buildroot}%{_bindir}/gobundle %if %{with check} %check %gocheck -t cmd -d imports -t internal/lsp -d go/pointer -d internal/imports -t gopls/internal -d internal/packagesdriver -d go/packages %endif %files -n golang-godoc %doc %{godocs} %license %{golicenses} %{_bindir}/godoc %files -n golang-gotype %doc %{godocs} %license %{golicenses} %{_bindir}/gotype %files -n golang-html2article %doc %{godocs} %license %{golicenses} %{_bindir}/html2article %files godex %doc %{godocs} %license %{golicenses} %{_bindir}/godex %files callgraph %doc %{godocs} %license %{golicenses} %{_bindir}/callgraph %files compilebench %doc %{godocs} %license %{golicenses} %{_bindir}/compilebench %files cover %doc %{godocs} %license %{golicenses} %{_bindir}/cover %files digraph %doc %{godocs} %license %{golicenses} %{_bindir}/digraph %files gorename %doc %{godocs} %license %{golicenses} %{_bindir}/gorename %files stringer %doc %{godocs} %license %{golicenses} %{_bindir}/stringer %files eg %doc %{godocs} %license %{golicenses} %{_bindir}/eg %files fiximports %doc %{godocs} %license %{golicenses} %{_bindir}/fiximports %files getgo %doc %{godocs} %license %{golicenses} %{_bindir}/getgo %files go-contrib-init %doc %{godocs} %license %{golicenses} %{_bindir}/go-contrib-init %files benchcmp %doc %{godocs} %license %{golicenses} %{_bindir}/benchcmp %files bundle %doc %{godocs} %license %{golicenses} %{_bindir}/gobundle %files goimports %doc %{godocs} %license %{golicenses} %{_bindir}/goimports %files gomvpkg %doc %{godocs} %license %{golicenses} %{_bindir}/gomvpkg %files gopls %doc %{godocs} %license %{golicenses} %{_bindir}/gopls %files guru %doc %{godocs} %license %{golicenses} %{_bindir}/guru %files present %doc %{godocs} %license %{golicenses} %{_bindir}/present %files splitdwarf %doc %{godocs} %license %{golicenses} %{_bindir}/splitdwarf %files ssadump %doc %{godocs} %license %{golicenses} %{_bindir}/ssadump %files stress %doc %{godocs} %license %{golicenses} %{_bindir}/stress %files toolstash %doc %{godocs} %license %{golicenses} %{_bindir}/toolstash %files goyacc %doc %{godocs} %license %{golicenses} %{_bindir}/goyacc %gopkgfiles %changelog * Sun Sep 25 2022 guillomovitch <guillomovitch> 0.1.12-2.mga9 + Revision: 1892242 - fix gopls build * Wed Aug 17 2022 guillomovitch <guillomovitch> 0.1.12-1.mga9 + Revision: 1878381 - new version 0.1.12 * Sun Apr 03 2022 umeabot <umeabot> 0.1.9-2.mga9 + Revision: 1841808 - Mageia 9 Mass Rebuild * Wed Mar 02 2022 guillomovitch <guillomovitch> 0.1.9-1.mga9 + Revision: 1787761 - new version 0.1.9 - non-bootstrap build * Mon Nov 01 2021 guillomovitch <guillomovitch> 0.1.5-1.mga9 + Revision: 1753577 - new version 0.1.5 (bootstrap build) * Sun Aug 30 2020 guillomovitch <guillomovitch> 0-8.mga8 + Revision: 1620220 - non-bootstrap build * Sun Aug 30 2020 guillomovitch <guillomovitch> 0-7.mga8 + Revision: 1619944 - really fix obsoletes tag * Sun Aug 30 2020 guillomovitch <guillomovitch> 0-6.mga8 + Revision: 1619930 - add obsoletes tag for devel package * Sun Aug 30 2020 guillomovitch <guillomovitch> 0-5.mga8 + Revision: 1619912 - renaming - new snapshot - rename to golang-x-tools * Fri Feb 14 2020 umeabot <umeabot> 0-4.mga8 + Revision: 1520312 - Mageia 8 Mass Rebuild * Mon Nov 19 2018 pterjan <pterjan> 0-3.20181119gitce871d1.mga7 + Revision: 1331612 - Disable bootstrap * Mon Nov 19 2018 pterjan <pterjan> 0-2.20181119gitce871d1.mga7 + Revision: 1331585 - Exclude some dependencies from the -devel package in bootstrap mode - imported package golang-googlecode-tools