!118 remove rpath by cmake

From: @duguhaotian 
Reviewed-by: @jingwoo 
Signed-off-by: @jingwoo
This commit is contained in:
openeuler-ci-bot 2022-06-02 10:23:02 +00:00 committed by Gitee
commit 260ac59d77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,5 +1,5 @@
%global _version 2.0.7
%global _release 1
%global _release 2
Name: clibcni
Version: %{_version}
Release: %{_release}
@ -45,13 +45,9 @@ the %{name}-libs package contains libraries for running %{name} applications.
%build
mkdir -p build
cd build
%cmake -DDEBUG=ON -DENABLE_UT=ON -DLIB_INSTALL_DIR=%{_libdir} ../
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} ../
%make_build
pushd tests
ctest -V
popd
%install
rm -rf %{buildroot}
cd build
@ -91,6 +87,12 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Thu Jun 2 2022 haozi007 <liuhao27@huawei.com> - 2.0.7-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove rpath by cmake
* Thu Feb 24 2022 wangfengtu <wangfengtu@huawei.com> - 2.0.7-1
- Type: enhancement
- ID: NA