modify location of header and library Files
This commit is contained in:
parent
69be74591d
commit
ce8b06da1e
18
dpdk.spec
18
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 <jiangheng12@huawei.com> - 21.11-4
|
||||
- modify location of header and library Files
|
||||
|
||||
* Mon Jan 10 2022 jiangheng <jiangheng12@huawei.com> - 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user