From 7ba3c10f3ca6144b3daaefd6a2c5f96e7f350b2a Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: May 24 2019 14:39:31 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-github-inconshreveable-mousetrap.spec b/golang-github-inconshreveable-mousetrap.spec index 273ab85..1b23663 100644 --- a/golang-github-inconshreveable-mousetrap.spec +++ b/golang-github-inconshreveable-mousetrap.spec @@ -1,12 +1,25 @@ -# http://github.com/inconshreveable/mousetrap +# Generated by go2rpm +%bcond_without check + +# https://github.com/inconshreveable/mousetrap %global goipath github.com/inconshreveable/mousetrap Version: 1.0.0 %gometa +%global common_description %{expand: +Detect starting from Windows explorer.} + +%global golicenses LICENSE +%global godocs README.md + +%global gosupfiles glide.lock glide.yaml + Name: %{goname} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Detect starting from Windows explorer + +# Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} @@ -14,37 +27,28 @@ Source1: glide.yaml Source2: glide.lock %description -%{summary} +%{common_description} -%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. +%gopkg %prep -%forgesetup -cp %{SOURCE1} %{SOURCE2} . +%goprep +cp %{S:1} %{S:2} . %install -%goinstall glide.lock glide.yaml +%gopkginstall +%if %{with check} %check -%gochecks +%gocheck +%endif -#define license tag if not already defined -%{!?_licensedir:%global license %doc} - -%files devel -f devel.file-list -%license LICENSE -%doc README.md +%gopkgfiles %changelog +* Fri May 24 16:34:31 CEST 2019 Robert-André Mauchin - 1.0.0-3 +- Update to new macros + * Fri Feb 01 2019 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild