2020-03-18 14:15:04 +08:00
|
|
|
%undefine _annotated_build
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
%global add_to_license_files() mkdir -p _license_files ; cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g')
|
|
|
|
|
%global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$
|
|
|
|
|
|
2020-03-06 17:07:54 +08:00
|
|
|
Name: qt5-qtwebkit
|
|
|
|
|
Version: 5.212.0
|
2020-03-18 14:15:04 +08:00
|
|
|
Release: 2
|
|
|
|
|
Summary: QtWebKit components of Qt5
|
2020-03-06 17:07:54 +08:00
|
|
|
License: LGPLv2 and BSD
|
|
|
|
|
URL: https://github.com/annulen/webkit
|
2020-03-18 14:15:04 +08:00
|
|
|
Source0: https://github.com/annulen/webkit/releases/download/qtwebkit-%{version}-alpha2/qtwebkit-%{version}-alpha2.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: bison cmake flex pkgconfig(fontconfig) pkgconfig(gio-2.0) pkgconfig(glib-2.0) gperf
|
|
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-app-1.0) hyphen-devel pkgconfig(icu-i18n)
|
|
|
|
|
BuildRequires: pkgconfig(icu-uc) libjpeg-devel pkgconfig(libpng) pkgconfig(libwebp) pkgconfig(xcomposite)
|
|
|
|
|
BuildRequires: pkgconfig(xrender) pkgconfig(libxslt) pkgconfig(gl) pkgconfig(gstreamer-gl-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(gstreamer-mpegts-1.0) perl-generators python2 qt5-qtbase-devel findutils
|
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel pkgconfig(ruby) rubygems pkgconfig(sqlite3) pkgconfig(zlib)
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel qt5-qtdeclarative-private-devel
|
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
|
BuildRequires: qt5-qtlocation-devel qt5-qtsensors-devel qt5-qtwebchannel-devel
|
|
|
|
|
Provides: bundled(angle) bundled(brotli) bundled(woff2)
|
|
|
|
|
%endif
|
|
|
|
|
%{?_qt5:Requires: %{_qt5} = %{_qt5_version}}
|
|
|
|
|
%{?_qt5:Requires: qt5-qtdeclarative = %{_qt5_version}}
|
2020-03-06 17:07:54 +08:00
|
|
|
|
2020-03-18 14:15:04 +08:00
|
|
|
# Upstream patch to fix pagewidth issue with trojita
|
|
|
|
|
# https://github.com/annulen/webkit/issues/511
|
|
|
|
|
# https://github.com/annulen/webkit/commit/6faf11215e1af27d35e921ae669aa0251a01a1ab
|
|
|
|
|
# https://github.com/annulen/webkit/commit/76420459a13d9440b41864c93cb4ebb404bdab55
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0000: qt5-qtwebkit-5.212.0-alpha2-fix-pagewidth.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
# Patch from Kevin Kofler to fix https://github.com/annulen/webkit/issues/573
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0001: qtwebkit-5.212.0-alpha2-fix-null-pointer-dereference.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
# Patch for new CMake policy CMP0071 to explicitly use old behaviour.
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0002: qtwebkit-5.212.0_cmake_cmp0071.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
# Patch to fix for missing source file.
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0003: qtwebkit-5.212.0_fix_missing_sources.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
## upstream patches (qtwebkit-5.212 branch)
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0004: 0016-cmake-Import-ECMEnableSanitizers.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
# disable ES6 Proxy
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0005: 0031-Disable-ES6-Proxy-object.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
# ECM Update ECMGeneratePkgConfigFile to latest versio
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0006: 0111-ECM-Update-ECMGeneratePkgConfigFile-to-latest-versio.patch
|
2020-03-18 14:15:04 +08:00
|
|
|
## upstream patches (qtwebkit-stable branch)
|
2020-03-06 17:07:54 +08:00
|
|
|
Patch0007: 0012-cmake-Fix-include-dir-in-the-generated-pkg-config-fi.patch
|
|
|
|
|
|
|
|
|
|
%description
|
2020-03-18 14:15:04 +08:00
|
|
|
QtWebKit components of Qt5.
|
2020-03-06 17:07:54 +08:00
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for qt5-qtwebkit
|
2020-03-18 14:15:04 +08:00
|
|
|
Requires: qt5-qtwebkit = %{version}-%{release}
|
|
|
|
|
Requires: qt5-qtbase-devel
|
|
|
|
|
Requires: qt5-qtdeclarative-devel
|
2020-03-06 17:07:54 +08:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development files for qt5-qtwebkit.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-03-18 14:15:04 +08:00
|
|
|
%autosetup -n qtwebkit-%{version}-alpha2 -p1
|
|
|
|
|
test -f Source/WebCore/Resources/textAreaResizeCorner.png
|
2020-03-06 17:07:54 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-03-18 14:15:04 +08:00
|
|
|
%global _dwz_max_die_limit 250000000
|
2020-03-06 17:07:54 +08:00
|
|
|
|
2020-03-18 14:15:04 +08:00
|
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
|
|
|
|
|
CXXFLAGS="${CXXFLAGS:-%optflags} -fpermissive" ; export CXXFLAGS ;
|
|
|
|
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
|
|
|
|
|
cmake -DPORT=Qt -DCMAKE_BUILD_TYPE=Release -DENABLE_TOOLS=OFF -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
2020-03-06 17:07:54 +08:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2020-03-18 14:15:04 +08:00
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
2020-03-06 17:07:54 +08:00
|
|
|
sed -i "s,Libs: -L%{_qt5_libdir}/qt5/../ -lQt5WebKit,Libs: -L%{_qt5_libdir} -lQt5WebKit ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc
|
|
|
|
|
sed -i "s,Libs: -L%{_qt5_libdir}/qt5/../ -lQt5WebKitWidgets,Libs: -L%{_qt5_libdir} -lQt5WebKitWidgets ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc
|
2020-03-18 14:15:04 +08:00
|
|
|
%add_to_license_files Source/JavaScriptCore/COPYING.LIB
|
|
|
|
|
%add_to_license_files Source/JavaScriptCore/icu/LICENSE
|
|
|
|
|
%add_to_license_files Source/ThirdParty/ANGLE/LICENSE
|
|
|
|
|
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE
|
|
|
|
|
%add_to_license_files Source/ThirdParty/ANGLE/src/third_party/murmurhash/LICENSE
|
|
|
|
|
%add_to_license_files Source/WebCore/icu/LICENSE
|
|
|
|
|
%add_to_license_files Source/WebCore/LICENSE-APPLE
|
|
|
|
|
%add_to_license_files Source/WebCore/LICENSE-LGPL-2
|
|
|
|
|
%add_to_license_files Source/WebCore/LICENSE-LGPL-2.1
|
|
|
|
|
%add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE
|
|
|
|
|
%add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE
|
|
|
|
|
%add_to_license_files Source/WTF/icu/LICENSE
|
|
|
|
|
%add_to_license_files Source/WTF/wtf/dtoa/COPYING
|
|
|
|
|
%add_to_license_files Source/WTF/wtf/dtoa/LICENSE
|
2020-03-06 17:07:54 +08:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
|
|
|
|
|
test -z "$(pkg-config --cflags Qt5WebKit | grep Qt5WebKit)"
|
|
|
|
|
|
2020-03-18 14:15:04 +08:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2020-03-06 17:07:54 +08:00
|
|
|
|
|
|
|
|
%files
|
2020-03-18 14:15:04 +08:00
|
|
|
%doc LICENSE.LGPLv21 _license_files/*
|
|
|
|
|
%{_qt5_libdir}/{libQt5WebKit.so.5*,libQt5WebKitWidgets.so.5*}
|
|
|
|
|
%{_qt5_libexecdir}/{QtWebDatabaseProcess,QtWebNetworkProcess,QtWebPluginProcess,QtWebProcess}
|
2020-03-06 17:07:54 +08:00
|
|
|
%{_qt5_archdatadir}/qml/QtWebKit/
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_qt5_headerdir}/Qt*/
|
|
|
|
|
%{_qt5_libdir}/libQt5*.so
|
|
|
|
|
%{_qt5_libdir}/cmake/Qt5*/
|
|
|
|
|
%{_qt5_libdir}/pkgconfig/Qt5*.pc
|
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/*.pri
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-03-18 14:15:04 +08:00
|
|
|
* Tue Mar 17 2020 Ling Yang <lingyang2@huawei.com> - 5.212.0-2
|
|
|
|
|
- Fixed building error
|
|
|
|
|
|
2020-03-06 17:07:54 +08:00
|
|
|
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 5.212.0-1
|
|
|
|
|
- Package init
|