2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
%global qt_module qtwebkit
|
2013-10-25 00:55:49 +00:00
|
|
|
%define pre beta1
|
2013-10-02 14:30:17 +00:00
|
|
|
|
|
|
|
# define to build docs, need to undef this for bootstrapping
|
|
|
|
# where qt5-qttools builds are not yet available
|
2013-10-25 00:55:49 +00:00
|
|
|
%define docs 1
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
Summary: Qt5 - QtWebKit components
|
|
|
|
Name: qt5-qtwebkit
|
2013-10-02 14:30:17 +00:00
|
|
|
Version: 5.2.0
|
2013-10-25 00:55:49 +00:00
|
|
|
Release: 0.3.%{pre}%{?dist}
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
|
|
|
|
# See also http://qt-project.org/doc/qt-5.0/qtdoc/licensing.html
|
|
|
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
|
|
|
Url: http://qt-project.org/
|
2013-10-02 14:30:17 +00:00
|
|
|
%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
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
# Search /usr/lib{,64}/mozilla/plugins-wrapped for browser plugins too
|
|
|
|
Patch1: webkit-qtwebkit-2.2-tp1-pluginpath.patch
|
|
|
|
|
|
|
|
# smaller debuginfo s/-g/-g1/ (debian uses -gstabs) to avoid 4gb size limit
|
|
|
|
Patch3: qtwebkit-opensource-src-5.0.1-debuginfo.patch
|
|
|
|
|
|
|
|
# tweak linker flags to minimize memory usage on "small" platforms
|
2013-08-28 17:36:15 +00:00
|
|
|
Patch4: qtwebkit-save_memory.patch
|
2013-08-02 13:25:47 +00:00
|
|
|
|
2013-08-02 15:47:35 +00:00
|
|
|
# use unbundled system angleproject library
|
|
|
|
#define system_angle 1
|
2013-08-28 17:36:15 +00:00
|
|
|
# NEEDS REBASE for 5.1 -- rex
|
2013-08-02 13:25:47 +00:00
|
|
|
Patch5: qtwebkit-opensource-src-5.0.2-system_angle.patch
|
|
|
|
# Fix compilation against latest ANGLE
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=109127
|
|
|
|
Patch6: webkit-commit-142567.patch
|
|
|
|
%if 0%{?system_angle}
|
|
|
|
BuildRequires: angleproject-devel angleproject-static
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel >= %{version}
|
|
|
|
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gperf
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
2013-09-06 14:24:32 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 6
|
2013-10-02 14:30:17 +00:00
|
|
|
# gstreamer media support
|
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-app-1.0)
|
2013-08-02 13:25:47 +00:00
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
2013-09-10 19:08:21 +00:00
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2013-09-06 14:24:32 +00:00
|
|
|
%else
|
2013-10-02 14:30:17 +00:00
|
|
|
# gstreamer media support
|
|
|
|
BuildRequires: pkgconfig(gstreamer-0.10) pkgconfig(gstreamer-app-0.10)
|
2013-09-06 14:24:32 +00:00
|
|
|
BuildRequires: libicu-devel
|
|
|
|
%endif
|
2013-08-02 13:25:47 +00:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libpcre)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
BuildRequires: pkgconfig(xcomposite) pkgconfig(xrender)
|
2013-10-18 19:54:29 +00:00
|
|
|
BuildRequires: perl perl(version) perl(Digest::MD5) perl(Text::ParseWords)
|
2013-08-02 13:25:47 +00:00
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
|
|
|
|
|
|
|
|
##upstream patches
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
|
|
Requires: qt5-qtdeclarative-devel%{?_isa}
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
%package doc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# for qhelpgenerator
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
%endif
|
|
|
|
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n qtwebkit-opensource-src-%{version}%{?pre:-%{pre}}
|
|
|
|
|
|
|
|
%patch1 -p1 -b .pluginpath
|
|
|
|
%patch3 -p1 -b .debuginfo
|
|
|
|
%patch4 -p1 -b .save_memory
|
|
|
|
%if 0%{?system_angle}
|
2013-08-28 17:36:15 +00:00
|
|
|
#patch5 -p1 -b .system_angle
|
2013-08-02 13:25:47 +00:00
|
|
|
%patch6 -p1 -b .svn142567
|
|
|
|
%endif
|
|
|
|
|
|
|
|
echo "nuke bundled code..."
|
|
|
|
# nuke bundled code
|
|
|
|
mkdir Source/ThirdParty/orig
|
2013-10-02 14:30:17 +00:00
|
|
|
mv Source/ThirdParty/{gtest/,qunit/} \
|
2013-08-02 13:25:47 +00:00
|
|
|
Source/ThirdParty/orig/
|
|
|
|
|
|
|
|
%if 0%{?system_angle}
|
|
|
|
mv Source/ThirdParty/ANGLE/ \
|
|
|
|
Source/ThirdParty/orig/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{_qt5_qmake} %{?system_angle:DEFINES+=USE_SYSTEM_ANGLE=1}
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
make %{?_smp_mflags} docs
|
|
|
|
%endif
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
%install
|
2013-08-02 13:25:47 +00:00
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
make install_docs INSTALL_ROOT=%{buildroot}
|
|
|
|
%endif
|
|
|
|
|
2013-08-02 13:25:47 +00:00
|
|
|
## .prl file love (maybe consider just deleting these -- rex
|
|
|
|
# nuke dangling reference(s) to %%buildroot, excessive (.la-like) libs
|
|
|
|
sed -i \
|
|
|
|
-e "/^QMAKE_PRL_BUILD_DIR/d" \
|
|
|
|
-e "/^QMAKE_PRL_LIBS/d" \
|
|
|
|
%{buildroot}%{_qt5_libdir}/*.prl
|
|
|
|
|
|
|
|
## unpackaged files
|
|
|
|
# .la files, die, die, die.
|
|
|
|
rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
|
|
|
|
|
|
|
|
## kill rpath's
|
|
|
|
pushd %{buildroot}
|
|
|
|
for remove_rpath in \
|
|
|
|
%{_qt5_libexecdir}/QtWebPluginProcess \
|
|
|
|
%{_qt5_libexecdir}/QtWebProcess \
|
|
|
|
%{_qt5_archdatadir}/qml/QtWebKit/libqmlwebkitplugin.so \
|
|
|
|
%{_qt5_archdatadir}/qml/QtWebKit/experimental/libqmlwebkitexperimentalplugin.so \
|
|
|
|
; do
|
|
|
|
chrpath --list %{buildroot}$remove_rpath
|
|
|
|
chrpath --delete %{buildroot}$remove_rpath
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Source/WebCore/LICENSE*
|
2013-10-02 14:30:17 +00:00
|
|
|
%doc ChangeLog* VERSION
|
2013-08-02 13:25:47 +00:00
|
|
|
%{_qt5_libdir}/libQt5WebKit.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5WebKitWidgets.so.5*
|
|
|
|
%{_qt5_libexecdir}/QtWebPluginProcess
|
|
|
|
%{_qt5_libexecdir}/QtWebProcess
|
|
|
|
%{_qt5_archdatadir}/qml/QtWebKit/
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_qt5_headerdir}/Qt*/
|
|
|
|
%{_qt5_libdir}/libQt5*.so
|
|
|
|
%{_qt5_libdir}/libQt5*.prl
|
|
|
|
%{_qt5_libdir}/cmake/Qt5*/
|
|
|
|
%{_qt5_libdir}/pkgconfig/Qt5*.pc
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/*.pri
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
%if 0%{?docs}
|
|
|
|
%files doc
|
|
|
|
%{_qt5_docdir}/qtwebkit.qch
|
|
|
|
%{_qt5_docdir}/qtwebkit/
|
|
|
|
%endif
|
|
|
|
|
2013-08-02 13:25:47 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-10-25 00:55:49 +00:00
|
|
|
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
|
|
|
|
- 5.2.0-beta1
|
|
|
|
|
2013-10-16 18:11:12 +00:00
|
|
|
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
|
|
|
|
- bootstrap ppc
|
|
|
|
|
2013-10-02 14:30:17 +00:00
|
|
|
* Wed Oct 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
|
|
|
|
- 5.2.0-alpha
|
|
|
|
- -doc subpkg
|
|
|
|
- use gstreamer1 (where available)
|
|
|
|
|
2013-08-28 17:36:15 +00:00
|
|
|
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
|
|
|
|
- 5.1.1
|
|
|
|
|
2013-08-20 12:06:39 +00:00
|
|
|
* Tue Aug 20 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-8
|
|
|
|
- qt5-qtjsbackend only supports ix86, x86_64 and arm
|
|
|
|
|
2013-08-02 15:47:35 +00:00
|
|
|
* Fri Aug 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-7
|
|
|
|
- use bundled angleproject (until system version passes review)
|
|
|
|
|
2013-08-02 13:25:47 +00:00
|
|
|
* Fri Jun 21 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-6
|
|
|
|
- %%doc ChangeLog VERSION
|
|
|
|
- %%doc Source/WebCore/LICENSE*
|
|
|
|
- squash more rpaths
|
|
|
|
|
|
|
|
* Fri May 17 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-5
|
|
|
|
- unbundle angleproject code
|
|
|
|
|
|
|
|
* Wed May 15 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-4
|
|
|
|
- BR: perl(version) perl(Digest::MD5) pkgconfig(xslt)
|
|
|
|
- deal with bundled code
|
|
|
|
- add (commented) upstream link http://qt-project.org/doc/qt-5.0/qtdoc/licensing.html
|
|
|
|
to clarify licensing
|
|
|
|
|
|
|
|
* Thu May 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-3
|
|
|
|
- -devel: Requires: qt5-qtdeclarative-devel
|
|
|
|
|
|
|
|
* Fri Apr 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
|
|
|
|
- BR: qt5-qtdeclarative-devel
|
|
|
|
|
|
|
|
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
|
|
|
|
- 5.0.2
|
|
|
|
|
|
|
|
* Mon Feb 25 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-2
|
|
|
|
- .prl love
|
|
|
|
- BR: pkgconfig(gl)
|
|
|
|
|
|
|
|
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
|
|
|
|
- first try
|
|
|
|
|