Blame SPECS/libbpf.spec

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
4ae15b
%define kver   4.18.0-402
271209
%define source linux-%{kver}.el8
271209
271209
Name:           libbpf
4ae15b
Version:        0.5.0
4ae15b
Release:        1%{?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
722ac4
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 \
21514c
  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
23f705
%{libbpf_make} prefix=%{_prefix}
271209
popd
271209
271209
%install
271209
pushd tools/lib/bpf
23f705
%{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
23f705
%{_libdir}/pkgconfig/libbpf.pc
271209
271209
%files static
271209
%{_libdir}/libbpf.a
271209
271209
%changelog
4ae15b
* Tue Jun 21 2022 Viktor Malik <vmalik@redhat.com> - 2:0.5.0-1
4ae15b
- kernel update
4ae15b
- Related: rhbz#2097413
4ae15b
21514c
* Thu Dec 23 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.4.0-3
21514c
- kernel update
21514c
- Related: rhbz#2010431
21514c
21514c
* Tue Nov 16 2021 Jiri Olsa <jolsa@redhat.com> - 2:0.5.0-2
21514c
- fix LDFLAGS passing
21514c
- Related: rhbz#2023488
21514c
c4d44c
* Wed Aug 18 2021 Jiri Olsa <jolsa@redhat.com> - 0.4.0-1
c4d44c
- update [1995111]
c4d44c
c4d44c
* Wed Jul 21 2021 Jiri Olsa <jolsa@redhat.com> - 0.3.0-1
c4d44c
- update [1944754]
c4d44c
c4d44c
* Sun Jun 06 2021 Jiri Olsa <jolsa@redhat.com> - 0.2.0-2
c4d44c
- update [1944754]
c4d44c
722ac4
* Fri Feb 05 2021 Jiri Olsa <jolsa@redhat.com> - 0.2.0-1
722ac4
- new kernel version [1919345]
722ac4
722ac4
* Fri Jan 22 2021 Jiri Olsa <jolsa@redhat.com> - 0.0.9-1
722ac4
- new kernel version [1919345]
722ac4
722ac4
* Wed Aug 12 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-4
722ac4
- new kernel version [1846820]
722ac4
722ac4
* Mon Jul 20 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-3
722ac4
- add Conflicts for bcc < 0.10 [1855816]
722ac4
722ac4
* Wed Jul 08 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-2
722ac4
- new kernel version [1846820]
722ac4
23f705
* Fri Jun 26 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.8-1
23f705
- new kernel version [1846820]
23f705
23f705
* Wed Mar 04 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-5
23f705
- new kernel version [1809913]
23f705
23f705
* Thu Jan 09 2020 Jiri Olsa <jolsa@redhat.com> - 0.0.4-4
23f705
- missing libbpf.pc file [1759154]
23f705
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]