675b31e71b
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
119 lines
4.2 KiB
RPMSpec
119 lines
4.2 KiB
RPMSpec
# 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: 3%{?dist}
|
||
Summary: Go library for catching and handling panics in Go applications
|
||
|
||
License: MIT
|
||
URL: %{gourl}
|
||
Source0: %{gosource}
|
||
Source1: glide.yaml
|
||
Source2: glide.lock
|
||
|
||
BuildRequires: golang(github.com/kardianos/osext)
|
||
|
||
%description
|
||
%{common_description}
|
||
|
||
%gopkg
|
||
|
||
%prep
|
||
%goprep
|
||
cp %{S:1} %{S:2} .
|
||
|
||
%install
|
||
%gopkginstall
|
||
|
||
%if %{with check}
|
||
%check
|
||
%gocheck
|
||
%endif
|
||
|
||
%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
|
||
|
||
* Tue Nov 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.0-1
|
||
- Release 1.2.0
|
||
|
||
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 1.1.0-0.11.20160118gitaceac81
|
||
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
|
||
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
|
||
|
||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.9.gitaceac81
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||
|
||
* Fri Jun 08 2018 Jan Chaloupka <jchaloup@redhat.com> - 1.1.0-0.9.20160118gitaceac81
|
||
- Upload glide.lock and glide.yaml
|
||
|
||
* Wed Feb 28 2018 Jan Chaloupka <jchaloup@redhat.com> - 1.1.0-0.8.20160118gitaceac81
|
||
- Autogenerate some parts using the new macros
|
||
|
||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.7.gitaceac81
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||
|
||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.6.gitaceac81
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||
|
||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.5.gitaceac81
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||
|
||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-0.4.gitaceac81
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||
|
||
* Sat Dec 17 2016 Jan Chaloupka <jchaloup@redhat.com> - 1.1.0-0.3.gitaceac81
|
||
- Polish the spec file
|
||
related: #1313834
|
||
|
||
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.2.gitaceac81
|
||
- https://fedoraproject.org/wiki/Changes/golang1.7
|
||
|
||
* Wed Mar 02 2016 jchaloup <jchaloup@redhat.com> - 1.1.0-0.1.gitaceac81
|
||
- Update to 1.1.0
|
||
resolves: #1313834
|
||
|
||
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.3.gite5f9854
|
||
- https://fedoraproject.org/wiki/Changes/golang1.6
|
||
|
||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.gite5f9854
|
||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||
|
||
* Thu Oct 08 2015 jchaloup <jchaloup@redhat.com> - 0-0.1.gite5f9854
|
||
- First package for Fedora
|
||
resolves: #1270034
|