5.2.0-0.1.alpha

- 5.2.0-alpha
- -system-harfbuzz
- rename subpkg -x11 => -gui
- move some gui-related plugins base => -gui
- don't use symlinks in %_qt5_bindir (more qtchooser-friendly)
This commit is contained in:
Rex Dieter 2013-10-02 09:21:15 -05:00
parent bb1c6562ac
commit 3bc8a77c43
4 changed files with 56 additions and 27 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/qtbase-opensource-src-5.0.2.tar.xz
/qtbase-opensource-src-5.1.1.tar.xz /qtbase-opensource-src-5.1.1.tar.xz
/qtbase-opensource-src-5.2.0-alpha.tar.xz

View File

@ -14,18 +14,23 @@
# define to build docs, need to undef this for bootstrapping # define to build docs, need to undef this for bootstrapping
# where qt5-qttools builds are not yet available # where qt5-qttools builds are not yet available
# FIXME: noarch -doc content different between archs %define docs 1
#define docs 1
%define pre alpha
Summary: Qt5 - QtBase components Summary: Qt5 - QtBase components
Name: qt5-qtbase Name: qt5-qtbase
Version: 5.1.1 Version: 5.2.0
Release: 6%{?dist} Release: 0.1.%{pre}%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: http://qt-project.org/ Url: http://qt-project.org/
Source0: http://download.qt-project.org/official_releases/qt/5.1/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz %if 0%{?pre:1}
Source0: http://download.qt-project.org/development_releases/qt/5.2/%{version}-%{pre}/submodules/%{qt_module}-opensource-src-%{version}-%{pre}.tar.xz
%else
Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
%endif
# http://bugzilla.redhat.com/1005482 # http://bugzilla.redhat.com/1005482
ExcludeArch: ppc64 ppc ExcludeArch: ppc64 ppc
@ -43,6 +48,8 @@ Patch2: qtbase-multilib_optflags.patch
Patch50: qt5-poll.patch Patch50: qt5-poll.patch
# fix big endian builds # fix big endian builds
Patch51: qtbase-opensource-src-5.1.1-bigendian.patch Patch51: qtbase-opensource-src-5.1.1-bigendian.patch
# fix build with -system-harfbuzz
Patch52: qtbase-opensource-src-5.2.0-alpha-harfbuzz.patch
##upstream patches ##upstream patches
@ -90,6 +97,8 @@ BuildRequires: pkgconfig(openssl)
%if 0%{?fedora} || 0%{?rhel} > 6 %if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: pkgconfig(atspi-2) BuildRequires: pkgconfig(atspi-2)
BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(harfbuzz)
%define harfbuzz -system-harfbuzz
BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(libpcre) >= 8.30 BuildRequires: pkgconfig(libpcre) >= 8.30
%define pcre -system-pcre %define pcre -system-pcre
@ -114,7 +123,7 @@ handling.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-x11%{?_isa} Requires: %{name}-gui%{?_isa}
Requires: pkgconfig(gl) Requires: pkgconfig(gl)
%description devel %description devel
%{summary}. %{summary}.
@ -170,15 +179,17 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%{summary}. %{summary}.
# debating whether to do 1 subpkg per library or not -- rex # debating whether to do 1 subpkg per library or not -- rex
%package x11 %package gui
Summary: Qt5 GUI-related libraries Summary: Qt5 GUI-related libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description x11 Obsoletes: qt5-qtbase-x11 < 5.2.0
Provides: qt5-qtbase-x11 = %{version}-%{release}
%description gui
Qt5 libraries used for drawing widgets and OpenGL items. Qt5 libraries used for drawing widgets and OpenGL items.
%prep %prep
%setup -q -n qtbase-opensource-src-%{version} %setup -q -n qtbase-opensource-src-%{version}%{?pre:-%{pre}}
%patch2 -p1 -b .multilib_optflags %patch2 -p1 -b .multilib_optflags
# drop backup file(s), else they get installed too, http://bugzilla.redhat.com/639463 # drop backup file(s), else they get installed too, http://bugzilla.redhat.com/639463
@ -186,6 +197,7 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
#patch50 -p1 -b .poll #patch50 -p1 -b .poll
%patch51 -p1 -b .bigendian %patch51 -p1 -b .bigendian
%patch52 -p1 -b .harfbuzz
# drop -fexceptions from $RPM_OPT_FLAGS # drop -fexceptions from $RPM_OPT_FLAGS
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'` RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
@ -252,6 +264,7 @@ popd
-no-separate-debug-info \ -no-separate-debug-info \
-no-strip \ -no-strip \
-reduce-relocations \ -reduce-relocations \
%{?harfbuzz} \
-system-libjpeg \ -system-libjpeg \
-system-libpng \ -system-libpng \
%{?pcre} \ %{?pcre} \
@ -326,19 +339,17 @@ EOF
# create/own dirs # create/own dirs
mkdir -p %{buildroot}{%{_qt5_archdatadir}/mkspecs/modules,%{_qt5_importdir},%{_qt5_libexecdir},%{_qt5_plugindir}/iconengines,%{_qt5_translationdir}} mkdir -p %{buildroot}{%{_qt5_archdatadir}/mkspecs/modules,%{_qt5_importdir},%{_qt5_libexecdir},%{_qt5_plugindir}/iconengines,%{_qt5_translationdir}}
# put non-conflicting binaries with -qt5 postfix in %{_bindir} # hardlink files to %{_bindir}, add -qt5 postfix to not conflict
mkdir %{buildroot}%{_bindir} mkdir %{buildroot}%{_bindir}
pushd %{buildroot}%{_qt5_bindir} pushd %{buildroot}%{_qt5_bindir}
for i in * ; do for i in * ; do
case "${i}" in case "${i}" in
moc|qdbuscpp2xml|qdbusxml2cpp|qmake|rcc|syncqt|uic) moc|qdbuscpp2xml|qdbusxml2cpp|qmake|rcc|syncqt|uic)
mv $i ../../../bin/${i}-qt5 ln -v ${i} %{buildroot}%{_bindir}/${i}-qt5
ln -s ../../../bin/${i}-qt5 . ln -sv ${i} ${i}-qt5
ln -s ../../../bin/${i}-qt5 $i
;; ;;
*) *)
mv $i ../../../bin/ ln -v ${i} %{buildroot}%{_bindir}/${i}
ln -s ../../../bin/$i .
;; ;;
esac esac
done done
@ -353,7 +364,7 @@ popd
%ifarch %{multilib_archs} %ifarch %{multilib_archs}
mv qt5.conf qt5-%{__isa_bits}.conf mv qt5.conf qt5-%{__isa_bits}.conf
%ifarch %{multilib_basearchs} %ifarch %{multilib_basearchs}
ln -sf qt5-%{__isa_bits}.conf qt5.conf ln -sv qt5-%{__isa_bits}.conf qt5.conf
%endif %endif
%endif %endif
popd popd
@ -403,6 +414,7 @@ popd
%{_qt5_libdir}/libQt5Test.so.5* %{_qt5_libdir}/libQt5Test.so.5*
%{_qt5_libdir}/libQt5Xml.so.5* %{_qt5_libdir}/libQt5Xml.so.5*
%dir %{_qt5_docdir}/ %dir %{_qt5_docdir}/
%{_qt5_docdir}/global/
%{_qt5_importdir}/ %{_qt5_importdir}/
%{_qt5_translationdir}/ %{_qt5_translationdir}/
%dir %{_qt5_prefix}/ %dir %{_qt5_prefix}/
@ -417,11 +429,8 @@ popd
%dir %{_qt5_plugindir}/generic/ %dir %{_qt5_plugindir}/generic/
%dir %{_qt5_plugindir}/imageformats/ %dir %{_qt5_plugindir}/imageformats/
%dir %{_qt5_plugindir}/platforminputcontexts/ %dir %{_qt5_plugindir}/platforminputcontexts/
%{_qt5_plugindir}/platforminputcontexts/libcomposeplatforminputcontextplugin.so
%dir %{_qt5_plugindir}/platforms/ %dir %{_qt5_plugindir}/platforms/
%{_qt5_plugindir}/platforms/libqoffscreen.so
%dir %{_qt5_plugindir}/platformthemes/ %dir %{_qt5_plugindir}/platformthemes/
%{_qt5_plugindir}/platformthemes/libqgtk2.so
%dir %{_qt5_plugindir}/printsupport/ %dir %{_qt5_plugindir}/printsupport/
%dir %{_qt5_plugindir}/sqldrivers/ %dir %{_qt5_plugindir}/sqldrivers/
%{_qt5_plugindir}/sqldrivers/libqsqlite.so %{_qt5_plugindir}/sqldrivers/libqsqlite.so
@ -429,7 +438,6 @@ popd
%if 0%{?docs} %if 0%{?docs}
%files doc %files doc
%{_qt5_docdir}/*.qch %{_qt5_docdir}/*.qch
%{_qt5_docdir}/global/
%{_qt5_docdir}/qdoc/ %{_qt5_docdir}/qdoc/
%{_qt5_docdir}/qmake/ %{_qt5_docdir}/qmake/
%{_qt5_docdir}/qtconcurrent/ %{_qt5_docdir}/qtconcurrent/
@ -558,10 +566,10 @@ popd
%files tds %files tds
%{_qt5_plugindir}/sqldrivers/libqsqltds.so %{_qt5_plugindir}/sqldrivers/libqsqltds.so
%post x11 -p /sbin/ldconfig %post gui -p /sbin/ldconfig
%postun x11 -p /sbin/ldconfig %postun gui -p /sbin/ldconfig
%files x11 %files gui
%{_qt5_libdir}/libQt5Gui.so.5* %{_qt5_libdir}/libQt5Gui.so.5*
%{_qt5_libdir}/libQt5OpenGL.so.5* %{_qt5_libdir}/libQt5OpenGL.so.5*
%{_qt5_libdir}/libQt5PrintSupport.so.5* %{_qt5_libdir}/libQt5PrintSupport.so.5*
@ -574,15 +582,24 @@ popd
%{_qt5_plugindir}/imageformats/libqgif.so %{_qt5_plugindir}/imageformats/libqgif.so
%{_qt5_plugindir}/imageformats/libqico.so %{_qt5_plugindir}/imageformats/libqico.so
%{_qt5_plugindir}/imageformats/libqjpeg.so %{_qt5_plugindir}/imageformats/libqjpeg.so
%{_qt5_plugindir}/platforminputcontexts/libcomposeplatforminputcontextplugin.so
%{_qt5_plugindir}/platforminputcontexts/libibusplatforminputcontextplugin.so %{_qt5_plugindir}/platforminputcontexts/libibusplatforminputcontextplugin.so
%{_qt5_plugindir}/platforminputcontexts/libmaliitplatforminputcontextplugin.so
%{_qt5_plugindir}/platforms/libqlinuxfb.so %{_qt5_plugindir}/platforms/libqlinuxfb.so
%{_qt5_plugindir}/platforms/libqminimal.so %{_qt5_plugindir}/platforms/libqminimal.so
%{_qt5_plugindir}/platforms/libqoffscreen.so
%{_qt5_plugindir}/platforms/libqxcb.so %{_qt5_plugindir}/platforms/libqxcb.so
%{_qt5_plugindir}/platformthemes/libqgtk2.so
%{_qt5_plugindir}/printsupport/libcupsprintersupport.so %{_qt5_plugindir}/printsupport/libcupsprintersupport.so
%changelog %changelog
* Tue Oct 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 5.2.0-0.1.alpha
- 5.2.0-alpha
- -system-harfbuzz
- rename subpkg -x11 => -gui
- move some gui-related plugins base => -gui
- don't use symlinks in %%_qt5_bindir (more qtchooser-friendly)
* Fri Sep 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 5.1.1-6 * Fri Sep 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 5.1.1-6
- -doc subpkg (not enabled) - -doc subpkg (not enabled)
- enable %%check - enable %%check

View File

@ -0,0 +1,12 @@
diff -up qtbase-opensource-src-5.2.0-alpha/src/gui/text/qtextengine.cpp.harfbuzz qtbase-opensource-src-5.2.0-alpha/src/gui/text/qtextengine.cpp
--- qtbase-opensource-src-5.2.0-alpha/src/gui/text/qtextengine.cpp.harfbuzz 2013-09-27 06:05:10.000000000 -0500
+++ qtbase-opensource-src-5.2.0-alpha/src/gui/text/qtextengine.cpp 2013-10-01 12:20:23.089054279 -0500
@@ -1098,7 +1098,7 @@ int QTextEngine::shapeTextWithHarfbuzzNG
hb_buffer_set_segment_properties(buffer, &props);
hb_buffer_guess_segment_properties(buffer);
- uint buffer_flags = HB_BUFFER_FLAG_DEFAULT;
+ uint buffer_flags = HB_BUFFER_FLAGS_DEFAULT;
// Symbol encoding used to encode various crap in the 32..255 character code range,
// and thus might override U+00AD [SHY]; avoid hiding default ignorables
if (actualFontEngine->symbol)

View File

@ -1 +1 @@
955d1e4da875f3872ef3208f21a757dd qtbase-opensource-src-5.1.1.tar.xz 9dcb69e03aa9c11ad42b8dd184c3a764 qtbase-opensource-src-5.2.0-alpha.tar.xz