1 Summary: Utilities for use with XDP
2 Summary(pl.UTF-8): Narzędzia do używania z XDP
6 License: GPL v2, LGPL v2.1, BSD
7 Group: Applications/System
8 #Source0Download: https://github.com/xdp-project/xdp-tools/releases
9 Source0: https://github.com/xdp-project/xdp-tools/releases/download/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: a518efccdbe4db764c93ee5293228c4a
11 URL: https://github.com/xdp-project/xdp-tools
12 BuildRequires: clang >= 10
13 BuildRequires: elfutils-devel
14 BuildRequires: libbpf-devel
15 BuildRequires: libpcap-devel
16 BuildRequires: pkgconfig
17 BuildRequires: zlib-devel
18 Requires: libxdp = %{version}-%{release}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Collection of utilties using libxdp library for working with the
23 eXpress Data Path facility of the Linux kernel.
25 %description -l pl.UTF-8
26 Zestaw narzędzi wykorzystujących bibliotekę libxdp do pracy z funkcją
27 XDP (eXpress Data Path) jądra Linuksa.
30 Summary: Library for use with XDP
31 Summary(pl.UTF-8): Biblioteka do używania z XDP
34 %description -n libxdp
35 libxdp library for working with the eXpress Data Path facility of the
38 %description -n libxdp -l pl.UTF-8
39 Biblioteka libxdp do pracy z funkcją XDP (eXpress Data Path) jądra
42 %package -n libxdp-devel
43 Summary: Header files for libxdp library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libxdp
45 Group: Development/Libraries
46 Requires: libxdp = %{version}-%{release}
48 %description -n libxdp-devel
49 Header files for libxdp library.
51 %description -n libxdp-devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki libxdp.
54 %package -n libxdp-static
55 Summary: Static libxdp library
56 Summary(pl.UTF-8): Statyczna biblioteka libxdp
57 Group: Development/Libraries
58 Requires: libxdp-devel = %{version}-%{release}
60 %description -n libxdp-static
61 Static libxdp library.
63 %description -n libxdp-static -l pl.UTF-8
64 Statyczna biblioteka libxdp.
73 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
74 LDFLAGS="%{rpmldflags} %{rpmcflags}" \
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT \
87 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/xdp-tools
90 rm -rf $RPM_BUILD_ROOT
92 %post -n libxdp -p /sbin/ldconfig
93 %postun -n libxdp -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc LICENSE LICENSES/BSD-2-Clause README.org
98 %attr(755,root,root) %{_sbindir}/xdp-filter
99 %attr(755,root,root) %{_sbindir}/xdp-loader
100 %attr(755,root,root) %{_sbindir}/xdpdump
101 %{_mandir}/man8/xdp-filter.8*
102 %{_mandir}/man8/xdp-loader.8*
103 %{_mandir}/man8/xdpdump.8*
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libxdp.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libxdp.so.1
110 %{_libdir}/bpf/xdp-dispatcher.o
111 %{_libdir}/bpf/xdpdump_*.o
112 %{_libdir}/bpf/xdpfilt_*.o
113 %{_libdir}/bpf/xsk_def_xdp_prog*.o
115 %files -n libxdp-devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libxdp.so
119 %{_pkgconfigdir}/libxdp.pc
120 %{_mandir}/man3/libxdp.3*
122 %files -n libxdp-static
123 %defattr(644,root,root,755)