1
0
forked from pool/libqt5-qtbase

Accepting request 251413 from KDE:Qt5

- Build without sse2 instructions by default for %ix86 architecture, and rebuild QtCore and QtuGui modules with sse2 (they are installed to %_libdir/sse2 (bnc#897758)

OBS-URL: https://build.opensuse.org/request/show/251413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=28
This commit is contained in:
Stephan Kulow 2014-09-24 11:09:12 +00:00 committed by Git OBS Bridge
parent 046e158e2c
commit 8335382250
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Sep 22 17:36:17 UTC 2014 - hrvoje.senjan@gmail.com
- Build without sse2 instructions by default for %ix86 architecture,
and rebuild QtCore and QtuGui modules with sse2 (they are installed
to %_libdir/sse2 (bnc#897758)
-------------------------------------------------------------------
Tue Sep 16 11:27:49 UTC 2014 - hrvoje.senjan@gmail.com

View File

@ -663,6 +663,9 @@ echo yes | ./configure $platform \
-reduce-relocations \
%else
-no-reduce-relocations \
%endif
%ifarch %ix86
-no-sse2 -no-pch \
%endif
-optimized-qmake \
-accessibility \
@ -727,6 +730,19 @@ make %{?_smp_mflags}
%install
make INSTALL_ROOT=%{buildroot} install
%ifarch %ix86
install -d %{buildroot}%{libqt5_libdir}/sse2/
pushd src/corelib; make clean ; ../../bin/qmake -config sse2; make %{?_smp_mflags}
cp -av ../../lib/libQt5Core.so.* %{buildroot}%{libqt5_libdir}/sse2/
popd
pushd src/gui; ../../bin/qmake -config sse2; make %{?_smp_mflags}
cp -av ../../lib/libQt5Gui.so.* %{buildroot}%{libqt5_libdir}/sse2/
popd
%endif
install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.qt5
# argggh, qmake is such a piece of <censored>
find %{buildroot}/%{libqt5_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L$RPM_BUILD_DIR/\S+,,g" {} \;
@ -839,6 +855,10 @@ done
%defattr(-,root,root,755)
%doc *.txt LICENSE.*
%{libqt5_libdir}/libQt5Core.so.*
%ifarch %ix86
%dir %{libqt5_libdir}/sse2
%{libqt5_libdir}/sse2/libQt5Core.so.*
%endif
%files -n libQt5Core-devel
%defattr(-,root,root,755)
@ -982,6 +1002,9 @@ done
%defattr(-,root,root,755)
%doc *.txt LICENSE.*
%{libqt5_libdir}/libQt5Gui.so.*
%ifarch %ix86
%{libqt5_libdir}/sse2/libQt5Gui.so.*
%endif
%{libqt5_plugindir}/generic
%{libqt5_plugindir}/imageformats
%{libqt5_plugindir}/platforminputcontexts