Accepting request 296826 from KDE:Qt5

Adjust usage of latest %qmake5_install macro

OBS-URL: https://build.opensuse.org/request/show/296826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtdeclarative?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2015-04-21 23:10:45 +00:00 committed by Git OBS Bridge
parent 84d05239bd
commit 52a4e161c6
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 9 17:30:27 UTC 2015 - hrvoje.senjan@gmail.com
- Adjust usage of latest %qmake5_install macro
-------------------------------------------------------------------
Tue Feb 24 16:10:14 UTC 2015 - hrvoje.senjan@gmail.com

View File

@ -158,12 +158,16 @@ popd
%endif
%install
%qmake5_install -C %{_target_platform}
pushd %{_target_platform}
%qmake5_install
popd
%ifarch %ix86
mkdir -p %{buildroot}%{_libqt5_libdir}//sse2
mv %{buildroot}%{_libqt5_libdir}/libQt5Qml.so.5* %{buildroot}%{_libqt5_libdir}/sse2/
%qmake5_install -C %{_target_platform}-no_sse2/src/qml
pushd %{_target_platform}-no_sse2/src/qml
%qmake5_install
popd
%endif
find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;