Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
1351100200
:
1001689948
>
opt-qtwebkit
> qtwebkit.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qtwebkit.spec of Package opt-qtwebkit
# # spec file for package qtwebkit # # Copyright (c) 2011 Asterios Dramis <asterios.dramis@gmail.com>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. %define _prefix /opt/qt-4.8 %define packageprefix opt- %if ! 0%{?suse_version} %define requires_eq() %(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} %= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v %"is not") %define requires_ge() %(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} %>= %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v %"is not") %endif Name: %{packageprefix}qtwebkit Version: 2.2.3 Release: 4.2 Summary: Open source Web Browser engine based on Qt4 License: LGPL-2.0 with exceptions or GPL-3.0 with exceptions Url: http://trac.webkit.org/wiki/QtWebKit Group: System/Libraries %define rversion 2.2.1 Source0: QtWebKit-%{rversion}.tar.bz2 Source1: baselibs.conf # PATCH-FIX-OPENSUSE webkit-qtwebkit-2.2-tp1-pluginpath.patch asterios.dramis@gmail.com -- Search /usr/lib{,64}/mozilla/plugins-wrapped for browser plugins too (taken from Fedora) Patch0: webkit-qtwebkit-2.2-tp1-pluginpath.patch # PATCH-FIX-OPENSUSE webkit-qtwebkit-2.2tp1-qt46.patch asterios.dramis@gmail.com -- Fix for qt-4.6.x (taken from Fedora) Patch3: webkit-qtwebkit-2.2tp1-qt46.patch # PATCH-FIX-OPENSUSE 0001_fix_symbols_visibility_for_webcore.diff asterios.dramis@gmail.com -- Corrects symbols visibility for WebCore (taken from Ubuntu) Patch4: 0001_fix_symbols_visibility_for_webcore.diff # PATCH-FIX-OPENSUSE 01_lflags_as-needed.diff asterios.dramis@gmail.com -- Set --as-needed linker flag to avoid useless linking (taken from Ubuntu) Patch5: 01_lflags_as-needed.diff # PATCH-FIX-OPENSUSE 02_add_nostrip_for_debug_packages.diff asterios.dramis@gmail.com -- Set CONFIG += nostrip to avoid stripping (taken from Ubuntu) Patch6: 02_add_nostrip_for_debug_packages.diff # PATCH-FIX-OPENSUSE 03_hide_std_symbols.diff asterios.dramis@gmail.com -- Do not make the std:: symbols in webkit public (taken from Ubuntu) Patch7: 03_hide_std_symbols.diff # PATCH-FIX-OPENSUSE 04_enable_debug_information.diff asterios.dramis@gmail.com -- On Qt >= 4.5, debug info are disabled for QtWebkit. Enable debug information in JavaScriptCore and WebCore (taken from Ubuntu) Patch8: 04_enable_debug_information.diff # PATCH-FIX-OPENSUSE defines_qt_webkit.diff asterios.dramis@gmail.com -- Defines QT_WEBKIT to display correctly documentation in Qt Creator Help plugin (taken from Ubuntu) Patch9: defines_qt_webkit.diff Patch10: qtwebkit-2.2.2.diff Patch11: qtwebkit-2.2.3.diff Patch12: gcc-4.7-fixes.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: chrpath %if 0%{?suse_version} BuildRequires: fdupes %endif BuildRequires: flex BuildRequires: fontconfig-devel BuildRequires: gperf BuildRequires: libicu-devel BuildRequires: %{packageprefix}libqt4-devel BuildRequires: pcre-devel BuildRequires: perl BuildRequires: python-devel %if 0%{?suse_version} > 1140 BuildRequires: perl-Switch %endif %if 0%{?suse_version} > 1120 BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gstreamer-app-0.10) BuildRequires: pkgconfig(gstreamer-base-0.10) BuildRequires: pkgconfig(gstreamer-interfaces-0.10) BuildRequires: pkgconfig(gstreamer-pbutils-0.10) BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) BuildRequires: pkgconfig(gstreamer-video-0.10) %endif BuildRequires: sqlite-devel %if ! 0%{?suse_version} ## In theory, should be as simple as: #define x_deps libGL-devel libGLU-devel ## but, "xorg-x11-devel: missing dep on libGL/libGLU" - http://bugzilla.redhat.com/211898 BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(sm) BuildRequires: pkgconfig(xcursor) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xinerama) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xv) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xproto) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) %endif %description WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. QtWebKit is a project aiming at porting this fabulous engine back to Qt. %package -n %{packageprefix}libQtWebKit4 Summary: Open source Web Browser engine based on Qt4 License: GPLv2 ; GPLv3 Group: System/Libraries %requires_ge %{packageprefix}libqt4-x11 %description -n %{packageprefix}libQtWebKit4 WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. QtWebKit is a project aiming at porting this fabulous engine back to Qt. %package -n %{packageprefix}libQtWebKit-devel Summary: Development files for qtwebkit License: GPLv2 ; GPLv3 Group: Development/Libraries/C and C++ Requires: %{packageprefix}libQtWebKit4 = %{version} %requires_ge %{packageprefix}libqt4-devel %description -n %{packageprefix}libQtWebKit-devel This package contains development files for qtwebkit. %prep %setup -q -n QtWebKit-%{rversion} %patch0 -p1 -b .pluginpath %patch3 -p1 -b .qt46 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p0 %patch11 -p1 %patch12 -p1 %build export QTDIR=%{_prefix} export PATH=$PATH:%{_prefix}/bin Tools/Scripts/build-webkit \ --release \ --qt \ --makeargs="%{?_smp_mflags}" \ --qmakearg="CONFIG+=use_system_icu QMAKE_CFLAGS+=\"%{optflags}\" QMAKE_CXXFLAGS+=\"%{optflags}\" DEFINES+=USE_GSTREAMER=1 PREFIX=%_prefix" %install make install INSTALL_ROOT=%{buildroot} -C WebKitBuild/Release # find %{buildroot}%{_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L$RPM_BUILD_DIR/\S+,,g" {} \; find %{buildroot}%{_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \; find %{buildroot}%{_libdir} -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=/usr/bin/moc," -e "s,uic_location=.*,uic_location=/usr/bin/uic," {} \; # HACK, there has to be a better way chrpath --list %{buildroot}%{_libdir}/libQtWebKit.so.4.9.0 ||: chrpath --delete %{buildroot}%{_libdir}/libQtWebKit.so.4.9.0 ||: chrpath --list %{buildroot}%{_libdir}/qt4/plugins/imports/QtWebKit/libqmlwebkitplugin.so ||: chrpath --delete %{buildroot}%{_libdir}/qt4/plugins/imports/QtWebKit/libqmlwebkitplugin.so ||: # Conflicts with libqt4-devel so remove it for now rm -rf %{buildroot}%{_datadir}/qt4/mkspecs/modules/qt_webkit_version.pri %if 0%{?suse_version} %fdupes -s %{buildroot}%{_includedir} %endif mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/ echo %{_prefix} > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf %clean rm -rf %{buildroot} %post -n %{packageprefix}libQtWebKit4 -p /sbin/ldconfig %postun -n %{packageprefix}libQtWebKit4 -p /sbin/ldconfig %files -n %{packageprefix}libQtWebKit4 %defattr(-,root,root,-) %{_libdir}/qt4/plugins/imports/QtWebKit/ %{_libdir}/libQtWebKit.so.4* %{_sysconfdir}/ld.so.conf.d/%{name}.conf %files -n %{packageprefix}libQtWebKit-devel %defattr(-,root,root,-) %doc ChangeLog %{_includedir}/QtWebKit/ %{_libdir}/pkgconfig/QtWebKit.pc %{_libdir}/libQtWebKit.prl %{_libdir}/libQtWebKit.so #%{_datadir}/qt4/mkspecs/modules/qt_webkit_version.pri %changelog * Thu Sep 13 2012 stephan.binner@basyskom.com - Update to version 2.2.3 * Tue May 15 2012 stephan.binner@basyskom.com - Update to version 2.2.2 * Fri Dec 16 2011 stephan.binner@basyskom.de - Update to version 2.2.1 * Sun Oct 2 2011 stephan.binner@basyskom.de - adapt to build for definable install prefix, eg /opt/libqt4-7 * Thu Sep 29 2011 tittiatcoke@gmail.com - Update to version 2.2.0 See for more information: http://trac.webkit.org/wiki/QtWebKitRelease22 * Mon Sep 19 2011 asterios.dramis@gmail.com - Update to version 2.2.0-rc1 (2.1.90). - Removed kubuntu_fix_jit_warnings_i386.diff patch (fixed upstream). * Mon Sep 12 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week35. - Spec file updates: * Changed License: to LGPL-2.0 with exceptions or GPL-3.0 with exceptions. * Use "--release" istead of "--debug" for compilation. * Minor other updates. - Removed the following patches: webkit-qtwebkit-type-casting.patch webkit-qtwebkit-2.2-javascriptcore_debuginfo.patch webkit-qtwebkit-2.2-shared.patch - Added the following patches (from Fedora and Ubuntu): webkit-qtwebkit-2.2-debuginfo.patch (disabled for now) 0001_fix_symbols_visibility_for_webcore.diff 01_lflags_as-needed.diff 02_add_nostrip_for_debug_packages.diff 03_hide_std_symbols.diff 04_enable_debug_information.diff defines_qt_webkit.diff kubuntu_fix_jit_warnings_i386.diff - Disabled (for now) the following patch: webkit-qtwebkit-2.2-no_Werror.patch * Sun Sep 4 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week34. * Wed Aug 24 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week33. * Tue Aug 9 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week31. * Sat Aug 6 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week30. * Mon Jul 25 2011 asterios.dramis@gmail.com - Update to version 2.1.80.week28. - Spec file updates: * Compile the package with gstreamer support. * Fri Jul 1 2011 asterios.dramis@gmail.com - Rebased webkit-qtwebkit-type-casting.patch to apply cleanly. * Thu Jun 30 2011 asterios.dramis@gmail.com - Update to version 2.2-beta1 (2.1.80). * Wed Jun 29 2011 asterios.dramis@gmail.com - Spec file updates: * Added qt-mobility-devel in BuildRequires: (for audio/video tags support). * Wed Jun 22 2011 asterios.dramis@gmail.com - Spec file updates: * Don't install qt_webkit_version.pri (conflicts with libqt4-devel). * Sun Jun 19 2011 asterios.dramis@gmail.com - Spec file updates: * perl-Switch in BuildRequires: is needed only for openSUSE > 11.4. * Sun Jun 19 2011 asterios.dramis@gmail.com - Initial version 2.1.70.git.20110619