2018-11-09 15:51:46 +00:00
|
|
|
Name: bpftrace
|
2019-03-25 21:24:14 +00:00
|
|
|
Version: 0.9
|
2019-04-22 19:39:44 +00:00
|
|
|
Release: 2%{?dist}
|
2018-11-09 15:51:46 +00:00
|
|
|
Summary: High-level tracing language for Linux eBPF
|
|
|
|
License: ASL 2.0
|
|
|
|
|
|
|
|
URL: https://github.com/iovisor/bpftrace
|
2019-04-22 19:39:44 +00:00
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
# Arches will be included as upstream support is added and dependencies are
|
|
|
|
# satisfied in the respective arches
|
2019-04-01 11:36:52 +00:00
|
|
|
ExclusiveArch: x86_64 %{power64} aarch64 s390x
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: zlib-devel
|
2019-03-25 21:24:14 +00:00
|
|
|
BuildRequires: llvm7.0-devel
|
|
|
|
BuildRequires: llvm7.0-static
|
2018-11-09 15:51:46 +00:00
|
|
|
BuildRequires: clang-devel
|
|
|
|
BuildRequires: bcc-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
BPFtrace is a high-level tracing language for Linux enhanced Berkeley Packet
|
|
|
|
Filter (eBPF) available in recent Linux kernels (4.x). BPFtrace uses LLVM as a
|
|
|
|
backend to compile scripts to BPF-bytecode and makes use of BCC for
|
|
|
|
interacting with the Linux BPF system, as well as existing Linux tracing
|
|
|
|
capabilities: kernel dynamic tracing (kprobes), user-level dynamic tracing
|
|
|
|
(uprobes), and tracepoints. The BPFtrace language is inspired by awk and C,
|
|
|
|
and predecessor tracers such as DTrace and SystemTap
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-03-25 21:24:14 +00:00
|
|
|
%autosetup -p1
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake . \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2019-03-25 21:24:14 +00:00
|
|
|
-DBUILD_TESTING:BOOL=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
|
|
-DLLVM_DIR=/usr/lib64/llvm7.0/lib/cmake/llvm/
|
2019-04-22 19:39:44 +00:00
|
|
|
%make_build
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# Fix shebangs (https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines)
|
|
|
|
find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
|
|
|
|
sed -i -e '1s=^#!/usr/bin/env %{name}\([0-9.]\+\)\?$=#!%{_bindir}/%{name}=' {} \;
|
|
|
|
|
|
|
|
# Move man pages to the right location
|
|
|
|
mkdir -p %{buildroot}%{_mandir}
|
|
|
|
mv %{buildroot}%{_prefix}/man/* %{buildroot}%{_mandir}/
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md CONTRIBUTING-TOOLS.md
|
|
|
|
%doc docs/reference_guide.md docs/tutorial_one_liners.md
|
|
|
|
%license LICENSE
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/tools
|
2018-12-10 14:04:08 +00:00
|
|
|
%dir %{_datadir}/%{name}/tools/doc
|
2018-11-09 15:51:46 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man8/*
|
2018-12-10 14:04:08 +00:00
|
|
|
%attr(0755,-,-) %{_datadir}/%{name}/tools/*.bt
|
|
|
|
%{_datadir}/%{name}/tools/doc/*.txt
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-04-22 19:39:44 +00:00
|
|
|
* Mon Apr 22 2019 Neal Gompa <ngompa@datto.com> - 0.9-2
|
|
|
|
- Fix Source0 reference
|
|
|
|
- Use make_build macro for calling make
|
|
|
|
|
2019-04-01 11:36:52 +00:00
|
|
|
* Mon Apr 1 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.9-1
|
|
|
|
- Build on aarch64 and s390x
|
|
|
|
|
2019-03-25 21:24:14 +00:00
|
|
|
* Mon Mar 25 2019 Augusto Caringi <acaringi@redhat.com> - 0.9-0
|
|
|
|
- Updated to version 0.9
|
|
|
|
|
2019-01-31 14:53:27 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0-2.20181210gitc49b333
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-10 14:04:08 +00:00
|
|
|
* Mon Dec 10 2018 Augusto Caringi <acaringi@redhat.com> - 0.0-1.20181210gitc49b333
|
|
|
|
- Updated to latest upstream (c49b333c034a6d29a7ce90f565e27da1061af971)
|
|
|
|
|
2018-11-09 15:51:46 +00:00
|
|
|
* Wed Nov 07 2018 Augusto Caringi <acaringi@redhat.com> - 0.0-1.20181107git029717b
|
|
|
|
- Initial import
|