From 7160f76765aaf18cf8ead35a791ef488c74e0ba4792e9e6b230034e88cc09318 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 8 Jan 2015 22:01:48 +0000 Subject: [PATCH] Accepting request 277010 from KDE:Qt5 add libqt5-qtwebengine package OBS-URL: https://build.opensuse.org/request/show/277010 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtwebengine?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + _constraints | 18 ++ baselibs.conf | 5 + gyp_conf.patch | 31 ++++ libqt5-qtwebengine.changes | 21 +++ libqt5-qtwebengine.spec | 215 ++++++++++++++++++++++++ qtwebengine-opensource-src-5.4.0.tar.xz | 3 + strip.diff | 10 ++ 9 files changed, 327 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _constraints create mode 100644 baselibs.conf create mode 100644 gyp_conf.patch create mode 100644 libqt5-qtwebengine.changes create mode 100644 libqt5-qtwebengine.spec create mode 100644 qtwebengine-opensource-src-5.4.0.tar.xz create mode 100644 strip.diff diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..44890a0 --- /dev/null +++ b/_constraints @@ -0,0 +1,18 @@ + + + + 4 + + 4 + + + + s390x + + + + 7 + + + + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..a2640b1 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,5 @@ +libQt5Bluetooth5 +libQt5Nfc5 +libqt5-qtconnectivity-devel + requires "libQt5Nfc5- = " + requires "libQt5Bluetooth5- = " \ No newline at end of file diff --git a/gyp_conf.patch b/gyp_conf.patch new file mode 100644 index 0000000..cf61ef6 --- /dev/null +++ b/gyp_conf.patch @@ -0,0 +1,31 @@ +--- qtwebengine-opensource-src-5.4.0-alpha.orig/src/core/config/desktop_linux.pri 2014-09-18 09:09:54.658799702 +0200 ++++ qtwebengine-opensource-src-5.4.0-alpha/src/core/config/desktop_linux.pri 2014-09-18 21:28:38.174679500 +0200 +@@ -13,4 +13,28 @@ GYP_CONFIG += \ + use_gnome_keyring=0 \ + use_kerberos=0 \ + use_pango=0 \ ++ use_pulseaudio=1 \ ++ linux_link_libpci=1 \ ++ linux_link_gsettings=1 \ ++ linux_link_libspeechd=1 \ ++ use_system_re2=1 \ ++ use_system_yasm=1 \ ++ use_system_opus=1 \ ++ use_system_zlib=1 \ ++ use_system_speex=1 \ ++ use_system_expat=1 \ ++ use_system_snappy=1 \ ++ use_system_libpng=1 \ ++ use_system_libxml=1 \ ++ use_system_libjpeg=1 \ ++ use_system_libwebp=1 \ ++ use_system_libxslt=1 \ ++ use_system_libsrtp=1 \ ++ use_system_jsoncpp=1 \ ++ use_system_libevent=1 \ ++ use_system_protobuf=1 \ ++ use_system_harfbuzz=1 \ ++ use_system_xdg_utils=1 \ ++ use_system_ffmpeg=0 \ ++ build_ffmpegsumo=1 \ + diff --git a/libqt5-qtwebengine.changes b/libqt5-qtwebengine.changes new file mode 100644 index 0000000..a59b1c7 --- /dev/null +++ b/libqt5-qtwebengine.changes @@ -0,0 +1,21 @@ +------------------------------------------------------------------- +Wed Dec 10 11:00:14 UTC 2014 - hrvoje.senjan@gmail.com + +- Update to 5.4 Final + * For more details please see: + http://blog.qt.digia.com/blog/2014/12/10/qt-5-4-released/ + and http://qt-project.org/wiki/New-Features-in-Qt-5.4 + +------------------------------------------------------------------- +Thu Nov 27 15:58:50 UTC 2014 - hrvoje.senjan@gmail.com + +- Update to 5.4 RC + * For more details please see: + http://blog.qt.digia.com/blog/2014/11/27/qt-5-4-release-candidate-available/ + and http://qt-project.org/wiki/New-Features-in-Qt-5.4 + +------------------------------------------------------------------- +Sat Aug 2 15:31:16 UTC 2014 - hrvoje.senjan@gmail.com + +- Activate libqt5-qtwebengine package + diff --git a/libqt5-qtwebengine.spec b/libqt5-qtwebengine.spec new file mode 100644 index 0000000..40bd89e --- /dev/null +++ b/libqt5-qtwebengine.spec @@ -0,0 +1,215 @@ +# +# spec file for package libqt5-qtwebengine +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define qt5_snapshot 0 + +Name: libqt5-qtwebengine +Version: 5.4.0 +Release: 0 +Summary: Qt 5 Nfc Addon +License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0 +Group: Development/Libraries/X11 +Url: http://qt.digia.com +%define base_name libqt5 +%define real_version 5.4.0 +%define so_version 5.4.0 +%define tar_version qtwebengine-opensource-src-%{real_version} +Source: %{tar_version}.tar.xz +Source1: baselibs.conf +Patch0: strip.diff +Patch1: gyp_conf.patch +BuildRequires: bison +BuildRequires: fdupes +BuildRequires: flac-devel +BuildRequires: flex +BuildRequires: gperf +BuildRequires: hunspell-devel +BuildRequires: krb5 +BuildRequires: krb5-devel +BuildRequires: libcap-devel +BuildRequires: libgcrypt-devel +BuildRequires: libicu-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libqt5-qtbase-private-headers-devel >= %{version} +BuildRequires: libqt5-qtdeclarative-private-headers-devel >= %{version} +BuildRequires: libqt5-qtxmlpatterns-private-headers-devel >= %{version} +BuildRequires: pam-devel +BuildRequires: pciutils-devel +BuildRequires: perl-JSON +BuildRequires: pkg-config +BuildRequires: python +BuildRequires: python-devel +BuildRequires: python-xml +BuildRequires: re2c +BuildRequires: sqlite3-devel +BuildRequires: update-desktop-files +BuildRequires: usbutils +BuildRequires: util-linux +BuildRequires: valgrind-devel +BuildRequires: wdiff +BuildRequires: xz +BuildRequires: yasm +BuildRequires: perl(Switch) +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(bzip2) +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gmodule-2.0) +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(gthread-2.0) +BuildRequires: pkgconfig(libcrypto) +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(libevent) +BuildRequires: pkgconfig(libexif) +BuildRequires: pkgconfig(libmtp) +BuildRequires: pkgconfig(libpci) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(libsrtp) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(libxslt) +BuildRequires: pkgconfig(nspr) +BuildRequires: pkgconfig(nss) +BuildRequires: pkgconfig(opus) +BuildRequires: pkgconfig(pangocairo) +BuildRequires: pkgconfig(pangoft2) +BuildRequires: pkgconfig(protobuf) +BuildRequires: pkgconfig(speex) +BuildRequires: pkgconfig(vpx) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xcomposite) +BuildRequires: pkgconfig(xcursor) +BuildRequires: pkgconfig(xdamage) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xrandr) +BuildRequires: pkgconfig(xrender) +BuildRequires: pkgconfig(xscrnsaver) +BuildRequires: pkgconfig(xt) +BuildRequires: pkgconfig(xtst) +BuildRequires: pkgconfig(zlib) +%if %qt5_snapshot +#to create the forwarding headers +BuildRequires: perl +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Qt is a set of libraries for developing applications. + +%prep +%setup -q -n qtwebengine-opensource-src-%{real_version} +%patch1 -p1 +sed -i 's|$(STRIP)|strip|g' src/core/core_module.pro + +#pushd src/3rdparty/chromium/third_party/ +#popd + +%package devel +Summary: Qt Development Kit +Group: Development/Libraries/X11 +Requires: %{name} = %{version} + +%description devel +You need this package, if you want to compile programs with qtsensors. + +%package private-headers-devel +Summary: Non-ABI stable experimental API +Group: Development/Libraries/C and C++ +BuildArch: noarch +Requires: %{name}-devel = %{version} +Requires: libqt5-qtbase-private-headers-devel >= %{version} +Requires: libqt5-qtdeclarative-private-headers-devel >= %{version} + +%description private-headers-devel +This package provides private headers of libqt5-qtsensors that are normally +not used by application development and that do not have any ABI or +API guarantees. The packages that build against these have to require +the exact Qt version. + +%package examples +Summary: Qt5 location examples +Group: Development/Libraries/X11 +Recommends: %{name}-devel + +%description examples +Examples for libqt5-qtwebengine module. + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%build +%if %qt5_snapshot +#force the configure script to generate the forwarding headers (it checks whether .git directory exists) +mkdir .git +%endif +export LDFLAGS="$LDFLAGS -Wl,--reduce-memory-overheads -Wl,--no-keep-memory -Wl,--as-needed" +%qmake5 +%make_jobs + +%install +%qmake5_install +#cat %{buildroot}/%{_libdir}/pkgconfig/Qt*Web*.pc +find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \; +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=%libqt5_bindir/moc," -e "s,uic_location=.*,uic_location=%libqt5_bindir/uic," {} \; +find %{buildroot}/%{_libdir} -type f -name '*pc' -exec sed -i -e "/^RPM_BUILD_DIR/d" {} \; +sed -i '/^Libs.private/d' %{buildroot}%{_libdir}/pkgconfig/Qt*Web*.pc +# kill .la files +rm -f %{buildroot}%{_libqt5_libdir}/lib*.la + +%files +%defattr(-,root,root,755) +%doc LICENSE.* +%{_libqt5_libdir}/libQt*Web*.so.* +%{_datadir}/qt5/ +%{_libqt5_plugindir}/qtwebengine/ +%dir %{_libqt5_libexecdir} +%{_libqt5_libexecdir}/QtWebEngineProcess +%{_libqt5_archdatadir}/qml/QtWebEngine/ + +%files private-headers-devel +%defattr(-,root,root,755) +%doc LICENSE.* +%{_libqt5_includedir}/*/%{so_version} + +%files devel +%defattr(-,root,root,755) +%doc LICENSE.* +%exclude %{_libqt5_includedir}/*/%{so_version} +%{_libqt5_includedir}/*/ +%{_libqt5_libdir}/cmake/Qt5Web*/ +%{_libqt5_libdir}/libQt*Web*.so +%{_libqt5_libdir}/libQt*Web*.prl +%{_libqt5_libdir}/qt5/mkspecs/modules/qt_lib_*.pri +%{_libqt5_libdir}/pkgconfig/Qt*Web*.pc + +%files examples +%defattr(-,root,root,755) +%doc LICENSE.* +%{_libqt5_examplesdir}/ + +%changelog diff --git a/qtwebengine-opensource-src-5.4.0.tar.xz b/qtwebengine-opensource-src-5.4.0.tar.xz new file mode 100644 index 0000000..49b5a37 --- /dev/null +++ b/qtwebengine-opensource-src-5.4.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab91a5c0d63f47de91310c8e56255ac1c8ec1b7f9c414cc7e040f72b28e4153b +size 113974740 diff --git a/strip.diff b/strip.diff new file mode 100644 index 0000000..06caeda --- /dev/null +++ b/strip.diff @@ -0,0 +1,10 @@ +--- a/src/core/core_module.pro 2014-08-24 03:29:27.168702560 +0200 +--- b/src/core/core_module.pro 2014-08-24 03:30:02.431261717 +0200 +@@ -22,5 +22,5 @@ CONFIG -= bsymbolic_functions + contains(QT_CONFIG, egl): CONFIG += egl + + linux { +- CONFIG(release, debug|release) | contains(QT_CONFIG, separate_debug_info): QMAKE_POST_LINK="cd $(DESTDIR) && $(STRIP) --strip-unneeded $(TARGET)" ++ CONFIG(release, debug|release) | contains(QT_CONFIG, separate_debug_info): QMAKE_POST_LINK="cd $(DESTDIR) && strip --strip-unneeded $(TARGET)" + } +\ No newline at end of file