|
|
271209 |
# We build libbpf from RHEL kernel sources, that's why we use
|
|
|
271209 |
# directly kernel tar for RHEL kernel build.
|
|
|
271209 |
# We update libbpf's 'sources' file with proper hash that's
|
|
|
271209 |
# used as kernel tar.
|
|
|
271209 |
|
|
|
271209 |
# RHEL kernel version-release
|
|
|
9ef8b5 |
%define kver 4.18.0-357
|
|
|
271209 |
%define source linux-%{kver}.el8
|
|
|
271209 |
|
|
|
271209 |
Name: libbpf
|
|
|
118158 |
Version: 0.4.0
|
|
|
9ef8b5 |
Release: 3%{?dist}
|
|
|
271209 |
Summary: Libbpf library
|
|
|
271209 |
|
|
|
271209 |
License: LGPLv2 or BSD
|
|
|
271209 |
Source0: %{source}.tar.xz
|
|
|
271209 |
BuildRequires: gcc elfutils-libelf-devel elfutils-devel python3
|
|
|
5a09c3 |
Conflicts: bcc < 0.10
|
|
|
271209 |
|
|
|
271209 |
%description
|
|
|
271209 |
A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its
|
|
|
271209 |
supporting header files. The version of the package reflects the version of
|
|
|
271209 |
ABI.
|
|
|
271209 |
|
|
|
271209 |
%package devel
|
|
|
271209 |
Summary: Development files for %{name}
|
|
|
271209 |
Requires: %{name} = %{version}-%{release}
|
|
|
271209 |
Requires: kernel-headers >= %{kver}
|
|
|
271209 |
|
|
|
271209 |
%description devel
|
|
|
271209 |
The %{name}-devel package contains libraries header files for
|
|
|
271209 |
developing applications that use %{name}
|
|
|
271209 |
|
|
|
271209 |
%package static
|
|
|
271209 |
Summary: Static library for libbpf development
|
|
|
271209 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
271209 |
|
|
|
271209 |
%description static
|
|
|
271209 |
The %{name}-static package contains static library for
|
|
|
271209 |
developing applications that use %{name}
|
|
|
271209 |
|
|
|
271209 |
%global libbpf_make \
|
|
|
b858d6 |
make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" DESTDIR=%{buildroot} V=1
|
|
|
271209 |
|
|
|
271209 |
%prep
|
|
|
271209 |
%setup -n %{source}
|
|
|
271209 |
|
|
|
271209 |
%build
|
|
|
271209 |
pushd tools/lib/bpf
|
|
|
4d368a |
%{libbpf_make} prefix=%{_prefix}
|
|
|
271209 |
popd
|
|
|
271209 |
|
|
|
271209 |
%install
|
|
|
271209 |
pushd tools/lib/bpf
|
|
|
4d368a |
%{libbpf_make} prefix=%{_prefix} install_lib install_headers install_pkgconfig
|
|
|
271209 |
popd
|
|
|
271209 |
|
|
|
271209 |
%files
|
|
|
271209 |
%{_libdir}/libbpf.so.%{version}
|
|
|
271209 |
%{_libdir}/libbpf.so.0
|
|
|
271209 |
|
|
|
271209 |
%files devel
|
|
|
271209 |
%{_libdir}/libbpf.so
|
|
|
271209 |
%{_includedir}/bpf
|
|
|
4d368a |
%{_libdir}/pkgconfig/libbpf.pc
|
|
|
271209 |
|
|
|
271209 |
%files static
|
|
|
271209 |
%{_libdir}/libbpf.a
|
|
|
271209 |
|
|
|
271209 |
%changelog
|
|
|
9ef8b5 |
* Thu Dec 23 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.4.0-3
|
|
|
9ef8b5 |
- kernel update
|
|
|
9ef8b5 |
- Related: rhbz#2010431
|
|
|
9ef8b5 |
|
|
|
b858d6 |
* Tue Nov 16 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.5.0-2
|
|
|
b858d6 |
- fix LDFLAGS passing
|
|
|
b858d6 |
- Related: rhbz#2023488
|
|
|
b858d6 |
|
|
|
118158 |
* Wed Aug 18 2021 Jiri Olsa <jolsa@redhat.com> - 0.4.0-1
|
|
|
118158 |
- update [1995111]
|
|
|
118158 |
|
|
|
cc716e |
* Wed Jul 21 2021 Jiri Olsa <jolsa@redhat.com> - 0.3.0-1
|
|
|
cc716e |
- update [1944754]
|
|
|
cc716e |
|
|
|
cc716e |
* Sun Jun 06 2021 Jiri Olsa <jolsa@redhat.com> - 0.2.0-2
|
|
|
cc716e |
- update [1944754]
|
|
|
cc716e |
|
|
|
34b6af |
* Fri Feb 05 2021 Jiri Olsa <jolsa@redhat.com> - 0.2.0-1
|
|
|
34b6af |
- new kernel version [1919345]
|
|
|
34b6af |
|
|
|
dc3165 |
* Fri Jan 22 2021 Jiri Olsa <jolsa@redhat.com> - 0.0.9-1
|
|
|
dc3165 |
- new kernel version [1919345]
|
|
|
dc3165 |
|
|
|
aa9083 |
* Wed Aug 12 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-4
|
|
|
aa9083 |
- new kernel version [1846820]
|
|
|
aa9083 |
|
|
|
5a09c3 |
* Mon Jul 20 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-3
|
|
|
5a09c3 |
- add Conflicts for bcc < 0.10 [1855816]
|
|
|
5a09c3 |
|
|
|
5a09c3 |
* Wed Jul 08 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-2
|
|
|
5a09c3 |
- new kernel version [1846820]
|
|
|
5a09c3 |
|
|
|
d74bfc |
* Fri Jun 26 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-1
|
|
|
d74bfc |
- new kernel version [1846820]
|
|
|
d74bfc |
|
|
|
6a8302 |
* Wed Mar 04 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-5
|
|
|
6a8302 |
- new kernel version [1809913]
|
|
|
6a8302 |
|
|
|
4d368a |
* Thu Jan 09 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-4
|
|
|
4d368a |
- missing libbpf.pc file [1759154]
|
|
|
4d368a |
|
|
|
271209 |
* Sun Dec 15 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-3
|
|
|
271209 |
- new kernel version [1759154]
|
|
|
271209 |
|
|
|
271209 |
* Tue Dec 10 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-2
|
|
|
271209 |
- new build for gating [1759154]
|
|
|
271209 |
|
|
|
271209 |
* Mon Nov 02 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-1
|
|
|
271209 |
- version 0.0.4 [1759154]
|
|
|
271209 |
|
|
|
271209 |
* Mon Nov 02 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.2-1
|
|
|
271209 |
- initial package [1759154]
|