Update to upstream release 0.0.3
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
parent
abdba176b4
commit
494044b389
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/xdp-tools-0.0.2.tar.gz
|
/xdp-tools-0.0.2.tar.gz
|
||||||
|
/xdp-tools-0.0.3.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (xdp-tools-0.0.2.tar.gz) = ee6f6d51cc17115fd263c960249b3495f10cf7ea5ac5eff5fc5d20b7575e1d5216a2484a69cf5533e3bb092ad497b1a21391bc31f9131b44636c0d049e79f45f
|
SHA512 (xdp-tools-0.0.3.tar.gz) = c2a4278db41af020cf42b1139c93786a49ad2a071b2002177ac39e8d6b74203d251bd7823399d9e156c969d2ae741b0ecd4178edf446fe5c7270e53295458fce
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: xdp-tools
|
Name: xdp-tools
|
||||||
Version: 0.0.2
|
Version: 0.0.3
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Utilities and example programs for use with XDP
|
Summary: Utilities and example programs for use with XDP
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -9,8 +9,10 @@ Source0: https://github.com/xdp-project/%{name}/releases/download/v%{ve
|
|||||||
|
|
||||||
BuildRequires: libbpf-devel
|
BuildRequires: libbpf-devel
|
||||||
BuildRequires: elfutils-libelf-devel
|
BuildRequires: elfutils-libelf-devel
|
||||||
BuildRequires: clang >= 9.0.0
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: llvm >= 9.0.0
|
BuildRequires: libpcap-devel
|
||||||
|
BuildRequires: clang >= 10.0.0
|
||||||
|
BuildRequires: llvm >= 10.0.0
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -19,18 +21,36 @@ BuildRequires: pkgconfig
|
|||||||
# disable the debug package to avoid rpmbuild error'ing out because of this
|
# disable the debug package to avoid rpmbuild error'ing out because of this
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
# brp_strip_lto barfs on BPF files, override it as a workaround
|
||||||
|
%global __brp_strip_lto %{_bindir}/true
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Utilities and example programs for use with XDP
|
Utilities and example programs for use with XDP
|
||||||
|
|
||||||
%package devel
|
%package -n libxdp
|
||||||
Summary: Development files for %{name}
|
Summary: XDP helper library
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
Requires: kernel-headers
|
Requires: kernel-headers
|
||||||
|
|
||||||
%description devel
|
%package -n libxdp-devel
|
||||||
The %{name}-devel package contains libraries header files for
|
Summary: Development files for libxdp
|
||||||
developing applications that use %{name}
|
Requires: kernel-headers
|
||||||
|
Requires: libxdp = %{version}-%{release}
|
||||||
|
|
||||||
|
%package -n libxdp-static
|
||||||
|
Summary: Static library files for libxdp
|
||||||
|
Requires: kernel-headers
|
||||||
|
Requires: libxdp-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n libxdp
|
||||||
|
The libxdp package contains the libxdp library for managing XDP programs,
|
||||||
|
used by the %{name} package
|
||||||
|
|
||||||
|
%description -n libxdp-devel
|
||||||
|
The libxdp-devel package contains headers used for building XDP programs using
|
||||||
|
libxdp.
|
||||||
|
|
||||||
|
%description -n libxdp-static
|
||||||
|
The libxdp-static package contains the static library version of libxdp.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{version}
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
@ -41,6 +61,9 @@ export CFLAGS='%{build_cflags}'
|
|||||||
export LDFLAGS='%{build_ldflags}'
|
export LDFLAGS='%{build_ldflags}'
|
||||||
export LIBDIR='%{_libdir}'
|
export LIBDIR='%{_libdir}'
|
||||||
export PRODUCTION=1
|
export PRODUCTION=1
|
||||||
|
export DYNAMIC_LIBXDP=1
|
||||||
|
export CLANG=%{_bindir}/clang
|
||||||
|
export LLC=%{_bindir}/llc
|
||||||
./configure
|
./configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -52,18 +75,31 @@ export MANDIR='%{_mandir}'
|
|||||||
export HDRDIR='%{_includedir}/xdp'
|
export HDRDIR='%{_includedir}/xdp'
|
||||||
make install
|
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
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_sbindir}/xdp-filter
|
%{_sbindir}/xdp-filter
|
||||||
|
%{_sbindir}/xdp-loader
|
||||||
|
%{_sbindir}/xdpdump
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%{_libdir}/bpf/*.o
|
%{_libdir}/bpf/*.o
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%files devel
|
%files -n libxdp
|
||||||
%{_includedir}/xdp/
|
%{_libdir}/libxdp.so.0
|
||||||
|
%{_libdir}/libxdp.so.%{version}
|
||||||
|
|
||||||
|
%files -n libxdp-static
|
||||||
|
%{_libdir}/libxdp.a
|
||||||
|
|
||||||
|
%files -n libxdp-devel
|
||||||
|
%{_includedir}/xdp/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-2
|
* Mon Apr 6 2020 Toke Høiland-Jørgensen <toke@redhat.com> 0.0.3-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Upstream update, add libxdp sub-packages
|
||||||
|
|
||||||
* Thu Nov 21 2019 Toke Høiland-Jørgensen <toke@redhat.com> 0.0.2-1
|
* Thu Nov 21 2019 Toke Høiland-Jørgensen <toke@redhat.com> 0.0.2-1
|
||||||
- Upstream update
|
- Upstream update
|
||||||
|
Loading…
Reference in New Issue
Block a user