From 41e95cd2f9b425e989680d551306011d90f417ff Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 04 2019 14:34:20 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-github-sethgrid-pester.spec b/golang-github-sethgrid-pester.spec index 92b1dd5..5c59191 100644 --- a/golang-github-sethgrid-pester.spec +++ b/golang-github-sethgrid-pester.spec @@ -19,8 +19,11 @@ for data. - Retry on errors - Backoff} +%global golicenses LICENSE.md +%global godocs README.md README-benchmarks.md + Name: %{goname} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Go http calls with retries and backoff License: MIT @@ -30,48 +33,26 @@ Source0: %{gosource} %description %{common_description} -%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. +%gopkg %prep -%forgeautosetup -p1 - -%build -%gobuildroot -for cmd in sample; do - %gobuild -o _bin/$(basename $cmd) %{goipath}/$cmd -done +%goprep +mv benchmarks/README.md README-benchmarks.md %install -%goinstall -install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ - -mv benchmarks/README.md README-benchmarks.md +%gopkginstall %if %{with check} %check -%gochecks +%gocheck %endif -%files -%license LICENSE.md -%doc README.md README-benchmarks.md -%{_bindir}/* - -%files devel -f devel.file-list -%license LICENSE.md -%doc README.md README-benchmarks.md +%gopkgfiles %changelog +* Tue Jun 04 16:24:20 CEST 2019 Robert-André Mauchin - 1.0.0-3 +- Update to new macros + * Fri Apr 05 23:48:57 CEST 2019 Robert-André Mauchin - 1.0.0-2 - Release 1.0.0 (#1695253)