File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,19 @@ mkdir -p %{i}/lib %{i}/include
7676# the files that we are copying.
7777pushd stage/lib
7878 find . -name " *.%{dynamic_lib_ext}*" -type f | tar cf - -T - | (cd %{i}/lib; tar xfp -)
79+ find . -name " *.cmake" -type f | tar cf - -T - | (cd %{i}/lib; tar xfp -)
7980popd
8081find boost -name ' *.[hi]*' | tar cf - -T - | ( cd %{i}/include; tar xfp -)
8182
83+ # relocate the CMake files
84+ find %{i }/lib/cmake -name '*.cmake' | xargs sed -i \
85+ -e's#%{_builddir}/%{n}-%{realversion}/stage#%{i}#g' \
86+ -e's#_BOOST_INCLUDEDIR "${_BOOST_CMAKEDIR}/../../../"#_BOOST_INCLUDEDIR "${_BOOST_CMAKEDIR}/../../include/"#g'
87+
8288for l in $(find %{i }/lib -name "*.%{dynamic_lib_ext }.*")
8389do
8490 ln -s $(basename ${l}) $(echo ${l} | sed -e "s|[.]%{dynamic_lib_ext }[.].*|.%{dynamic_lib_ext }|")
8591done
92+
93+ %post
94+ %relocateConfigAll lib/cmake * .cmake
You can’t perform that action at this time.
0 commit comments