2014-07-10 19:52:18 +00:00
|
|
|
%global rel 1.0
|
2014-06-06 21:00:32 +00:00
|
|
|
|
|
|
|
# As per packaging guidelines, since dpdk is pre-release, this is the git hash
|
|
|
|
# that I used with git archive to build the source tarball and the date on which
|
|
|
|
# I did it
|
|
|
|
|
|
|
|
Name: dpdk
|
|
|
|
Version: 1.7.0
|
2014-07-10 19:52:18 +00:00
|
|
|
Release: %{rel}%{?dist}
|
2014-06-06 21:00:32 +00:00
|
|
|
URL: http://dpdk.org
|
2014-07-10 19:52:18 +00:00
|
|
|
Source: http://dpdk.org/browse/dpdk/snapshot/dpdk-%{version}.tar.gz
|
|
|
|
Source1: defconfig_x86_64-native-linuxapp-gcc
|
|
|
|
Source2: defconfig_i686-native-linuxapp-gcc
|
2014-06-06 21:00:32 +00:00
|
|
|
Source3: common_linuxapp
|
|
|
|
|
2014-07-10 19:52:18 +00:00
|
|
|
Patch0: dpdk-debug.patch
|
|
|
|
|
2014-06-06 21:00:32 +00:00
|
|
|
|
|
|
|
Summary: Data Plane Development Kit core
|
|
|
|
|
|
|
|
#
|
|
|
|
# Note that, while this is dual licensed, all code that is included with this
|
|
|
|
# Pakcage are BSD licensed. The only files that aren't licensed via BSD is the
|
|
|
|
# kni kernel module which is dual LGPLv2/BSD, and thats not built for fedora.
|
|
|
|
#
|
|
|
|
License: BSD and LGPLv2 and GPLv2
|
|
|
|
|
|
|
|
#
|
|
|
|
# The DPDK is designed to optimize througput of network traffic using, among
|
|
|
|
# other techniques, carefully crafted x86 assembly instructions. As such it
|
|
|
|
# currently (and likely never will) run on non-x86 platforms
|
|
|
|
#
|
2014-07-01 15:09:58 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
|
2014-07-10 19:52:18 +00:00
|
|
|
%global machine native
|
|
|
|
|
2014-07-01 15:09:58 +00:00
|
|
|
%ifarch x86_64
|
2014-07-10 19:52:18 +00:00
|
|
|
%global target x86_64-%{machine}-linuxapp-gcc
|
2014-07-01 15:09:58 +00:00
|
|
|
%else
|
2014-07-10 19:52:18 +00:00
|
|
|
%global target i686-%{machine}-linuxapp-gcc
|
2014-07-01 15:09:58 +00:00
|
|
|
%endif
|
|
|
|
|
2014-06-06 21:00:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: kernel-devel, kernel-headers, libpcap-devel, doxygen
|
|
|
|
|
|
|
|
%description
|
|
|
|
DPDK core includes kernel modules, core libraries and tools.
|
|
|
|
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
|
|
|
|
Summary: Data Plane Development Kit core for development
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
DPDK core-devel is a set of makefiles, headers, examples and documentation
|
|
|
|
for fast packet processing on x86 platforms.
|
|
|
|
More libraries are available as extensions in other packages.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Data Plane Development Kit core programming API documentation
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
DPDK core library API programming documentation
|
|
|
|
|
|
|
|
%global destdir %{buildroot}%{_prefix}
|
|
|
|
%global datadir %{_datadir}/%{name}-%{version}
|
|
|
|
%global docdir %{_docdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
cp %{SOURCE1} ./config/
|
|
|
|
cp %{SOURCE2} ./config/
|
|
|
|
cp %{SOURCE3} ./config/
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
2014-06-09 16:07:22 +00:00
|
|
|
# need to enable debuginfo
|
2014-07-01 15:09:58 +00:00
|
|
|
|
2014-07-03 11:45:28 +00:00
|
|
|
#Note that RPM_OPT_FLAGS is not being used here as it conflicts with
|
|
|
|
#Flags that the package sets.
|
2014-07-10 19:52:18 +00:00
|
|
|
make V=1 O=%{target} T=%{target} config
|
|
|
|
make V=1 O=%{target}
|
|
|
|
make V=1 O=%{target} doc
|
2014-06-06 21:00:32 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-09 16:07:22 +00:00
|
|
|
make V=1 O=%{target} DESTDIR=%{destdir}
|
2014-07-10 19:52:18 +00:00
|
|
|
find %{destdir} -name '*.orig' | xargs rm -f
|
2014-06-06 21:00:32 +00:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mv %{destdir}/%{target}/app/testpmd %{buildroot}%{_bindir}/testpmd-%{version}
|
|
|
|
rmdir %{destdir}/%{target}/app
|
|
|
|
mv %{destdir}/%{target}/include/* %{buildroot}%{_includedir}/%{name}-%{version}
|
|
|
|
mv %{destdir}/%{target}/lib/* %{buildroot}%{_libdir}/%{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}%{docdir}
|
|
|
|
mv %{destdir}/%{target}/doc/* %{buildroot}%{docdir}
|
|
|
|
rmdir %{destdir}/%{target}/doc
|
|
|
|
mkdir -p %{buildroot}%{datadir}
|
|
|
|
mv %{destdir}/%{target}/.config %{buildroot}%{datadir}/config
|
|
|
|
rm -rf %{destdir}/%{target}/kmod
|
|
|
|
mv %{destdir}/%{target} %{buildroot}%{datadir}
|
|
|
|
rm -rf %{destdir}/mk
|
|
|
|
rm -rf %{destdir}/scripts
|
|
|
|
cp -a tools %{buildroot}%{datadir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
# BSD
|
|
|
|
%dir %{datadir}
|
|
|
|
%{datadir}/config
|
|
|
|
# Theres no point in packaging any of the tools
|
|
|
|
# We currently don't need the igb uio script, there
|
|
|
|
# are several uio scripts already available
|
|
|
|
# And the cpu_layout script functionality is
|
|
|
|
# covered by lscpu
|
|
|
|
%exclude %{datadir}/tools
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
#BSD
|
|
|
|
%{docdir}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
#BSD
|
|
|
|
%{_includedir}/*
|
|
|
|
#%{datadir}/%{target}
|
|
|
|
%exclude %{docdir}/html
|
|
|
|
|
|
|
|
%changelog
|
2014-07-10 19:52:18 +00:00
|
|
|
* Thu Jul 10 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-1.0
|
|
|
|
- Update source to official 1.7.0 release
|
|
|
|
|
|
|
|
* Thu Jul 03 2014 - Neil Horman <nhorman@tuxdriver.com>
|
2014-07-03 11:45:28 +00:00
|
|
|
- Fixing up release numbering
|
|
|
|
|
2014-07-01 15:09:58 +00:00
|
|
|
* Tue Jul 01 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-0.9.1.20140603git5ebbb1728
|
|
|
|
- Fixed some build errors (empty debuginfo, bad 32 bit build)
|
|
|
|
|
2014-06-11 11:01:39 +00:00
|
|
|
* Wed Jun 11 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-0.9.20140603git5ebbb1728
|
|
|
|
- Fix another build dependency
|
|
|
|
|
2014-06-09 16:50:30 +00:00
|
|
|
* Mon Jun 09 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-0.8.20140603git5ebbb1728
|
|
|
|
- Fixed doc arch versioning issue
|
|
|
|
|
2014-06-09 16:07:22 +00:00
|
|
|
* Mon Jun 09 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-0.7.20140603git5ebbb1728
|
|
|
|
- Added verbose output to build
|
|
|
|
|
|
|
|
* Tue May 13 2014 - Neil Horman <nhorman@tuxdriver.com> - 1.0.7-0.6.20140603git5ebbb1728
|
2014-06-06 21:00:32 +00:00
|
|
|
- Initial Build
|
|
|
|
|