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
|
Name: dpdk
|
||||||
Version: 21.11
|
Version: 21.11
|
||||||
Release: 3
|
Release: 4
|
||||||
Packager: packaging@6wind.com
|
Packager: packaging@6wind.com
|
||||||
URL: http://dpdk.org
|
URL: http://dpdk.org
|
||||||
%global source_version 21.11
|
%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
|
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
|
||||||
ln -fs /usr/local/bin/dpdk-devbind.py $RPM_BUILD_ROOT/usr/local/bin/dpdk-devbind
|
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
|
mkdir $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib
|
||||||
ln -fs ../../../local/include/* .
|
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 -
|
cd -
|
||||||
|
|
||||||
strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/rte_kni.ko
|
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
|
/lib/modules/%{kern_devel_ver}/extra/dpdk/*.ko
|
||||||
/usr/lib64/*.so*
|
/usr/lib64/*.so*
|
||||||
/usr/lib64/dpdk/*
|
/usr/lib64/dpdk/*
|
||||||
%exclude /usr/lib64/dpdk/pmds-22.0/*.h
|
%exclude /usr/lib64/dpdk/pmds-22.0/include/*.h
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/usr/lib64/*.a
|
/usr/lib64/*.a
|
||||||
/usr/lib64/dpdk/pmds-22.0/*.h
|
/usr/lib64/dpdk/pmds-22.0/include/*.h
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
|
|
||||||
@ -122,6 +127,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
|
|||||||
/usr/sbin/depmod
|
/usr/sbin/depmod
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jan 10 2022 jiangheng <jiangheng12@huawei.com> - 21.11-3
|
||||||
- add /usr/lib64/dpdk/*, here are some so files
|
- add /usr/lib64/dpdk/*, here are some so files
|
||||||
- put lib file and header file in the same directory for third-party lib compile
|
- put lib file and header file in the same directory for third-party lib compile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user