# Generated by go2rpm %bcond_without check # https://pagure.io/golist %global forgeurl https://pagure.io/golist Version: 0.10.1 %global common_description %{expand: A tool to analyse the properties of a Go (Golang) codebase.} %global godocs NEWS.md README.md %global golicenses LICENSE Name: golist Release: 2%{?dist} Summary: A tool to analyse the properties of a Go (Golang) codebase # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} #Source0: #{gosource} # Not supported by current forge macros. Source0: https://pagure.io/golist/archive/v%{version}/golist-%{version}.tar.gz BuildRequires: go-compilers-golang-compiler BuildRequires: golang(github.com/urfave/cli) # Before split of /usr/bin/golist. # Remove in Fedora 34. Conflicts: go-compilers-golang-compiler < 1-34 %description %{common_description} %prep rm -rf %{name}-%{version} %setup -q -D -T -c -n %{name}-%{version} -a 0 mv %{name}-%{version} %{name} %build export LDFLAGS=" -X main.VERSION=%{version} " %global goipath pagure.io %if 0%{?centos} || 0%{?fedora} <= 30 %global build_folder $GO_BUILD_PATH %gobuildroot %else %global build_folder %{gobuilddir} %global extractdir0 %{name}-%{version} %goprep -v -e %{name}-%{version} %endif for cmd in %{name}/cmd/* ; do %gobuild -o _bin/$(basename $cmd) %{goipath}/$cmd done %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ %files %doc %{name}/README.md %{name}/NEWS.md %license %{name}/LICENSE %{_bindir}/* %changelog * Thu Jul 25 2019 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jun 14 2019 Elliott Sales de Andrade - 0.10.1-1 - Update to latest version - Rewrite for latest Go macros * Mon May 27 2019 Elliott Sales de Andrade - 0.10.0-1 - Initial package