]> git.pld-linux.org Git - packages/libbpf.git/commitdiff
- new, partially based on Fedora
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 27 May 2020 04:30:49 +0000 (06:30 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 27 May 2020 04:30:49 +0000 (06:30 +0200)
libbpf.spec [new file with mode: 0644]

diff --git a/libbpf.spec b/libbpf.spec
new file mode 100644 (file)
index 0000000..2e6f345
--- /dev/null
@@ -0,0 +1,94 @@
+Summary:       Libbpf library
+Summary(pl.UTF-8):     Biblioteka libbpf
+Name:          libbpf
+Version:       0.0.8
+Release:       1
+License:       LGPL v2.1 or BSD
+Group:         Libraries
+#Source0Download: https://github.com/libbpf/libbpf/releases
+Source0:       https://github.com/libbpf/libbpf/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: d66f6f70caa0456eb93e626113c4b8c0
+URL:           https://github.com/libbpf/libbpf
+BuildRequires: elfutils-devel
+BuildRequires: linux-libc-headers >= 7:5.4.0
+BuildRequires: pkgconfig
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+Kopia lustrzana katalogu bpf-next/tools/lib/bpf ze źródeł Linuksa, z
+drzewka bpf-next wraz ze wspierającymi plikami nagłówkowymi. Wersja
+pakietu odzwierciedla wersję ABI.
+
+%package devel
+Summary:       Development files for libbpf library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libbpf
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      elfutils-devel
+Requires:      linux-libc-headers >= 7:5.4.0
+Requires:      zlib-devel
+
+%description devel
+This package contains header files for developing applications that
+use libbpf.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących libbpf.
+
+%package static
+Summary:       Static libbpf library
+Summary(pl.UTF-8):     Statyczna biblioteka libbpf
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+This package contains static library for developing applications that
+use libbpf.
+
+%description static -l pl.UTF-8
+Ten pakiet zawiera bibliotekę statyczną do tworzenia aplikacji
+wykorzystujących libbpf.
+
+%prep
+%setup -q
+
+%build
+# use NO_PKG_CONFIG to link with -lelf -lz, not $(pkg-config --libs libelf) which doesn't contain -lz
+%{__make} -C src \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC" \
+       LDFLAGS="%{rpmldflags}" \
+       NO_PKG_CONFIG=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C src install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       LIBSUBDIR=%{_lib}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE LICENSE.BSD-2-Clause README.md
+%attr(755,root,root) %{_libdir}/libbpf.so.%{version}
+%attr(755,root,root) %ghost %{_libdir}/libbpf.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbpf.so
+%{_includedir}/bpf
+%{_pkgconfigdir}/libbpf.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbpf.a
This page took 0.152165 seconds and 4 git commands to generate.