diff --git a/v0.30.0.tar.gz b/bcc-0.32.0.tar.gz similarity index 48% rename from v0.30.0.tar.gz rename to bcc-0.32.0.tar.gz index d8ddab4d0aa3238bc12594f79b9961ed99cb77b2..3ff4f88a611baa9ad02672a11e3a414b29c14423 100644 Binary files a/v0.30.0.tar.gz and b/bcc-0.32.0.tar.gz differ diff --git a/bcc.spec b/bcc.spec index 46eb78e80952364f3eb01398a054a3365378f9b2..ab58f01ab644553443ab9ff5ef9a1919dc784eda 100644 --- a/bcc.spec +++ b/bcc.spec @@ -9,17 +9,12 @@ Name: bcc -Version: 0.30.0 +Version: 0.32.0 Release: %{anolis_release}%{?dist} Summary: BPF Compiler Collection (BCC) -License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/iovisor/bcc -Source0: %{url}/archive/refs/tags/v%{version}.tar.gz - -#Patch1000: 1000-bcc-anolis-ali-enhanced-tools-for-fs-schedule-sys.patch -#Patch1001: 1001-Skiping-cases-in-libbpf-tools.patch -#Patch1003: 1003-add-u64-define.patch -#Patch1004: 1004-fix-man-pages-installation.patch +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake >= 2.8.12 llvm-devel clang-devel llvm-googletest BuildRequires: flex bison python3-setuptools @@ -31,7 +26,7 @@ BuildRequires: libbpf-devel >= 1.0.0 libbpf-static >= 1.0.0 BuildRequires: pkgconfig(luajit) %endif -Requires: libbpf >= 1.0.0 tar +Requires: libbpf >= 2:0.8.0-1 tar Recommends: kernel-devel Recommends: %{name}-tools = %{EVR} @@ -41,8 +36,11 @@ ExclusiveArch: x86_64 aarch64 loongarch64 BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and examples. It makes use of extended BPF (Berkeley Packet Filters), formally known as eBPF, a new feature -that was first added to Linux 3.15. Much of what BCC uses requires Linux 4.1 -and above. +that was first added to Linux 3.15. BCC makes BPF programs easier to write, +with kernel instrumentation in C (and includes a C wrapper around LLVM), and +front-ends in Python and lua. It is suited for many tasks, including +performance analysis and network traffic control. + %package devel Summary: Shared library for BPF Compiler Collection (BCC) @@ -90,7 +88,7 @@ Command line tools for BPF Compiler Collection (BCC) %if %{with libbpf_tools} %package -n libbpf-tools Summary: Command line libbpf tools for BPF Compiler Collection (BCC) -BuildRequires: libbpf-devel >= 0.0.5, libbpf-static >= 0.0.5 +BuildRequires: libbpf-devel >= 2:0.8.0-1, libbpf-static >= 2:0.8.0-1 BuildRequires: bpftool %description -n libbpf-tools @@ -103,12 +101,12 @@ Command line libbpf tools for BPF Compiler Collection (BCC) %build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DREVISION_LAST=%{version} -DREVISION=%{version} -DPYTHON_CMD=python3 \ - -DCMAKE_USE_LIBBPF_PACKAGE:BOOL=TRUE \ + -DCMAKE_USE_LIBBPF_PACKAGE:BOOL=TRUE -DENABLE_NO_PIE=OFF \ -DENABLE_LLVM_SHARED=1 %cmake_build %if %{with libbpf_tools} pushd libbpf-tools -make BPFTOOL=bpftool LIBBPF_OBJ=%{_libdir}/libbpf.a CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" +make BPFTOOL=bpftool LIBBPF_OBJ=%{_libdir}/libbpf.a CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" USE_BLAZESYM=0 make DESTDIR=./tmp-install prefix= install ( cd tmp-install/bin @@ -150,6 +148,7 @@ install -p libbpf-tools/tmp-install/bin/* %{buildroot}/%{_sbindir}/ %generate_compatibility_deps %files +%license LICENSE.txt %{_libdir}/lib%{name}.so.* %{_libdir}/libbcc_bpf.so.* @@ -159,6 +158,7 @@ install -p libbpf-tools/tmp-install/bin/* %{buildroot}/%{_sbindir}/ %files devel %exclude %{_libdir}/lib%{name}*.a +%exclude %{_libdir}/lib%{name}*.la %{_libdir}/lib%{name}.so %{_libdir}/libbcc_bpf.so %{_libdir}/pkgconfig/lib%{name}.pc @@ -191,6 +191,10 @@ install -p libbpf-tools/tmp-install/bin/* %{buildroot}/%{_sbindir}/ %endif %changelog +* Wed Feb 19 2025 Zhao Hang - 0.32.0-1 +- Update to 0.32.0-1 from 0.30.0-1 +- Migrated to SPDX license + * Wed May 08 2024 mgb01105731 - 0.30.0-1 - update to 0.30.0