2018-05-03 07:30:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2013-09-26 16:22:16 +00:00
|
|
|
# Copyright 2014 6WIND S.A.
|
|
|
|
|
2014-07-02 16:31:45 +00:00
|
|
|
Name: dpdk
|
2018-05-30 13:55:39 +00:00
|
|
|
Version: 18.05
|
2013-09-26 16:22:16 +00:00
|
|
|
Release: 1
|
|
|
|
Packager: packaging@6wind.com
|
|
|
|
URL: http://dpdk.org
|
2014-07-02 16:31:45 +00:00
|
|
|
Source: http://dpdk.org/browse/dpdk/snapshot/dpdk-%{version}.tar.gz
|
2013-09-26 16:22:16 +00:00
|
|
|
|
2014-12-19 14:09:51 +00:00
|
|
|
Summary: Data Plane Development Kit core
|
2013-09-26 16:22:16 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD and LGPLv2 and GPLv2
|
|
|
|
|
2017-01-18 21:46:03 +00:00
|
|
|
ExclusiveArch: i686 x86_64 aarch64
|
|
|
|
%ifarch aarch64
|
|
|
|
%global machine armv8a
|
|
|
|
%global target arm64-%{machine}-linuxapp-gcc
|
|
|
|
%global config arm64-%{machine}-linuxapp-gcc
|
|
|
|
%else
|
2014-09-03 11:15:45 +00:00
|
|
|
%global machine default
|
2015-12-03 03:38:31 +00:00
|
|
|
%global target %{_arch}-%{machine}-linuxapp-gcc
|
|
|
|
%global config %{_arch}-native-linuxapp-gcc
|
2017-01-18 21:46:03 +00:00
|
|
|
%endif
|
2013-09-26 16:22:16 +00:00
|
|
|
|
2017-01-18 21:46:04 +00:00
|
|
|
BuildRequires: kernel-devel, kernel-headers, libpcap-devel
|
2015-04-02 10:49:34 +00:00
|
|
|
BuildRequires: doxygen, python-sphinx, inkscape
|
2015-11-01 20:17:58 +00:00
|
|
|
BuildRequires: texlive-collection-latexextra
|
2013-09-26 16:22:16 +00:00
|
|
|
|
|
|
|
%description
|
2014-12-19 14:09:51 +00:00
|
|
|
DPDK core includes kernel modules, core libraries and tools.
|
2013-09-26 16:22:16 +00:00
|
|
|
testpmd application allows to test fast packet processing environments
|
|
|
|
on x86 platforms. For instance, it can be used to check that environment
|
|
|
|
can support fast path applications such as 6WINDGate, pktgen, rumptcpip, etc.
|
|
|
|
More libraries are available as extensions in other packages.
|
|
|
|
|
|
|
|
%package devel
|
2014-12-19 14:09:51 +00:00
|
|
|
Summary: Data Plane Development Kit for development
|
2014-07-02 16:31:45 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-09-26 16:22:16 +00:00
|
|
|
%description devel
|
2014-12-19 14:09:51 +00:00
|
|
|
DPDK devel is a set of makefiles, headers and examples
|
2013-09-26 16:22:16 +00:00
|
|
|
for fast packet processing on x86 platforms.
|
|
|
|
|
2014-07-02 16:31:45 +00:00
|
|
|
%package doc
|
2014-12-19 14:09:51 +00:00
|
|
|
Summary: Data Plane Development Kit API documentation
|
2014-07-02 16:31:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
2014-12-19 14:09:51 +00:00
|
|
|
DPDK doc is divided in two parts: API details in doxygen HTML format
|
2015-04-02 10:49:34 +00:00
|
|
|
and guides in sphinx HTML/PDF formats.
|
2014-07-02 16:31:45 +00:00
|
|
|
|
2013-09-26 16:22:16 +00:00
|
|
|
%prep
|
2014-07-02 16:31:45 +00:00
|
|
|
%setup -q
|
2013-09-26 16:22:16 +00:00
|
|
|
|
|
|
|
%build
|
2015-12-03 03:38:31 +00:00
|
|
|
make O=%{target} T=%{config} config
|
2013-09-26 16:22:16 +00:00
|
|
|
sed -ri 's,(RTE_MACHINE=).*,\1%{machine},' %{target}/.config
|
|
|
|
sed -ri 's,(RTE_APP_TEST=).*,\1n,' %{target}/.config
|
|
|
|
sed -ri 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' %{target}/.config
|
2015-07-02 21:03:40 +00:00
|
|
|
sed -ri 's,(RTE_NEXT_ABI=).*,\1n,' %{target}/.config
|
2015-04-02 10:49:34 +00:00
|
|
|
sed -ri 's,(LIBRTE_VHOST=).*,\1y,' %{target}/.config
|
2014-07-02 16:31:45 +00:00
|
|
|
sed -ri 's,(LIBRTE_PMD_PCAP=).*,\1y,' %{target}/.config
|
2013-09-26 16:22:16 +00:00
|
|
|
make O=%{target} %{?_smp_mflags}
|
|
|
|
make O=%{target} doc
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2015-12-03 03:38:31 +00:00
|
|
|
make install O=%{target} DESTDIR=%{buildroot} \
|
|
|
|
prefix=%{_prefix} bindir=%{_bindir} sbindir=%{_sbindir} \
|
|
|
|
includedir=%{_includedir}/dpdk libdir=%{_libdir} \
|
|
|
|
datadir=%{_datadir}/dpdk docdir=%{_docdir}/dpdk
|
2013-09-26 16:22:16 +00:00
|
|
|
|
|
|
|
%files
|
2015-12-03 03:38:31 +00:00
|
|
|
%dir %{_datadir}/dpdk
|
2016-12-15 21:25:36 +00:00
|
|
|
%{_datadir}/dpdk/usertools
|
2015-12-03 03:38:31 +00:00
|
|
|
/lib/modules/%(uname -r)/extra/*
|
2013-09-26 16:22:16 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/*
|
|
|
|
|
|
|
|
%files devel
|
2015-12-03 03:38:31 +00:00
|
|
|
%{_includedir}/dpdk
|
|
|
|
%{_datadir}/dpdk/mk
|
2016-12-15 21:46:47 +00:00
|
|
|
%{_datadir}/dpdk/buildtools
|
2015-12-03 03:38:31 +00:00
|
|
|
%{_datadir}/dpdk/%{target}
|
|
|
|
%{_datadir}/dpdk/examples
|
2014-07-02 16:31:45 +00:00
|
|
|
|
|
|
|
%files doc
|
2015-12-03 03:38:31 +00:00
|
|
|
%doc %{_docdir}/dpdk
|
2013-09-26 16:22:16 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/depmod
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/depmod
|