Update to new macros
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
This commit is contained in:
parent
8ee73da857
commit
53842916a0
@ -1,81 +1,76 @@
|
|||||||
# Run tests in check section
|
# Generated by go2rpm
|
||||||
# disable for bootstrapping
|
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
|
|
||||||
|
# https://github.com/dominikh/go-tools
|
||||||
%global goipath honnef.co/go/tools
|
%global goipath honnef.co/go/tools
|
||||||
%global forgeurl https://github.com/dominikh/go-tools
|
%global forgeurl https://github.com/dominikh/go-tools
|
||||||
Version: 2019.1.1
|
Version: 2019.1.1
|
||||||
|
%global tag 2019.1.1
|
||||||
%global common_description %{expand:
|
|
||||||
Tools and libraries for working with Go, including linters and static analysis.}
|
|
||||||
|
|
||||||
%gometa
|
%gometa
|
||||||
|
|
||||||
Name: %{goname}
|
%global common_description %{expand:
|
||||||
Release: 1%{?dist}
|
honnef.co/go/tools/... is a collection of tools and libraries for working with
|
||||||
Summary: Tools and libraries for working with Go, including linters and static analysis
|
Go code, including linters and static analysis, most prominently staticcheck.}
|
||||||
License: MIT and BSD
|
|
||||||
URL: %{gourl}
|
|
||||||
Source0: %{gourl}/archive/%{version}/go-tools-%{version}.tar.gz
|
|
||||||
|
|
||||||
BuildRequires: golang(github.com/BurntSushi/toml)
|
%global golicenses LICENSE LICENSE-gcsizes LICENSE-lint LICENSE-ssa
|
||||||
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
|
%global godocs README.md
|
||||||
BuildRequires: golang(golang.org/x/tools/go/loader)
|
|
||||||
BuildRequires: golang(golang.org/x/tools/go/packages)
|
Name: %{goname}
|
||||||
BuildRequires: golang(golang.org/x/tools/go/types/typeutil)
|
Release: 2%{?dist}
|
||||||
BuildRequires: golang(github.com/kisielk/gotool)
|
Summary: Collection of static analysis tools for working with Go code
|
||||||
|
|
||||||
|
# Upstream license specification: BSD-3-Clause and MIT
|
||||||
|
License: BSD and MIT
|
||||||
|
URL: %{gourl}
|
||||||
|
Source0: %{gosource}
|
||||||
|
|
||||||
|
BuildRequires: golang(github.com/BurntSushi/toml)
|
||||||
|
BuildRequires: golang(github.com/kisielk/gotool)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/go/ast/astutil)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/go/buildutil)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/go/loader)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/go/packages)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/go/types/typeutil)
|
||||||
|
BuildRequires: golang(golang.org/x/tools/refactor/importgraph)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
%{common_description}
|
||||||
|
|
||||||
|
%gopkg
|
||||||
%package devel
|
|
||||||
Summary: %{summary}
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
%{common_description}
|
|
||||||
|
|
||||||
This package contains library source intended for
|
|
||||||
building other packages which use import path with
|
|
||||||
%{goipath} prefix.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%forgeautosetup
|
%goprep
|
||||||
|
mv gcsizes/LICENSE LICENSE-gcsizes
|
||||||
|
mv lint/LICENSE LICENSE-lint
|
||||||
|
mv ssa/LICENSE LICENSE-ssa
|
||||||
|
|
||||||
|
%build
|
||||||
%build
|
for cmd in cmd/gosimple cmd/keyify cmd/megacheck cmd/rdeps cmd/staticcheck cmd/structlayout-optimize cmd/structlayout-pretty cmd/structlayout; do
|
||||||
%gobuildroot
|
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
||||||
for cmd in $(ls -1 cmd) ; do
|
|
||||||
%gobuild -o _bin/$cmd %{goipath}/cmd/$cmd
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%goinstall
|
%gopkginstall
|
||||||
for cmd in $(ls -1 _bin) ; do
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||||
install -Dpm 0755 _bin/$cmd %{buildroot}%{_bindir}/$cmd
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
%gochecks
|
%gocheck
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE LICENSE-gcsizes LICENSE-lint LICENSE-ssa
|
||||||
|
%doc README.md
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
||||||
|
%gopkgfiles
|
||||||
%files devel -f devel.file-list
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.md
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 16 22:58:09 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1.1-2
|
||||||
|
- Update to new macros
|
||||||
|
|
||||||
* Sun Mar 17 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1.1-1
|
* Sun Mar 17 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1.1-1
|
||||||
- Release 2019.1.1 (#1689449)
|
- Release 2019.1.1 (#1689449)
|
||||||
|
|
||||||
@ -91,4 +86,3 @@ done
|
|||||||
|
|
||||||
* Fri Mar 23 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2.2-1
|
* Fri Mar 23 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2.2-1
|
||||||
- First package for Fedora
|
- First package for Fedora
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user