1 Summary: Libbpf library
2 Summary(pl.UTF-8): Biblioteka libbpf
6 License: LGPL v2.1 or BSD
8 #Source0Download: https://github.com/libbpf/libbpf/releases
9 Source0: https://github.com/libbpf/libbpf/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: cd0f82d76a9830c1e66b1a249393d5a8
11 URL: https://github.com/libbpf/libbpf
12 BuildRequires: elfutils-devel
13 BuildRequires: linux-libc-headers >= 7:5.4.0
14 BuildRequires: pkgconfig
15 BuildRequires: zlib-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 A mirror of bpf-next Linux tree bpf-next/tools/lib/bpf directory plus
20 its supporting header files. The version of the package reflects the
23 %description -l pl.UTF-8
24 Kopia lustrzana katalogu bpf-next/tools/lib/bpf ze źródeł Linuksa, z
25 drzewka bpf-next wraz ze wspierającymi plikami nagłówkowymi. Wersja
26 pakietu odzwierciedla wersję ABI.
29 Summary: Development files for libbpf library
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbpf
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
33 Requires: elfutils-devel
34 Requires: linux-libc-headers >= 7:5.4.0
38 This package contains header files for developing applications that
41 %description devel -l pl.UTF-8
42 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
43 wykorzystujących libbpf.
46 Summary: Static libbpf library
47 Summary(pl.UTF-8): Statyczna biblioteka libbpf
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 This package contains static library for developing applications that
55 %description static -l pl.UTF-8
56 Ten pakiet zawiera bibliotekę statyczną do tworzenia aplikacji
57 wykorzystujących libbpf.
63 # use NO_PKG_CONFIG to link with -lelf -lz, not $(pkg-config --libs libelf) which doesn't contain -lz
66 CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC" \
67 LDFLAGS="%{rpmldflags}" \
72 rm -rf $RPM_BUILD_ROOT
74 %{__make} -C src install \
75 DESTDIR=$RPM_BUILD_ROOT \
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc LICENSE LICENSE.BSD-2-Clause README.md
87 %attr(755,root,root) %{_libdir}/libbpf.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libbpf.so.0
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libbpf.so
94 %{_pkgconfigdir}/libbpf.pc
97 %defattr(644,root,root,755)