## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 19; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm %bcond_without check # https://github.com/google/pprof %global goipath github.com/google/pprof %global commit c50bf4fe530358fa651598413f786f4367e26268 %gometa %global common_description %{expand: Pprof is a tool for visualization and analysis of profiling data. Pprof reads a collection of profiling samples in profile.proto format and generates reports to visualize and help analyze the data. It can generate both text and graphical reports (through the use of the dot visualization package).} %global golicenses LICENSE LICENSE-* %global godocs doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md Name: %{goname} Version: 0 Release: %autorelease Summary: Tool for visualization and analysis of profiling data # Upstream license specification: BSD-3-Clause and Apache-2.0 # ASL 2.0: main package third_party/d3flamegraph # BSD: third_party/d3 third_party/svgpan License: BSD and ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/chzyer/readline) BuildRequires: golang(github.com/ianlancetaylor/demangle) %description %{common_description} %gopkg %prep %goprep mv third_party/d3/LICENSE LICENSE-d3 mv third_party/d3flamegraph/LICENSE LICENSE-d3flamegraph mv third_party/svgpan/LICENSE LICENSE-svgpan %build %gobuild -o %{gobuilddir}/bin/pprof %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck -d internal/binutils -d internal/report %endif %files %license %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering 0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering 0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G 0-17 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin 0-16 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering 0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Aug 02 2021 Robert-André Mauchin 0-14 - Fix FTBFS Close: rhbz#1987525 * Thu Jul 22 2021 Fedora Release Engineering - 0-0.11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 09 18:33:21 CET 2021 Robert-André Mauchin - 0-0.9.20210109git284c741 - Bump to commit 284c741746fe6f0a159c0c49879041da85f6dc80 * Mon Jul 27 13:06:34 CEST 2020 Robert-André Mauchin - 0-0.8.20200727git1a94d86 - Bump to commit 1a94d8640e99342fa76ae6296aaa921d08ac451f * Wed Jan 29 2020 Fedora Release Engineering - 0-0.7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0-0.6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 23 10:33:19 CEST 2019 Robert-André Mauchin - 0-0.5.20190623gitf8f10df - Bump to commit f8f10df8421355d11843c3719debc9dec2cc1ad7 * Fri Feb 01 2019 Fedora Release Engineering - 0-0.4.git2b5d435 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0-0.3.git2b5d435 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Robert-André Mauchin - 0-0.2.20180628git2b5d435 - Bump to commit 2b5d4350d687b058368c98ab141d34d08162ec7b * Wed Mar 21 2018 Robert-André Mauchin - 0-0.1.20180416git6167805 - First package for Fedora