Update to new macros

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
This commit is contained in:
Robert-André Mauchin 2019-05-01 18:34:20 +02:00
parent 1979e63495
commit 675b31e71b

View File

@ -1,48 +1,70 @@
# http://github.com/bugsnag/panicwrap
# Generated by go2rpm
%bcond_without check
# https://github.com/bugsnag/panicwrap
%global goipath github.com/bugsnag/panicwrap
Version: 1.2.0
%gometa
%global common_description %{expand:
Panicwrap is a Go library that re-executes a Go binary and monitors stderr
output from the binary for a panic. When it find a panic, it executes a
user-defined handler function. Stdout, stderr, stdin, signals, and exit codes
continue to work as normal, making the existence of panicwrap mostly invisble to
the end user until a panic actually occurs.
Since a panic is truly a bug in the program meant to crash the runtime, globally
catching panics within Go applications is not supposed to be possible. Despite
this, it is often useful to have a way to know when panics occur. panicwrap
allows you to do something with these panics, such as writing them to a file, so
that you can track when panics occur.
Panicwrap is not a panic recovery system. Panics indicate serious problems with
your application and should crash the runtime. panicwrap is just meant as a way
to monitor for panics. If you still think this is the worst idea ever, read the
section below on why.}
%global golicenses LICENSE
%global godocs CHANGELOG.md README.md
%global gosupfiles glide.lock glide.yaml
Name: %{goname}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Go library for catching and handling panics in Go applications
License: MIT
URL: %{gourl}
Source0: %{gosource}
Source1: glide.lock
Source2: glide.yaml
Source1: glide.yaml
Source2: glide.lock
BuildRequires: golang(github.com/kardianos/osext)
%description
%{summary}
%{common_description}
%package devel
Summary: %{summary}
BuildRequires: golang(github.com/kardianos/osext)
%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
%files devel -f devel.file-list
%license LICENSE
%doc README.md
%gopkgfiles
%changelog
* Wed May 01 18:04:33 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.0-3
- Update to new macros
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@ -94,4 +116,3 @@ cp %{SOURCE1} %{SOURCE2} .
* Thu Oct 08 2015 jchaloup <jchaloup@redhat.com> - 0-0.1.gite5f9854
- First package for Fedora
resolves: #1270034