Compare commits
No commits in common. "f33" and "master" have entirely different histories.
103
qtwebkit.spec
103
qtwebkit.spec
@ -1,8 +1,3 @@
|
||||
# qtwebkit is known not to work properly with LTO at this point. Some of the issues
|
||||
# are being worked on upstream and disabling LTO should be re-evaluated as
|
||||
# we update this change. Until such time...
|
||||
# Disable LTO
|
||||
%global _lto_cflags %{nil}
|
||||
|
||||
%global _hardened_build 1
|
||||
|
||||
@ -10,10 +5,28 @@ Name: qtwebkit
|
||||
Summary: Qt WebKit bindings
|
||||
|
||||
Version: 2.3.4
|
||||
Release: 32%{?dist}
|
||||
Release: 21%{?dist}
|
||||
|
||||
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||||
URL: http://trac.webkit.org/wiki/QtWebKit
|
||||
## This was how qtwebkit-2.2 did it (no longer works for 2.3)
|
||||
# get make-package.py:
|
||||
# $ git clone git://qt.gitorious.org/qtwebkit/tools.git
|
||||
# get Qt WebKit source code:
|
||||
# $ git clone git://gitorious.org/+qtwebkit-developers/webkit/qtwebkit.git
|
||||
# create a branch from a tag (e.g. qtwebkit-2.2.2):
|
||||
# $ git checkout -b qtwebkit-2.2.2 qtwebkit-2.2.2
|
||||
# generate the tarball (requires: bison flex gperf):
|
||||
# $ make-package.py
|
||||
# fix/repack the generated tarball:
|
||||
# $ tar xzf qtwebkit-2.2.2-source.tar.gz
|
||||
# $ mv qtwebkit-2.2.2-source/include qtwebkit-2.2.2-source/Source/
|
||||
# $ tar cJf qtwebkit-2.2.2-source.tar.xz qtwebkit-2.2.2-source/
|
||||
##
|
||||
# download from
|
||||
# https://gitorious.org/webkit/qtwebkit-23/archive-tarball/qtwebkit-%{version}
|
||||
# repack as .xz
|
||||
#Source0: qtwebkit-%{version}.tar.xz
|
||||
Source0: http://download.kde.org/stable/qtwebkit-2.3/%{version}/src/qtwebkit-%{version}.tar.gz
|
||||
# qmake wrapper
|
||||
Source1: qmake.sh
|
||||
@ -47,7 +60,6 @@ Patch101: webkit-qtwebkit-23-private_browsing.patch
|
||||
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gperf
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
@ -82,11 +94,6 @@ BuildRequires: ruby ruby(rubygems)
|
||||
BuildRequires: pkgconfig(QtLocation) >= 1.2
|
||||
BuildRequires: pkgconfig(QtSensors) >= 1.2
|
||||
%endif
|
||||
# workaround bad embedded png files, https://bugzilla.redhat.com/1639422
|
||||
BuildRequires: findutils
|
||||
BuildRequires: pngcrush
|
||||
BuildRequires: perl-File-Find perl-FindBin perl-lib perl-English
|
||||
|
||||
Obsoletes: qt-webkit < 1:4.9.0
|
||||
Provides: qt-webkit = 2:%{version}-%{release}
|
||||
Provides: qt4-webkit = 2:%{version}-%{release}
|
||||
@ -134,19 +141,13 @@ Provides: qt4-webkit-devel%{?_isa} = 2:%{version}-%{release}
|
||||
|
||||
install -m755 -D %{SOURCE1} bin/qmake
|
||||
|
||||
# find/fix pngs with "libpng warning: iCCP: known incorrect sRGB profile"
|
||||
find -name \*.png | xargs -n3 pngcrush -ow -fix
|
||||
|
||||
|
||||
%build
|
||||
# add an unversioned python symlink to python2 to the PATH (FTBFS #1736570)
|
||||
mkdir python2-unversioned-command
|
||||
ln -s %{__python2} python2-unversioned-command/python
|
||||
|
||||
CFLAGS="%{optflags}"; export CFLAGS
|
||||
CXXFLAGS="%{optflags}"; export CXXFLAGS
|
||||
LDFLAGS="%{?__global_ldflags}"; export LDFLAGS
|
||||
PATH=`pwd`/python2-unversioned-command:`pwd`/bin:%{_qt4_bindir}:$PATH; export PATH
|
||||
PATH=`pwd`/bin:%{_qt4_bindir}:$PATH; export PATH
|
||||
QMAKEPATH=`pwd`/Tools/qmake; export QMAKEPATH
|
||||
QTDIR=%{_qt4_prefix}; export QTDIR
|
||||
|
||||
@ -166,10 +167,32 @@ WEBKITOUTPUTDIR=`pwd`; export WEBKITOUTPUTDIR
|
||||
--system-malloc
|
||||
popd
|
||||
|
||||
%ifarch %{ix86}
|
||||
# build safe(r) non-sse2-enabled version
|
||||
mkdir -p %{_target_platform}-no_sse2
|
||||
pushd %{_target_platform}-no_sse2
|
||||
WEBKITOUTPUTDIR=`pwd`; export WEBKITOUTPUTDIR
|
||||
../Tools/Scripts/build-webkit \
|
||||
--qt \
|
||||
--no-webkit2 \
|
||||
--release \
|
||||
--qmakearg="CONFIG+=production_build DEFINES+=HAVE_LIBWEBP=1" \
|
||||
--makeargs="%{?_smp_mflags}" \
|
||||
--system-malloc \
|
||||
--no-force-sse2
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}/Release
|
||||
|
||||
%ifarch %{ix86}
|
||||
mkdir -p %{buildroot}%{_qt4_libdir}/sse2/
|
||||
mv %{buildroot}%{_qt4_libdir}/libQtWebKit.so.4* %{buildroot}%{_qt4_libdir}/sse2/
|
||||
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}-no_sse2/Release
|
||||
%endif
|
||||
|
||||
## pkgconfig love
|
||||
# drop Libs.private, it contains buildroot references, and
|
||||
# we don't support static linking libQtWebKit anyway
|
||||
@ -179,10 +202,14 @@ mv QtWebKit.pc.new QtWebKit.pc
|
||||
popd
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_qt4_libdir}/libQtWebKit.so.4*
|
||||
%ifarch %{ix86}
|
||||
%{_qt4_libdir}/sse2/libQtWebKit.so.4*
|
||||
%endif
|
||||
%if 0%{?_qt4_importdir:1}
|
||||
%{_qt4_importdir}/QtWebKit/
|
||||
%endif
|
||||
@ -196,42 +223,6 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 31 2020 Than Ngo <than@redhat.com> - 2.3.4-32
|
||||
- Fixed FTBFS
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-31
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sun Aug 11 2019 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.4-28
|
||||
- Remove obsolete comments about source tarball generation (an upstream release
|
||||
tarball has been used for years and there is and will be no better source)
|
||||
- Drop the extra no-sse2 build on i686, Fedora has required SSE2 since F29
|
||||
|
||||
* Sun Aug 11 2019 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.4-27
|
||||
- Fix FTBFS due to unversioned python no longer being Python 2 (#1736570)
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Nov 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 2.3.4-24
|
||||
- QtWebkit bundles malformed PNG files (#1639422)
|
||||
|
||||
* Sat Jul 21 2018 Rex Dieter <rdieter@fedoraproject.org> - 2.3.4-23
|
||||
- BR: %%_bindir/python gcc-c++ (#1606056)
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.4-21
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
Loading…
Reference in New Issue
Block a user