From 81a2c193779d1ff396494917ad0f309aaa49b6bb Mon Sep 17 00:00:00 2001 From: jinag12 Date: Wed, 12 Jan 2022 03:03:22 +0000 Subject: [PATCH] modify location of header and library Files (cherry picked from commit ce8b06da1eb65e0c6dd81a1ddffa9b999dd0d47c) --- dpdk.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/dpdk.spec b/dpdk.spec index eaea167..1aba6d3 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,6 +1,6 @@ Name: dpdk Version: 21.11 -Release: 3 +Release: 4 Packager: packaging@6wind.com URL: http://dpdk.org %global source_version 21.11 @@ -81,8 +81,13 @@ mv $RPM_BUILD_ROOT/usr/local/lib64/* $RPM_BUILD_ROOT/usr/lib64/ mkdir -p $RPM_BUILD_ROOT/usr/local/bin ln -fs /usr/local/bin/dpdk-devbind.py $RPM_BUILD_ROOT/usr/local/bin/dpdk-devbind -cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0 -ln -fs ../../../local/include/* . +mkdir $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib +mkdir $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/include +cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/include +ln -fs ../../../../local/include/* . +cd - +cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib +ln -fs ../../../*.so . cd - strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/rte_kni.ko @@ -97,12 +102,12 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko /lib/modules/%{kern_devel_ver}/extra/dpdk/*.ko /usr/lib64/*.so* /usr/lib64/dpdk/* -%exclude /usr/lib64/dpdk/pmds-22.0/*.h +%exclude /usr/lib64/dpdk/pmds-22.0/include/*.h %files devel /usr/local/include /usr/lib64/*.a -/usr/lib64/dpdk/pmds-22.0/*.h +/usr/lib64/dpdk/pmds-22.0/include/*.h %files doc @@ -122,6 +127,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko /usr/sbin/depmod %changelog +* Wed Jan 12 2022 jiangheng - 21.11-4 +- modify location of header and library Files + * Mon Jan 10 2022 jiangheng - 21.11-3 - add /usr/lib64/dpdk/*, here are some so files - put lib file and header file in the same directory for third-party lib compile -- Gitee