import libbpf-0.0.4-5.el8
This commit is contained in:
commit
00010b7a87
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/linux-4.18.0-185.el8.tar.xz
|
1
.libbpf.metadata
Normal file
1
.libbpf.metadata
Normal file
@ -0,0 +1 @@
|
||||
5b45cde6e011e32d6354280995acfa7871ad1bc4 SOURCES/linux-4.18.0-185.el8.tar.xz
|
86
SPECS/libbpf.spec
Normal file
86
SPECS/libbpf.spec
Normal file
@ -0,0 +1,86 @@
|
||||
# We build libbpf from RHEL kernel sources, that's why we use
|
||||
# directly kernel tar for RHEL kernel build.
|
||||
# We update libbpf's 'sources' file with proper hash that's
|
||||
# used as kernel tar.
|
||||
|
||||
# RHEL kernel version-release
|
||||
%define kver 4.18.0-185
|
||||
%define source linux-%{kver}.el8
|
||||
|
||||
Name: libbpf
|
||||
Version: 0.0.4
|
||||
Release: 5%{?dist}
|
||||
Summary: Libbpf library
|
||||
|
||||
License: LGPLv2 or BSD
|
||||
Source0: %{source}.tar.xz
|
||||
BuildRequires: gcc elfutils-libelf-devel elfutils-devel python3
|
||||
|
||||
%description
|
||||
A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its
|
||||
supporting header files. The version of the package reflects the version of
|
||||
ABI.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: kernel-headers >= %{kver}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries header files for
|
||||
developing applications that use %{name}
|
||||
|
||||
%package static
|
||||
Summary: Static library for libbpf development
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains static library for
|
||||
developing applications that use %{name}
|
||||
|
||||
%global libbpf_make \
|
||||
make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=%{buildroot} V=1
|
||||
|
||||
%prep
|
||||
%setup -n %{source}
|
||||
|
||||
%build
|
||||
pushd tools/lib/bpf
|
||||
%{libbpf_make} prefix=%{_prefix}
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd tools/lib/bpf
|
||||
%{libbpf_make} prefix=%{_prefix} install_lib install_headers install_pkgconfig
|
||||
popd
|
||||
|
||||
%files
|
||||
%{_libdir}/libbpf.so.%{version}
|
||||
%{_libdir}/libbpf.so.0
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libbpf.so
|
||||
%{_includedir}/bpf
|
||||
%{_libdir}/pkgconfig/libbpf.pc
|
||||
|
||||
%files static
|
||||
%{_libdir}/libbpf.a
|
||||
|
||||
%changelog
|
||||
* Wed Mar 04 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-5
|
||||
- new kernel version [1809913]
|
||||
|
||||
* Thu Jan 09 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-4
|
||||
- missing libbpf.pc file [1759154]
|
||||
|
||||
* Sun Dec 15 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-3
|
||||
- new kernel version [1759154]
|
||||
|
||||
* Tue Dec 10 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-2
|
||||
- new build for gating [1759154]
|
||||
|
||||
* Mon Nov 02 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.4-1
|
||||
- version 0.0.4 [1759154]
|
||||
|
||||
* Mon Nov 02 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.2-1
|
||||
- initial package [1759154]
|
Loading…
Reference in New Issue
Block a user