diff --git a/golang-github-alecthomas-units.spec b/golang-github-alecthomas-units.spec index f60d668..479a930 100644 --- a/golang-github-alecthomas-units.spec +++ b/golang-github-alecthomas-units.spec @@ -1,55 +1,54 @@ +# Generated by go2rpm +%bcond_without check + # https://github.com/alecthomas/units %global goipath github.com/alecthomas/units %global commit 2efee857e7cfd4f3d0138cc3cbb1b4966962b93a %gometa +%global common_description %{expand: +Helpful unit multipliers and functions for go.} + +%global golicenses COPYING +%global godocs README.md + Name: %{goname} Version: 0 -Release: 0.5%{?dist} -Summary: Helpful unit multipliers and functions for Go -# Detected licences -# - Expat License at 'COPYING' +Release: 0.6%{?dist} +Summary: Helpful unit multipliers and functions for go + License: MIT URL: %{gourl} Source0: %{gosource} +%if %{with check} +# Tests BuildRequires: golang(github.com/stretchr/testify/assert) +%endif %description -%{summary} - - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{summary} - -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. +%{common_description} +%gopkg %prep -%forgeautosetup - +%goprep %install -%goinstall - +%gopkginstall +%if %{with check} %check -%gochecks - - -%files devel -f devel.file-list -%license COPYING -%doc README.md +%gocheck +%endif +%gopkgfiles %changelog +* Sat Apr 20 23:24:02 CEST 2019 Robert-André Mauchin - 0-0.6.20181111git2efee85 +- Update to new macros + * Thu Jan 31 2019 Fedora Release Engineering - 0-0.5.git2efee85 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild