2019-10-20 13:27:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package libbpf
|
|
|
|
#
|
2024-04-04 03:43:36 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-10-20 13:27:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
Accepting request 761634 from home:scarabeus_iv:branches:devel:libraries:c_c++
Please sent this package to tumbleweed too.
- Reflect SUSE CFLAGS
- Do not bother with obscpio if we are fetching direct releases
- Remove patch 0001-makefile-Fix-install-target.patch seems
to build/install without it just fine
- Update to 0.0.6:
+ New features
- new extensible bpf_object__open_{file,mem} APIs and
DECLARE_LIBBPF_OPTS() macro to go with them
- bpf_helpers.h, bpf_endian.h, and bpf_tracing.h are now
distributed with libbpf
- BPF CO-RE: added field size, field existence, and bitfield
relocation support
- BPF CO-RE: BPF_CORE_READ(), bpf_core_field_exists(),
bpf_core_field_size() and other BPF CO-RE related helpers
available through bpf_core_read.h header
- bpf_object__open() API now auto-detects program type from
its section name
- BPF_PROG_TRACING programs support (incuding BTF-typed raw
tracepoints, fentry/fexit programs)
- mmap() support for BPF global variables
- declarative map pinning support added
- probe_read_{user,kernel}[_str]() BPF helpers added
- bpf_get_link_xdp_info() function to get more XDP information
added
- a bunch of other AF_XDP changes
+ Usability improvements
- no need for int version SEC('version') = 1; anymore
- raw_tp/tp and uprobe/uretprobe section prefixes added
- new bpf_program__get_{type,expected_attach_type} getters
- preserve error code on program load failure
OBS-URL: https://build.opensuse.org/request/show/761634
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbpf?expand=0&rev=2
2020-01-09 12:37:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-10-20 13:27:25 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-10-12 08:10:47 +02:00
|
|
|
%define sover_major 1
|
2019-10-20 13:27:25 +02:00
|
|
|
%define libname libbpf%{sover_major}
|
|
|
|
Name: libbpf
|
2024-05-02 10:57:06 +02:00
|
|
|
Version: 1.4.1
|
2019-10-20 13:27:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C library for managing eBPF programs and maps
|
Accepting request 761634 from home:scarabeus_iv:branches:devel:libraries:c_c++
Please sent this package to tumbleweed too.
- Reflect SUSE CFLAGS
- Do not bother with obscpio if we are fetching direct releases
- Remove patch 0001-makefile-Fix-install-target.patch seems
to build/install without it just fine
- Update to 0.0.6:
+ New features
- new extensible bpf_object__open_{file,mem} APIs and
DECLARE_LIBBPF_OPTS() macro to go with them
- bpf_helpers.h, bpf_endian.h, and bpf_tracing.h are now
distributed with libbpf
- BPF CO-RE: added field size, field existence, and bitfield
relocation support
- BPF CO-RE: BPF_CORE_READ(), bpf_core_field_exists(),
bpf_core_field_size() and other BPF CO-RE related helpers
available through bpf_core_read.h header
- bpf_object__open() API now auto-detects program type from
its section name
- BPF_PROG_TRACING programs support (incuding BTF-typed raw
tracepoints, fentry/fexit programs)
- mmap() support for BPF global variables
- declarative map pinning support added
- probe_read_{user,kernel}[_str]() BPF helpers added
- bpf_get_link_xdp_info() function to get more XDP information
added
- a bunch of other AF_XDP changes
+ Usability improvements
- no need for int version SEC('version') = 1; anymore
- raw_tp/tp and uprobe/uretprobe section prefixes added
- new bpf_program__get_{type,expected_attach_type} getters
- preserve error code on program load failure
OBS-URL: https://build.opensuse.org/request/show/761634
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbpf?expand=0&rev=2
2020-01-09 12:37:19 +01:00
|
|
|
License: LGPL-2.1-only
|
2021-07-19 09:25:34 +02:00
|
|
|
URL: https://github.com/libbpf/libbpf
|
|
|
|
Source: https://github.com/libbpf/libbpf/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2021-08-09 10:49:10 +02:00
|
|
|
Source99: baselibs.conf
|
2020-06-09 01:58:57 +02:00
|
|
|
BuildRequires: libelf-devel
|
2021-08-20 11:33:03 +02:00
|
|
|
BuildRequires: linux-glibc-devel >= 4.5
|
2021-07-19 09:25:34 +02:00
|
|
|
BuildRequires: zlib-devel
|
2019-10-20 13:27:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libbpf is a C library which provides API for managing eBPF programs and maps.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: C library for managing eBPF programs and maps
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
libbpf is a C library which provides API for managing eBPF programs and maps.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libbpf
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
libbpf is a C library which provides API for managing eBPF programs and maps.
|
|
|
|
|
2022-03-11 14:42:38 +01:00
|
|
|
%package devel-static
|
|
|
|
Summary: Static library for libbpf
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
libbpf is a C library which provides API for managing eBPF programs and maps.
|
|
|
|
|
2019-10-20 13:27:25 +02:00
|
|
|
%prep
|
2022-11-08 08:03:42 +01:00
|
|
|
%autosetup -p1
|
2019-10-20 13:27:25 +02:00
|
|
|
|
|
|
|
%build
|
2022-03-11 14:42:38 +01:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2021-07-19 09:25:34 +02:00
|
|
|
cd src
|
2021-09-21 11:21:49 +02:00
|
|
|
%make_build V=1 CFLAGS="%{optflags}"
|
2019-10-20 13:27:25 +02:00
|
|
|
|
|
|
|
%install
|
2021-07-19 09:25:34 +02:00
|
|
|
cd src
|
2021-09-21 11:21:49 +02:00
|
|
|
%make_install V=1
|
2019-10-20 13:27:25 +02:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/%{name}.so.%{sover_major}*
|
|
|
|
|
|
|
|
%files devel
|
2021-07-19 09:25:34 +02:00
|
|
|
%license LICENSE LICENSE.BSD-2-Clause LICENSE.LGPL-2.1
|
|
|
|
%doc README.md
|
2019-10-20 13:27:25 +02:00
|
|
|
%{_includedir}/bpf
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
2022-03-11 14:42:38 +01:00
|
|
|
%files devel-static
|
|
|
|
%{_libdir}/%{name}.a
|
|
|
|
|
2019-10-20 13:27:25 +02:00
|
|
|
%changelog
|