Initial import (#1773924)
This commit is contained in:
parent
da7464db89
commit
06fde62247
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/xdp-tools-0.0.2.tar.gz
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (xdp-tools-0.0.2.tar.gz) = ee6f6d51cc17115fd263c960249b3495f10cf7ea5ac5eff5fc5d20b7575e1d5216a2484a69cf5533e3bb092ad497b1a21391bc31f9131b44636c0d049e79f45f
|
69
xdp-tools.spec
Normal file
69
xdp-tools.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
Name: xdp-tools
|
||||||
|
Version: 0.0.2
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Utilities and example programs for use with XDP
|
||||||
|
|
||||||
|
License: GPLv2
|
||||||
|
URL: https://github.com/xdp-project/%{name}
|
||||||
|
Source0: https://github.com/xdp-project/%{name}/releases/download/v%{version}/xdp-tools-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: libbpf-devel
|
||||||
|
BuildRequires: elfutils-libelf-devel
|
||||||
|
BuildRequires: clang >= 9.0.0
|
||||||
|
BuildRequires: llvm >= 9.0.0
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
|
# find-debuginfo produces empty debugsourcefiles.list
|
||||||
|
# disable the debug package to avoid rpmbuild error'ing out because of this
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%global _hardened_build 1
|
||||||
|
|
||||||
|
%description
|
||||||
|
Utilities and example programs for use with XDP
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: kernel-headers
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries header files for
|
||||||
|
developing applications that use %{name}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CFLAGS='%{build_cflags}'
|
||||||
|
export LDFLAGS='%{build_ldflags}'
|
||||||
|
export LIBDIR='%{_libdir}'
|
||||||
|
export PRODUCTION=1
|
||||||
|
./configure
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
export DESTDIR='%{buildroot}'
|
||||||
|
export SBINDIR='%{_sbindir}'
|
||||||
|
export LIBDIR='%{_libdir}'
|
||||||
|
export MANDIR='%{_mandir}'
|
||||||
|
export HDRDIR='%{_includedir}/xdp'
|
||||||
|
make install
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_sbindir}/xdp-filter
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
%{_libdir}/bpf/*.o
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/xdp/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Nov 21 2019 Toke Høiland-Jørgensen <toke@redhat.com> 0.0.2-1
|
||||||
|
- Upstream update
|
||||||
|
|
||||||
|
* Fri Nov 8 2019 Toke Høiland-Jørgensen <toke@redhat.com> 0.0.1-1
|
||||||
|
- Initial release
|
Loading…
Reference in New Issue
Block a user