2020-06-28 04:02:08 +00:00
|
|
|
Name: bloaty
|
|
|
|
Version: 1.1
|
2024-01-23 00:33:33 +00:00
|
|
|
Release: 26%{?dist}
|
2020-06-28 04:02:08 +00:00
|
|
|
Summary: A size profiler for binaries
|
|
|
|
|
2023-09-01 15:03:48 +00:00
|
|
|
# The entire source is Apache-2.0, except:
|
|
|
|
#
|
|
|
|
# BSD-2-Clause:
|
|
|
|
# third_party/freebsd_elf/
|
|
|
|
# APSL-2.0:
|
|
|
|
# third_party/darwin_xnu_macho/ except as below:
|
|
|
|
# APSL-2.0 AND BSD-4-Clause-UC:
|
|
|
|
# third_party/darwin_xnu_macho/mach-o/nlist.h
|
|
|
|
# APSL-2.0 AND BSD-3-Clause
|
|
|
|
# third_party/darwin_xnu_macho/mach-o/reloc.h
|
|
|
|
#
|
|
|
|
# Note that the contents of third_party/freebsd_elf/ and
|
|
|
|
# third_party/darwin_xnu_macho/ *are* used in the Linux build (to support
|
|
|
|
# examining binaries built for other platforms).
|
|
|
|
License: Apache-2.0 AND BSD-2-Clause AND BSD-4-Clause-UC AND BSD-3-Clause
|
2020-06-28 04:02:08 +00:00
|
|
|
URL: https://github.com/google/bloaty
|
|
|
|
Source0: https://github.com/google/bloaty/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
# Patch to use system versions of abseil, google-test and google-mock
|
|
|
|
Patch0: bloaty-1.1-absl.patch
|
2020-08-02 21:41:59 +00:00
|
|
|
# Patch to fix size detection function to use 64 bit types on 32bit architectures
|
|
|
|
Patch1: bloaty-1.1-longlong.patch
|
2023-01-26 13:32:47 +00:00
|
|
|
# Add missing #include needed on GCC13
|
|
|
|
# https://github.com/google/bloaty/pull/332
|
|
|
|
Patch2: %{url}/pull/332.patch
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
BuildRequires: abseil-cpp-devel
|
|
|
|
BuildRequires: capstone-devel
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmock-devel
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: protobuf-devel
|
|
|
|
BuildRequires: re2-devel
|
|
|
|
|
2023-09-03 13:03:51 +00:00
|
|
|
BuildRequires: help2man
|
|
|
|
|
2020-06-28 04:02:08 +00:00
|
|
|
%description
|
|
|
|
Ever wondered what's making your binary big? Bloaty McBloatface will show
|
|
|
|
you a size profile of the binary so you can understand what's taking up
|
|
|
|
space inside.
|
|
|
|
|
|
|
|
Bloaty works on binaries, shared objects, object files, and static
|
|
|
|
libraries. Bloaty supports the ELF and Mach-O formats, and has experimental
|
|
|
|
support for WebAssembly.
|
|
|
|
|
|
|
|
%prep
|
2023-01-26 13:32:47 +00:00
|
|
|
%autosetup -S gendiff -N
|
|
|
|
%autopatch -p0 -M 1
|
2023-09-01 13:28:16 +00:00
|
|
|
%autopatch -p1 -m 2
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2020-08-02 21:47:38 +00:00
|
|
|
%cmake \
|
2020-06-28 04:02:08 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DBLOATY_ENABLE_CMAKETARGETS=OFF \
|
|
|
|
-DBUILD_TESTING=ON
|
2020-08-02 21:41:59 +00:00
|
|
|
%cmake_build
|
2023-09-03 13:03:51 +00:00
|
|
|
help2man --no-info --output=bloaty.1 %{_vpath_builddir}/bloaty
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-08-02 21:41:59 +00:00
|
|
|
%cmake_install
|
2023-09-03 13:03:51 +00:00
|
|
|
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 bloaty.1
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
%check
|
2020-08-27 01:43:43 +00:00
|
|
|
%ctest --verbose || exit 0
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md how-bloaty-works.md
|
|
|
|
%{_bindir}/bloaty
|
2023-09-03 13:03:51 +00:00
|
|
|
%{_mandir}/man1/bloaty.1*
|
2020-06-28 04:02:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-23 00:33:33 +00:00
|
|
|
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-26
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-19 14:30:10 +00:00
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-25
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-11-14 02:56:02 +00:00
|
|
|
* Tue Nov 14 2023 Rich Mattes <richmattes@gmail.com> - 1.1-24
|
|
|
|
- Rebuild for capstone-5.0.1
|
|
|
|
|
2023-09-01 15:03:48 +00:00
|
|
|
* Fri Sep 01 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1-23
|
|
|
|
- Update License to SPDX
|
2023-09-01 13:28:16 +00:00
|
|
|
- Stop using deprecated %%patchN macros
|
2023-09-03 13:03:51 +00:00
|
|
|
- Add an automatically-generated man page
|
2023-09-01 15:03:48 +00:00
|
|
|
|
2023-08-30 11:48:29 +00:00
|
|
|
* Wed Aug 30 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1-22
|
|
|
|
- Rebuilt for abseil-cpp 20230802.0
|
|
|
|
|
2023-07-19 14:43:41 +00:00
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-03-27 01:07:41 +00:00
|
|
|
* Mon Mar 27 2023 Rich Mattes <richmattes@gmail.com> - 1.1-20
|
|
|
|
- Rebuild for abseil-cpp-20230125.1
|
|
|
|
|
2023-01-26 13:32:47 +00:00
|
|
|
* Thu Jan 26 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1-19
|
|
|
|
- Patch for GCC 13
|
|
|
|
|
2023-01-18 22:58:57 +00:00
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-08-23 00:51:53 +00:00
|
|
|
* Tue Aug 23 2022 Rich Mattes <richmattes@gmail.com> - 1.1-17
|
|
|
|
- Rebuilt for abseil-cpp 20220623.0
|
|
|
|
|
2022-07-20 22:04:43 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-03-09 00:47:12 +00:00
|
|
|
* Wed Mar 09 2022 Rich Mattes <richmattes@gmail.com> - 1.1-15
|
|
|
|
- Rebuild for abseil-cpp 20211102.0
|
|
|
|
|
2022-01-19 22:25:28 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-08 10:41:44 +00:00
|
|
|
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 1.1-13
|
|
|
|
- Rebuilt for libre2.so.9
|
|
|
|
|
2021-11-07 03:30:56 +00:00
|
|
|
* Sun Nov 07 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.1-12
|
|
|
|
- rebuild for new protobuf
|
|
|
|
|
2021-10-24 16:47:08 +00:00
|
|
|
* Sun Oct 24 2021 Adrian Reber <adrian@lisas.de> - 1.1-11
|
|
|
|
- Rebuilt for protobuf 3.18.1
|
|
|
|
|
2021-07-21 18:42:08 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-10 23:28:29 +00:00
|
|
|
* Thu Jun 10 2021 Rich Mattes <richmattes@gmail.com> - 1.1-9
|
|
|
|
- Rebuild for abseil-cpp-20210324.2
|
|
|
|
|
2021-01-26 01:13:23 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-13 07:55:30 +00:00
|
|
|
* Wed Jan 13 08:55:29 CET 2021 Adrian Reber <adrian@lisas.de> - 1.1-7
|
|
|
|
- Rebuilt for protobuf 3.14
|
|
|
|
|
2020-12-19 17:02:05 +00:00
|
|
|
* Sat Dec 19 11:31:29 EST 2020 Rich Mattes <richmattes@gmail.com> - 1.1-6
|
|
|
|
- Rebuild for abseil-cpp 20200923.2
|
|
|
|
|
2020-09-23 15:06:04 +00:00
|
|
|
* Wed Sep 23 2020 Adrian Reber <adrian@lisas.de> - 1.1-5
|
|
|
|
- Rebuilt for protobuf 3.13
|
|
|
|
|
2020-08-01 00:11:34 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-27 13:13:08 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-28 04:02:08 +00:00
|
|
|
* Wed May 27 2020 Rich Mattes <richmattes@gmail.com> - 1.1-2
|
|
|
|
- Don't remove buildroot in install
|
|
|
|
- Patch to use system gtest and gmock, enable tests
|
|
|
|
|
|
|
|
* Sat May 23 2020 Rich Mattes <richmattes@gmail.com> - 1.1-1
|
|
|
|
- Inital Package
|