|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
Name: xdp-tools
|
|
|
|
|
Version: 1.0.0~beta1
|
|
|
|
|
Release: 0.1%{?dist}
|
|
|
|
|
Version: 1.2.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Utilities and example programs for use with XDP
|
|
|
|
|
%global _soversion 1.0.0
|
|
|
|
|
%global _soversion 1.2.0
|
|
|
|
|
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://github.com/xdp-project/%{name}
|
|
|
|
@ -21,6 +21,9 @@ BuildRequires: m4
|
|
|
|
|
BuildRequires: emacs-nox
|
|
|
|
|
BuildRequires: wireshark-cli
|
|
|
|
|
|
|
|
|
|
# Always keep xdp-tools and libxdp packages in sync
|
|
|
|
|
Requires: libxdp = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# find-debuginfo produces empty debugsourcefiles.list
|
|
|
|
|
# disable the debug package to avoid rpmbuild error'ing out because of this
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
@ -35,6 +38,7 @@ Utilities and example programs for use with XDP
|
|
|
|
|
%package -n libxdp
|
|
|
|
|
Summary: XDP helper library
|
|
|
|
|
Requires: kernel-headers
|
|
|
|
|
Requires: libbpf >= 0.2.0-1
|
|
|
|
|
|
|
|
|
|
%package -n libxdp-devel
|
|
|
|
|
Summary: Development files for libxdp
|
|
|
|
@ -65,26 +69,27 @@ The libxdp-static package contains the static library version of libxdp.
|
|
|
|
|
export CFLAGS='%{build_cflags}'
|
|
|
|
|
export LDFLAGS='%{build_ldflags}'
|
|
|
|
|
export LIBDIR='%{_libdir}'
|
|
|
|
|
export PRODUCTION=1
|
|
|
|
|
export DYNAMIC_LIBXDP=1
|
|
|
|
|
export RUNDIR='%{_rundir}'
|
|
|
|
|
export CLANG=%{_bindir}/clang
|
|
|
|
|
export LLC=%{_bindir}/llc
|
|
|
|
|
export PRODUCTION=1
|
|
|
|
|
export DYNAMIC_LIBXDP=1
|
|
|
|
|
export FORCE_SYSTEM_LIBBPF=1
|
|
|
|
|
export FORCE_EMACS=1
|
|
|
|
|
./configure
|
|
|
|
|
sed -i '2i #define _GNU_SOURCE' lib/util/params.c
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export DESTDIR='%{buildroot}'
|
|
|
|
|
export SBINDIR='%{_sbindir}'
|
|
|
|
|
export LIBDIR='%{_libdir}'
|
|
|
|
|
export RUNDIR='%{_rundir}'
|
|
|
|
|
export MANDIR='%{_mandir}'
|
|
|
|
|
export DATADIR='%{_datadir}'
|
|
|
|
|
export HDRDIR='%{_includedir}/xdp'
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
# Don't expose libxdp itself in -devel package just yet
|
|
|
|
|
rm -f %{buildroot}%{_includedir}/xdp/libxdp.h
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libxdp.so
|
|
|
|
|
make install V=1
|
|
|
|
|
cd $DESTDIR/$LIBDIR && ln -vs libxdp.so.%{_soversion} libxdp.so.1.0.0
|
|
|
|
|
cd $DESTDIR/$LIBDIR && ln -vs libxdp.so.%{_soversion} libxdp.so.1.1.0
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_sbindir}/xdp-filter
|
|
|
|
@ -94,21 +99,63 @@ rm -f %{buildroot}%{_libdir}/libxdp.so
|
|
|
|
|
%{_libdir}/bpf/xdpfilt_*.o
|
|
|
|
|
%{_libdir}/bpf/xdpdump_*.o
|
|
|
|
|
%{_datadir}/xdp-tools/
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%license LICENSES/*
|
|
|
|
|
|
|
|
|
|
%files -n libxdp
|
|
|
|
|
%{_libdir}/libxdp.so.1
|
|
|
|
|
%{_libdir}/libxdp.so.%{_soversion}
|
|
|
|
|
%{_libdir}/libxdp.so.1.0.0
|
|
|
|
|
%{_libdir}/libxdp.so.1.1.0
|
|
|
|
|
%{_libdir}/bpf/xdp-dispatcher.o
|
|
|
|
|
%{_libdir}/pkgconfig/libxdp.pc
|
|
|
|
|
%{_libdir}/bpf/xsk_def_xdp_prog*.o
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%license LICENSES/*
|
|
|
|
|
|
|
|
|
|
%files -n libxdp-static
|
|
|
|
|
%{_libdir}/libxdp.a
|
|
|
|
|
|
|
|
|
|
%files -n libxdp-devel
|
|
|
|
|
%{_includedir}/xdp/*.h
|
|
|
|
|
%{_libdir}/libxdp.so
|
|
|
|
|
%{_libdir}/pkgconfig/libxdp.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 8 2023 Toke Høiland-Jørgensen <toke@redhat.com> 1.2.10-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Toke Høiland-Jørgensen <toke@redhat.com> 1.2.9-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Tue Aug 16 2022 Toke Høiland-Jørgensen <toke@redhat.com> 1.2.6-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Thu Jan 13 2022 Toke Høiland-Jørgensen <toke@redhat.com> 1.2.1-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Wed Jul 7 2021 Toke Høiland-Jørgensen <toke@redhat.com> 1.2.0-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2021 Toke Høiland-Jørgensen <toke@redhat.com> 1.1.1-2
|
|
|
|
|
- Fix depedency and patch two issues fixed upstream
|
|
|
|
|
|
|
|
|
|
* Wed Feb 3 2021 Toke Høiland-Jørgensen <toke@redhat.com> 1.1.1-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Mon Jan 4 2021 Toke Høiland-Jørgensen <toke@redhat.com> 1.1.0-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Thu Aug 20 2020 Toke Høiland-Jørgensen <toke@redhat.com> 1.0.1-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Tue Aug 18 2020 Toke Høiland-Jørgensen <toke@redhat.com> 1.0.0-1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Wed Jul 15 2020 Eelco Chaudron <echaudro@redhat.com> 1.0.0~beta3-0.1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Toke Høiland-Jørgensen <toke@redhat.com> 1.0.0~beta2-0.1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 2020 Toke Høiland-Jørgensen <toke@redhat.com> 1.0.0~beta1-0.1
|
|
|
|
|
- Upstream version bump
|
|
|
|
|
|
|
|
|
|