From d63459d7e4cbc8c8b9b849fde05775afb68402ae Mon Sep 17 00:00:00 2001 From: Raven Date: Thu, 11 Apr 2024 13:08:32 +0600 Subject: [PATCH] libbpf1: initial build --- libbpf1/libbpf.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libbpf1/libbpf.spec diff --git a/libbpf1/libbpf.spec b/libbpf1/libbpf.spec new file mode 100644 index 0000000..73fb0c7 --- /dev/null +++ b/libbpf1/libbpf.spec @@ -0,0 +1,56 @@ +Name: libbpf1 +Version: 1.4.0 +Release: 1%{?dist} +Summary: Libbpf library + +License: LGPLv2 or BSD +Source0: https://github.com/libbpf/libbpf/archive/v%{version}/libbpf-%{version}.tar.gz +BuildRequires: gcc elfutils-libelf-devel elfutils-devel python3 kernel-headers +BuildRequires: make + + +%description +Library for loading eBPF programs and reading and manipulating eBPF +objects from user-space + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +Requires: kernel-headers +Requires: zlib +Conflicts: libbpf-devel + +%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} +Conflicts: libbpf-static + +%description static +The %{name}-static package contains static library for +developing applications that use %{name} + + +%prep +%autosetup -n libbpf-%{version} + +%build +%make_build -C src + +%install +%make_install -C src + +%files +%{_libdir}/libbpf.so.%{version} +%{_libdir}/libbpf.so.1 + +%files devel +%{_libdir}/libbpf.so +%{_includedir}/bpf/ +%{_libdir}/pkgconfig/libbpf.pc + +%files static +%{_libdir}/libbpf.a \ No newline at end of file