qt5-qtwebkit/qt5-qtwebkit.spec

382 lines
11 KiB
RPMSpec
Raw Normal View History

2013-08-02 13:25:47 +00:00
%global qt_module qtwebkit
%global _hardened_build 1
# define to build docs, need to undef this for bootstrapping
# where qt5-qttools builds are not yet available
# only primary archs (for now), allow secondary to bootstrap
%global bootstrap 1
2015-12-10 20:40:15 +00:00
%define prerelease beta
%define docs 1
2015-06-29 21:05:11 +00:00
2013-08-02 13:25:47 +00:00
Summary: Qt5 - QtWebKit components
Name: qt5-qtwebkit
2015-12-10 20:40:15 +00:00
Version: 5.6.0
2015-12-10 21:13:36 +00:00
Release: 0.3%{?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
2015-12-10 20:40:15 +00:00
Url: http://www.qt.io
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# git clone git@github.com:qtproject/qtwebkit.git && cd qtwebkit
# git archive --prefix=qt5-qtwebkit-opensource-src-5.6.0-beta/ origin/5.6 | tar -x -C ..
# cd ../qt5-qtwebkit-opensource-src-5.6.0-beta && syncqt.pl -version 5.6.0 && cd ..
# tar cfz qt5-qtwebkit-opensource-src-5.6.0-beta.tar.gz qt5-qtwebkit-opensource-src-5.6.0-beta
Source0: %{qt_module}-opensource-src-%{version}%{?prerelease:-%{prerelease}}.tar.gz
2013-08-02 13:25:47 +00:00
# Search /usr/lib{,64}/mozilla/plugins-wrapped for browser plugins too
2013-12-02 17:26:15 +00:00
Patch1: qtwebkit-opensource-src-5.2.0-pluginpath.patch
2013-08-02 13:25:47 +00:00
# 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-12-02 17:26:15 +00:00
Patch4: qtwebkit-opensource-src-5.2.0-save_memory.patch
2013-08-02 13:25:47 +00:00
# Add AArch64 support
Patch7: 0001-Add-ARM-64-support.patch
# truly madly deeply no rpath please, kthxbye
Patch8: qtwebkit-opensource-src-5.2.1-no_rpath.patch
2013-08-02 13:25:47 +00:00
%if 0%{?system_angle}
2015-12-10 20:40:15 +00:00
BuildRequires: angleproject-devel
BuildRequires: angleproject-static
2013-08-02 13:25:47 +00:00
%endif
BuildRequires: qt5-qtbase-devel >= %{version}
2015-12-10 20:40:15 +00:00
BuildRequires: pkgconfig(Qt5Qml) >= %{version}
BuildRequires: pkgconfig(Qt5Sensors)
BuildRequires: pkgconfig(Qt5Location)
BuildRequires: pkgconfig(Qt5WebChannel)
BuildRequires: qt5-qdoc
2013-08-02 13:25:47 +00:00
BuildRequires: bison
BuildRequires: flex
BuildRequires: gperf
2014-11-19 00:45:49 +00:00
BuildRequires: libicu-devel
2013-08-02 13:25:47 +00:00
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(gio-2.0) pkgconfig(glib-2.0)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gl)
# gstreamer media support
2014-11-19 00:45:49 +00:00
%if 0%{?fedora} > 20 || 0%{?rhel} > 7
BuildRequires: pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-app-1.0)
2013-09-06 14:24:32 +00:00
%else
BuildRequires: pkgconfig(gstreamer-0.10) pkgconfig(gstreamer-app-0.10)
2013-09-06 14:24:32 +00:00
%endif
2013-08-02 13:25:47 +00:00
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libpcre)
2013-10-25 02:54:44 +00:00
BuildRequires: pkgconfig(libudev)
2014-11-19 00:45:49 +00:00
%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: pkgconfig(libwebp)
%endif
2013-08-02 13:25:47 +00:00
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xcomposite) pkgconfig(xrender)
2015-10-09 12:27:58 +00:00
BuildRequires: perl perl(version)
BuildRequires: perl(Digest::MD5) perl(Text::ParseWords) perl(Getopt::Long)
2013-08-02 13:25:47 +00:00
BuildRequires: ruby
BuildRequires: zlib-devel
2015-07-16 17:02:31 +00:00
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
%{?_qt5:Requires: qt5-qtdeclarative%{?_isa} = %{_qt5_version}}
2013-08-02 13:25:47 +00:00
##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}.
%if 0%{?docs}
%package doc
Summary: API documentation for %{name}
BuildRequires: qt5-qdoc
BuildRequires: qt5-qhelpgenerator
BuildArch: noarch
%description doc
%{summary}.
%endif
2013-08-02 13:25:47 +00:00
%prep
2015-06-29 21:05:11 +00:00
%setup -q -n %{qt_module}-opensource-src-%{version}%{?prerelease:-%{prerelease}}
2013-08-02 13:25:47 +00:00
%patch1 -p1 -b .pluginpath
%patch3 -p1 -b .debuginfo
%patch4 -p1 -b .save_memory
%patch7 -p1 -b .aarch64
%patch8 -p1 -b .no_rpath
2013-08-02 13:25:47 +00:00
echo "nuke bundled code..."
# nuke bundled code
mkdir Source/ThirdParty/orig
mv Source/ThirdParty/{gtest/,qunit/} \
2013-08-02 13:25:47 +00:00
Source/ThirdParty/orig/
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{qmake_qt5} .. \
%ifnarch %{arm} %{ix86} x86_64
DEFINES+=ENABLE_JIT=0 DEFINES+=ENABLE_YARR_JIT=0
%endif
2013-08-02 13:25:47 +00:00
# workaround, disable parallel compilation as it fails to compile in brew
#make %{?_smp_mflags}
make -j2
2013-08-02 13:25:47 +00:00
%if 0%{?docs}
make %{?_smp_mflags} docs
%endif
popd
2013-08-02 13:25:47 +00:00
%install
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
2013-08-02 13:25:47 +00:00
%if 0%{?docs}
make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
%endif
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
if [ -f "$(basename ${prl_file} .prl).so" ]; then
rm -fv "$(basename ${prl_file} .prl).la"
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
fi
done
popd
2013-08-02 13:25:47 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc Source/WebCore/LICENSE*
%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
%if 0%{?docs}
%files doc
%{_qt5_docdir}/qtwebkit.qch
%{_qt5_docdir}/qtwebkit/
%endif
2013-08-02 13:25:47 +00:00
%changelog
2015-12-10 21:13:36 +00:00
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
2015-12-10 20:40:15 +00:00
- Official beta release
* Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
- (re)add bootstrap macro support
2015-12-10 20:40:15 +00:00
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
- Start to implement 5.6.0 beta
2015-10-28 13:08:47 +00:00
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 5.5.1-4
- rebuild for ICU 56.1
* Fri Oct 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-3
- drop (unused) system_angle support/patches
2015-10-15 14:24:15 +00:00
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
- Update to final release 5.5.1
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
- Update to Qt 5.5.1 RC1
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-4
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
2015-07-16 17:02:31 +00:00
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
- tighten deps (#1233829)
* Mon Jul 13 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.5.0-2
- add 5.5.0-1 changelog
- BR: qt5-qtwebchannel-devel
- (re)enable docs
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-1
- New final upstream release Qt 5.5.0
2015-06-29 21:05:11 +00:00
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
- Update for official RC1 released packages
2015-06-03 13:25:40 +00:00
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
- 5.4.2
2015-05-02 15:15:37 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-6
- Rebuilt for GCC 5 C++11 ABI change
* Fri Apr 03 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-5
- -doc: drop dep on main pkg, not strictly required
* Mon Mar 23 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-4
- QtWebKit logs visited URLs to WebpageIcons.db in private browsing mode (#1204795,#1204798)
2015-03-18 16:57:02 +00:00
* Wed Mar 18 2015 Than Ngo <than@redhat.com> - 5.4.1-3
- fix build failure with new gcc5
2015-02-27 16:48:09 +00:00
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
- rebuild (gcc5)
2015-02-24 16:26:28 +00:00
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
- 5.4.1
* Tue Feb 17 2015 Than Ngo <than@redhat.com> 5.4.0-4
- fix GMutexLocker build problem
2015-02-17 12:30:45 +00:00
* Tue Feb 17 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-3
- rebuild (gcc5)
2015-01-26 16:03:24 +00:00
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 5.4.0-2
- rebuild for ICU 54.1
2014-12-10 13:31:29 +00:00
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
- 5.4.0 (final)
2014-11-28 16:03:51 +00:00
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.5.rc
- 5.4.0-rc
2014-11-19 00:45:49 +00:00
* Tue Nov 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.4.beta
- use gst1 only fc21+ (and el8+) only
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.beta
- fix hardening, use new %%qmake_qt5 macro
* Sat Nov 01 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
- enable hardened build, out-of-src tree build
2014-10-19 01:10:48 +00:00
* Sat Oct 18 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
- 5.4.0-beta
2014-09-16 20:53:11 +00:00
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
- 5.3.2
2014-08-26 11:57:32 +00:00
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 5.3.1-3
- rebuild for ICU 53.1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-06-25 19:00:31 +00:00
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
- 5.3.1
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-21 15:51:56 +00:00
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
- 5.3.0
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-4
- use standard (same as qtbase) .prl sanitation
* Fri May 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-3
- no rpath, drop chrpath hacks
- BR: qt5-qtlocation qt5-qtsensors
2014-02-12 20:41:18 +00:00
* Wed Feb 12 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
- rebuild (libicu)
2014-02-05 15:24:45 +00:00
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
- 5.2.1
* Sun Feb 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
- Add AArch64 support to qtwebkit (#1056160)
2014-01-02 04:34:33 +00:00
* Wed Jan 01 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
- rebuild (libwebp)
2013-12-12 13:28:00 +00:00
* Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
- 5.2.0
2013-12-02 17:26:15 +00:00
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
- 5.2.0-rc1
* Thu Nov 28 2013 Dan Horák <dan[at]danny.cz> 5.2.0-0.6.beta1
- disable JIT on secondary arches, fix build with JIT disabled (#1034940)
* Mon Nov 25 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1
- enable -doc only on primary archs (allow secondary bootstrap)
2013-11-09 19:22:38 +00:00
* Sat Nov 09 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
- rebuild (arm/qreal)
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
* 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
* Tue Aug 20 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-8
- qt5-qtjsbackend only supports ix86, x86_64 and arm
* 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