]> git.pld-linux.org Git - packages/xdp-tools.git/blob - xdp-tools.spec
- updated to 1.2.8
[packages/xdp-tools.git] / xdp-tools.spec
1 Summary:        Utilities for use with XDP
2 Summary(pl.UTF-8):      Narzędzia do używania z XDP
3 Name:           xdp-tools
4 Version:        1.2.8
5 Release:        1
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)
20
21 %description
22 Collection of utilties using libxdp library for working with the
23 eXpress Data Path facility of the Linux kernel.
24
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.
28
29 %package -n libxdp
30 Summary:        Library for use with XDP
31 Summary(pl.UTF-8):      Biblioteka do używania z XDP
32 Group:          Libraries
33
34 %description -n libxdp
35 libxdp library for working with the eXpress Data Path facility of the
36 Linux kernel.
37
38 %description -n libxdp -l pl.UTF-8
39 Biblioteka libxdp do pracy z funkcją XDP (eXpress Data Path) jądra
40 Linuksa.
41
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}
47
48 %description -n libxdp-devel
49 Header files for libxdp library.
50
51 %description -n libxdp-devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki libxdp.
53
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}
59
60 %description -n libxdp-static
61 Static libxdp library.
62
63 %description -n libxdp-static -l pl.UTF-8
64 Statyczna biblioteka libxdp.
65
66 %prep
67 %setup -q
68
69 %build
70 CC="%{__cc}" \
71 ./configure
72
73 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
74 LDFLAGS="%{rpmldflags} %{rpmcflags}" \
75 %{__make} \
76         V=1
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT \
83         PREFIX=%{_prefix} \
84         LIBDIR=%{_libdir}
85
86 # tests
87 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/xdp-tools
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -n libxdp -p /sbin/ldconfig
93 %postun -n libxdp -p /sbin/ldconfig
94
95 %files
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*
104
105 %files -n libxdp
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libxdp.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libxdp.so.1
109 %dir %{_libdir}/bpf
110 %{_libdir}/bpf/xdp-dispatcher.o
111 %{_libdir}/bpf/xdpdump_*.o
112 %{_libdir}/bpf/xdpfilt_*.o
113 %{_libdir}/bpf/xsk_def_xdp_prog*.o
114
115 %files -n libxdp-devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libxdp.so
118 %{_includedir}/xdp
119 %{_pkgconfigdir}/libxdp.pc
120 %{_mandir}/man3/libxdp.3*
121
122 %files -n libxdp-static
123 %defattr(644,root,root,755)
124 %{_libdir}/libxdp.a
This page took 0.030167 seconds and 3 git commands to generate.