Blame golang-github-google-pprof.spec

4e8d5be
# Generated by go2rpm
bbb05c0
%bcond_without check
bbb05c0
bbb05c0
# https://github.com/google/pprof
bbb05c0
%global goipath         github.com/google/pprof
e112d0d
%global commit          1a94d8640e99342fa76ae6296aaa921d08ac451f
bbb05c0
4e8d5be
%gometa
bbb05c0
4e8d5be
%global common_description %{expand:
4e8d5be
Pprof is a tool for visualization and analysis of profiling data.
bbb05c0
4e8d5be
Pprof reads a collection of profiling samples in profile.proto format and
4e8d5be
generates reports to visualize and help analyze the data. It can generate both
4e8d5be
text and graphical reports (through the use of the dot visualization package).}
bbb05c0
4e8d5be
%global golicenses      LICENSE LICENSE-*
4e8d5be
%global godocs          doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
bbb05c0
bbb05c0
Name:           %{goname}
bbb05c0
Version:        0
e112d0d
Release:        0.8%{?dist}
bbb05c0
Summary:        Tool for visualization and analysis of profiling data
4e8d5be
4e8d5be
# Upstream license specification: BSD-3-Clause and Apache-2.0
4e8d5be
# ASL 2.0: main package third_party/d3flamegraph
4e8d5be
# BSD: third_party/d3 third_party/svgpan
4e8d5be
License:        BSD and ASL 2.0
bbb05c0
URL:            %{gourl}
bbb05c0
Source0:        %{gosource}
bbb05c0
4e8d5be
BuildRequires:  golang(github.com/chzyer/readline)
4e8d5be
BuildRequires:  golang(github.com/ianlancetaylor/demangle)
bbb05c0
bbb05c0
%description
bbb05c0
%{common_description}
bbb05c0
4e8d5be
%gopkg
bbb05c0
bbb05c0
%prep
4e8d5be
%goprep
4e8d5be
mv third_party/d3/LICENSE LICENSE-d3
4e8d5be
mv third_party/d3flamegraph/LICENSE LICENSE-d3flamegraph
4e8d5be
mv third_party/svgpan/LICENSE LICENSE-svgpan
bbb05c0
4e8d5be
%build
4e8d5be
%gobuild -o %{gobuilddir}/bin/pprof %{goipath}
bbb05c0
bbb05c0
%install
4e8d5be
%gopkginstall
4e8d5be
install -m 0755 -vd                     %{buildroot}%{_bindir}
4e8d5be
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
bbb05c0
bbb05c0
%if %{with check}
bbb05c0
%check
e112d0d
%gocheck -d internal/binutils
bbb05c0
%endif
bbb05c0
4e8d5be
%files
4e8d5be
%license %{golicenses}
4e8d5be
%doc %{godocs}
4e8d5be
%{_bindir}/*
bbb05c0
4e8d5be
%gopkgfiles
bbb05c0
bbb05c0
%changelog
e112d0d
* Mon Jul 27 13:06:34 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.8.20200727git1a94d86
e112d0d
- Bump to commit 1a94d8640e99342fa76ae6296aaa921d08ac451f
e112d0d
710f74e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7
710f74e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
710f74e
c88799d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.6
c88799d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c88799d
4e8d5be
* Tue Apr 23 10:33:19 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.5.20190623gitf8f10df
4e8d5be
- Bump to commit f8f10df8421355d11843c3719debc9dec2cc1ad7
4e8d5be
12389d0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.git2b5d435
12389d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
12389d0
6f82236
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.git2b5d435
6f82236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6f82236
8a4f263
* Thu Jun 28 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.2.20180628git2b5d435
8a4f263
- Bump to commit 2b5d4350d687b058368c98ab141d34d08162ec7b
8a4f263
bbb05c0
* Wed Mar 21 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20180416git6167805
bbb05c0
- First package for Fedora