2015-01-08 23:01:48 +01:00
|
|
|
#
|
|
|
|
# spec file for package libqt5-qtwebengine
|
|
|
|
#
|
2022-09-25 11:54:57 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2015-01-08 23:01:48 +01:00
|
|
|
#
|
2018-04-16 12:46:29 +02:00
|
|
|
# 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.
|
2019-01-21 10:07:52 +01:00
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-02 11:53:21 +02:00
|
|
|
#
|
|
|
|
|
2015-01-08 23:01:48 +01:00
|
|
|
|
2021-03-10 17:53:13 +01:00
|
|
|
%if %{?suse_version} > 1500 || 0%{?sle_version} > 150300
|
2020-05-27 11:57:20 +02:00
|
|
|
%bcond_without system_vpx
|
|
|
|
%else
|
|
|
|
%bcond_with system_vpx
|
|
|
|
%endif
|
2017-09-29 11:50:16 +02:00
|
|
|
%bcond_without system_ffmpeg
|
2017-06-13 16:05:23 +02:00
|
|
|
%bcond_without system_minizip
|
2022-09-25 11:54:57 +02:00
|
|
|
%bcond_without pipewire
|
2022-09-26 22:39:18 +02:00
|
|
|
# The default python version is too old on Leap 15
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
%bcond_without python39
|
|
|
|
%else
|
2022-09-25 11:54:57 +02:00
|
|
|
%bcond_without python3
|
|
|
|
%endif
|
2020-02-26 13:43:24 +01:00
|
|
|
|
2018-03-28 10:27:58 +02:00
|
|
|
# spellchecking dictionary directory
|
|
|
|
%global _qtwebengine_dictionaries_dir %{_libqt5_datadir}/qtwebengine_dictionaries
|
2017-06-13 16:05:23 +02:00
|
|
|
|
2015-01-08 23:01:48 +01:00
|
|
|
Name: libqt5-qtwebengine
|
2022-06-09 09:33:09 +02:00
|
|
|
Version: 5.15.10
|
2015-01-08 23:01:48 +01:00
|
|
|
Release: 0
|
2015-06-06 09:53:01 +02:00
|
|
|
Summary: Qt 5 WebEngine Library
|
2019-01-21 10:07:52 +01:00
|
|
|
License: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
2015-01-08 23:01:48 +01:00
|
|
|
Group: Development/Libraries/X11
|
2020-01-21 09:41:35 +01:00
|
|
|
URL: https://www.qt.io
|
2015-01-08 23:01:48 +01:00
|
|
|
%define base_name libqt5
|
2022-06-09 09:33:09 +02:00
|
|
|
%define real_version 5.15.10
|
|
|
|
%define so_version 5.15.10
|
2021-03-29 06:47:36 +02:00
|
|
|
%define tar_version qtwebengine-everywhere-src-%{version}
|
2021-03-29 13:06:46 +02:00
|
|
|
Source: %{tar_version}.tar.xz
|
2022-09-25 11:54:57 +02:00
|
|
|
# Use a git snapshot for catapult to build with python3 (git rev: b7e9d5899)
|
|
|
|
Source1: catapult-git.tar.xz
|
2022-04-28 08:23:05 +02:00
|
|
|
Source99: libqt5-qtwebengine-rpmlintrc
|
2016-10-01 23:50:33 +02:00
|
|
|
# PATCH-FIX-UPSTREAM armv6-ffmpeg-no-thumb.patch - Fix ffmpeg configuration for armv6
|
2021-03-29 06:47:36 +02:00
|
|
|
Patch0: armv6-ffmpeg-no-thumb.patch
|
2021-02-15 21:12:32 +01:00
|
|
|
# PATCH-FIX-OPENSUSE disable-gpu-when-using-nouveau-boo-1005323.diff
|
2021-03-29 06:47:36 +02:00
|
|
|
Patch1: disable-gpu-when-using-nouveau-boo-1005323.diff
|
2021-10-30 18:37:11 +02:00
|
|
|
Patch2: sandbox-statx-futex_time64.patch
|
2020-09-11 08:30:06 +02:00
|
|
|
# PATCH-FIX-OPENSUSE
|
2021-10-30 18:37:11 +02:00
|
|
|
Patch3: rtc-dont-use-h264.patch
|
2022-03-25 19:13:14 +01:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch4: 0001-skia-Some-includes-to-fix-build-with-GCC-12.patch
|
2022-09-25 11:54:57 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- build with pipewire 0.3
|
|
|
|
Patch5: qtwebengine-pipewire-0.3.patch
|
2022-09-26 22:39:18 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- build with python 3
|
|
|
|
Patch6: qtwebengine-python3.patch
|
2022-09-25 11:54:57 +02:00
|
|
|
### Patch 50-99 are applied conditionally
|
2022-09-26 22:39:18 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- allow building qtwebengine with ffmpeg5
|
|
|
|
Patch50: qtwebengine-ffmpeg5.patch
|
2022-09-25 11:54:57 +02:00
|
|
|
###
|
2021-09-10 08:42:46 +02:00
|
|
|
# http://www.chromium.org/blink is not ported to PowerPC & s390
|
2015-12-09 19:50:57 +01:00
|
|
|
ExcludeArch: ppc ppc64 ppc64le s390 s390x
|
2016-10-01 23:50:33 +02:00
|
|
|
# Try to fix i586 MemoryErrors with rpmlint
|
|
|
|
#!BuildIgnore: rpmlint
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: flex
|
2017-06-13 16:05:23 +02:00
|
|
|
BuildRequires: git-core
|
2022-09-25 11:54:57 +02:00
|
|
|
BuildRequires: gperf
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: krb5
|
|
|
|
BuildRequires: krb5-devel
|
2019-01-21 10:07:52 +01:00
|
|
|
BuildRequires: libQt5QuickControls2-devel
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: libqt5-qtbase-private-headers-devel >= 5.12
|
|
|
|
BuildRequires: libqt5-qtdeclarative-private-headers-devel >= 5.12
|
|
|
|
BuildRequires: libqt5-qtlocation-private-headers-devel >= 5.12
|
2022-09-25 11:54:57 +02:00
|
|
|
# For building pdf examples...
|
|
|
|
BuildRequires: libqt5-qtsvg-devel
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: libqt5-qttools-private-headers-devel >= 5.12
|
|
|
|
BuildRequires: libqt5-qtwebchannel-private-headers-devel >= 5.12
|
|
|
|
BuildRequires: libqt5-qtxmlpatterns-private-headers-devel >= 5.12
|
2019-06-28 16:32:13 +02:00
|
|
|
BuildRequires: memory-constraints
|
2019-01-26 22:18:05 +01:00
|
|
|
BuildRequires: ninja
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: nodejs-default
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pciutils-devel
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: perl
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: perl-JSON
|
2022-09-25 11:54:57 +02:00
|
|
|
%if %{with pipewire}
|
|
|
|
BuildRequires: pipewire-devel
|
|
|
|
%endif
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig
|
2022-09-25 11:54:57 +02:00
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-xml
|
2022-09-26 22:39:18 +02:00
|
|
|
%endif
|
|
|
|
%if %{with python39}
|
|
|
|
BuildRequires: python39
|
|
|
|
BuildRequires: python39-devel
|
|
|
|
BuildRequires: python39-xml
|
2022-09-25 11:54:57 +02:00
|
|
|
%endif
|
2019-01-21 10:07:52 +01:00
|
|
|
BuildRequires: re2c
|
2018-03-24 16:13:06 +01:00
|
|
|
BuildRequires: sed
|
2015-06-06 09:53:01 +02:00
|
|
|
BuildRequires: snappy-devel
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: usbutils
|
|
|
|
BuildRequires: util-linux
|
2022-09-25 11:54:57 +02:00
|
|
|
%ifnarch %{arm}
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: valgrind-devel
|
2020-01-21 09:41:35 +01:00
|
|
|
%endif
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: wdiff
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: yasm
|
2022-09-25 11:54:57 +02:00
|
|
|
BuildRequires: yasm-devel
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: perl(Switch)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
2016-05-19 12:14:13 +02:00
|
|
|
BuildRequires: pkgconfig(atk)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(cairo)
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(freetype2) >= 2.4.2
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.32
|
|
|
|
BuildRequires: pkgconfig(glproto)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(harfbuzz) >= 2.4.0
|
|
|
|
BuildRequires: pkgconfig(icu-i18n) >= 65.0
|
2022-09-25 11:54:57 +02:00
|
|
|
BuildRequires: pkgconfig(icu-uc) >= 65.0
|
2015-06-06 09:53:01 +02:00
|
|
|
BuildRequires: pkgconfig(jsoncpp)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(lcms2)
|
2022-09-25 11:54:57 +02:00
|
|
|
%if %{with system_ffmpeg}
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
%endif
|
2015-01-08 23:01:48 +01:00
|
|
|
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)
|
2015-06-06 09:53:01 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(libxslt)
|
2021-03-29 06:47:36 +02:00
|
|
|
%if %{with system_minizip}
|
|
|
|
BuildRequires: pkgconfig(minizip)
|
|
|
|
%endif
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(nspr)
|
|
|
|
BuildRequires: pkgconfig(nss)
|
|
|
|
BuildRequires: pkgconfig(opus)
|
|
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
|
|
BuildRequires: pkgconfig(pangoft2)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(poppler-cpp)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(re2)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(speex)
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
%if %{with system_vpx}
|
|
|
|
BuildRequires: pkgconfig(vpx) >= 1.8.0
|
|
|
|
%endif
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xdamage)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
2021-06-24 14:04:15 +02:00
|
|
|
BuildRequires: pkgconfig(xkbfile)
|
2015-01-08 23:01:48 +01:00
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xscrnsaver)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(xtst)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-06-13 16:05:23 +02:00
|
|
|
BuildRequires: yasm-devel
|
2015-03-01 15:27:02 +01:00
|
|
|
%requires_ge libQt5Network5
|
|
|
|
%requires_ge libQtQuick5
|
|
|
|
%requires_ge libQt5Widgets5
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%description
|
2017-06-13 16:05:23 +02:00
|
|
|
Qt WebEngine provides functionality for rendering regions of dynamic
|
|
|
|
web content.
|
2015-01-08 23:01:48 +01:00
|
|
|
|
2017-06-13 16:05:23 +02:00
|
|
|
The functionality in Qt WebEngine is divided into the following
|
|
|
|
modules:
|
|
|
|
|
|
|
|
* QtWebEngineCore: Provides public API shared by both QtWebEngine and
|
|
|
|
QtWebEngineWidgets
|
|
|
|
* QtWebEngine: Provides QML types for rendering web content within a
|
|
|
|
QML application
|
|
|
|
* QtWebEngineWidgets: Provides a web browser engine as well as C++
|
|
|
|
classes to render and interact with web content
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%package devel
|
2017-06-13 16:05:23 +02:00
|
|
|
Summary: Development files for the Qt5 WebEngine library
|
2015-01-08 23:01:48 +01:00
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2017-12-23 12:14:44 +01:00
|
|
|
You need this package if you want to compile programs with Qt WebEngine.
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%package private-headers-devel
|
2017-06-13 16:05:23 +02:00
|
|
|
Summary: Non-ABI stable experimental API for the Qt5 WebEngine library
|
2015-01-08 23:01:48 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel = %{version}
|
2018-03-24 16:13:06 +01:00
|
|
|
%requires_ge libqt5-qtbase-private-headers-devel
|
|
|
|
%requires_ge libqt5-qtdeclarative-private-headers-devel
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildArch: noarch
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%description private-headers-devel
|
2017-12-23 12:14:44 +01:00
|
|
|
This package provides private headers of libqt5-qtwebengine that are normally
|
2015-01-08 23:01:48 +01:00
|
|
|
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
|
2020-02-26 13:43:24 +01:00
|
|
|
Summary: Qt5 WebEngine examples
|
2015-01-08 23:01:48 +01:00
|
|
|
Group: Development/Libraries/X11
|
2017-12-23 12:14:44 +01:00
|
|
|
Requires: libqt5-qtquickcontrols2
|
2015-01-08 23:01:48 +01:00
|
|
|
Recommends: %{name}-devel
|
|
|
|
|
|
|
|
%description examples
|
2017-06-13 16:05:23 +02:00
|
|
|
Examples for the libqt5-qtwebengine module.
|
2015-01-08 23:01:48 +01:00
|
|
|
|
2020-02-26 13:43:24 +01:00
|
|
|
%package -n libQt5Pdf5
|
|
|
|
Summary: Qt5 PDF library
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%description -n libQt5Pdf5
|
|
|
|
Main library of the Qt PDF module.
|
|
|
|
|
|
|
|
%package -n libQt5PdfWidgets5
|
|
|
|
Summary: Qt5 PDF library for Qt Widgets
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%description -n libQt5PdfWidgets5
|
|
|
|
Library of the Qt PDF module with support for Qt Widgets.
|
|
|
|
|
|
|
|
%package -n libqt5-qtpdf-imports
|
|
|
|
Summary: Qt5 PDF module for QML
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
|
|
|
%description -n libqt5-qtpdf-imports
|
|
|
|
Qt Quick module for the Qt PDF library.
|
|
|
|
|
|
|
|
%package -n libqt5-qtpdf-devel
|
|
|
|
Summary: Development files for the Qt5 PDF library
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Requires: libQt5Pdf5 = %{version}
|
|
|
|
Requires: libQt5PdfWidgets5 = %{version}
|
|
|
|
|
|
|
|
%description -n libqt5-qtpdf-devel
|
|
|
|
You need this package if you want to compile programs with Qt PDF.
|
|
|
|
|
|
|
|
%package -n libqt5-qtpdf-private-headers-devel
|
|
|
|
Summary: Non-ABI stable experimental API for the Qt5 PDF library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libqt5-qtpdf-devel = %{version}
|
|
|
|
%requires_ge libqt5-qtbase-private-headers-devel
|
2021-03-29 06:47:36 +02:00
|
|
|
BuildArch: noarch
|
2020-02-26 13:43:24 +01:00
|
|
|
|
|
|
|
%description -n libqt5-qtpdf-private-headers-devel
|
|
|
|
This package provides private headers of libqt5-qtpdf 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 -n libqt5-qtpdf-examples
|
|
|
|
Summary: Qt5 PDF examples
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Recommends: libqt5-qtpdf-devel
|
|
|
|
|
|
|
|
%description -n libqt5-qtpdf-examples
|
|
|
|
Examples for the libqt5-qtpdf module.
|
|
|
|
|
2017-06-13 16:05:23 +02:00
|
|
|
%prep
|
2022-09-25 11:54:57 +02:00
|
|
|
%setup -q -n %{tar_version}
|
|
|
|
# Leap 15 doesn't understand '%%autopatch -m'
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2022-09-26 22:39:18 +02:00
|
|
|
%patch6 -p1
|
2022-09-25 11:54:57 +02:00
|
|
|
# Replace the whole catapult folder rather than picking individual changes
|
|
|
|
pushd src/3rdparty/chromium/third_party
|
|
|
|
rm -r catapult
|
|
|
|
tar xJf %{SOURCE1}
|
|
|
|
mv catapult-git catapult
|
|
|
|
popd
|
|
|
|
|
|
|
|
# FFmpeg 5
|
2022-09-26 22:39:18 +02:00
|
|
|
%if %{with system_ffmpeg}
|
|
|
|
%if %{pkg_vcmp libavcodec-devel >= 5}
|
|
|
|
%patch50 -p1
|
|
|
|
%endif
|
2022-09-25 11:54:57 +02:00
|
|
|
%endif
|
|
|
|
|
2017-06-13 16:05:23 +02:00
|
|
|
sed -i 's|$(STRIP)|strip|g' src/core/core_module.pro
|
2021-09-10 08:42:46 +02:00
|
|
|
|
|
|
|
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
|
|
|
|
mkdir .git
|
2018-06-02 11:53:21 +02:00
|
|
|
|
2017-06-18 13:49:13 +02:00
|
|
|
# QTBUG-61128
|
|
|
|
sed -i -e '/toolprefix = /d' -e 's/\${toolprefix}//g' \
|
|
|
|
src/3rdparty/chromium/build/toolchain/linux/BUILD.gn
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%build
|
2020-09-11 08:30:06 +02:00
|
|
|
rm -r src/3rdparty/chromium/third_party/openh264/src
|
|
|
|
|
2022-09-26 22:39:18 +02:00
|
|
|
%if %{with python39}
|
|
|
|
sed -i 's#QMAKE_PYTHON = python3#QMAKE_PYTHON = python3.9#' mkspecs/features/functions.prf
|
|
|
|
sed -i 's#python3#python3.9#' configure.pri
|
|
|
|
%endif
|
|
|
|
|
2015-09-27 08:37:48 +02:00
|
|
|
%ifnarch x86_64
|
2016-11-05 21:23:52 +01:00
|
|
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS "
|
2015-09-27 08:37:48 +02:00
|
|
|
export RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-g / }
|
|
|
|
%endif
|
2019-10-28 18:54:04 +01:00
|
|
|
# Upstream does not care about those warnings, but optflags has -Werror=return-type.
|
|
|
|
export RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -Wno-return-type"
|
2017-06-18 13:49:13 +02:00
|
|
|
# It does not actually include proprietary codecs, it only makes it attempt to use ffmpeg
|
2019-09-19 10:36:35 +02:00
|
|
|
# Link pulseaudio to work around QTBUG-77037
|
2016-05-19 12:14:13 +02:00
|
|
|
%qmake5 QMAKE_CFLAGS="$RPM_OPT_FLAGS" \
|
2019-10-28 18:54:04 +01:00
|
|
|
QMAKE_CXXFLAGS="$RPM_OPT_FLAGS" \
|
2017-12-23 12:14:44 +01:00
|
|
|
QMAKE_LFLAGS+="-Wl,--no-keep-memory -Wl,--hash-size=31 -Wl,--reduce-memory-overheads" \
|
2019-09-19 10:36:35 +02:00
|
|
|
gn_args+="link_pulseaudio=true" \
|
2021-03-29 06:47:36 +02:00
|
|
|
gn_args+="media_use_openh264=false" \
|
|
|
|
gn_args+="use_system_libxml=true use_system_libxslt=true" \
|
2017-12-23 12:14:44 +01:00
|
|
|
qtwebengine.pro -- \
|
2021-03-29 06:47:36 +02:00
|
|
|
-webengine-alsa \
|
|
|
|
-no-webengine-embedded-build \
|
|
|
|
-webengine-kerberos \
|
2017-12-23 12:14:44 +01:00
|
|
|
-system-webengine-icu \
|
2021-03-29 06:47:36 +02:00
|
|
|
-system-webengine-opus \
|
|
|
|
-system-webengine-webp \
|
|
|
|
-webengine-pepper-plugins \
|
|
|
|
-webengine-printing-and-pdf \
|
2017-12-23 12:14:44 +01:00
|
|
|
%if %{with system_ffmpeg}
|
|
|
|
-system-webengine-ffmpeg \
|
|
|
|
-webengine-proprietary-codecs \
|
|
|
|
%endif
|
2022-09-25 11:54:57 +02:00
|
|
|
%if %{with pipewire}
|
|
|
|
-webengine-webrtc-pipewire
|
|
|
|
%endif
|
2021-03-29 06:47:36 +02:00
|
|
|
|
2019-06-28 16:32:13 +02:00
|
|
|
# Determine the right number of parallel processes based on the available memory
|
2021-01-29 12:18:41 +01:00
|
|
|
%limit_build -m 2750
|
2017-12-23 12:14:44 +01:00
|
|
|
|
2019-06-28 16:32:13 +02:00
|
|
|
# Ensure that also the internal chromium build follows the right number of parallel
|
|
|
|
# processes instead of its defaults.
|
2021-03-29 06:47:36 +02:00
|
|
|
export NINJAFLAGS="%{?_smp_mflags}"
|
2017-12-23 12:14:44 +01:00
|
|
|
|
2022-09-25 11:54:57 +02:00
|
|
|
# Warning: Don't use %%make_build or the chromium build log won't be available
|
2019-06-28 16:32:13 +02:00
|
|
|
make %{_smp_mflags} VERBOSE=1
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%qmake5_install
|
2021-03-29 06:47:36 +02:00
|
|
|
|
|
|
|
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" {} +
|
2015-01-08 23:01:48 +01:00
|
|
|
sed -i '/^Libs.private/d' %{buildroot}%{_libdir}/pkgconfig/Qt*Web*.pc
|
2021-03-29 06:47:36 +02:00
|
|
|
|
2015-01-08 23:01:48 +01:00
|
|
|
# kill .la files
|
2019-09-07 19:41:44 +02:00
|
|
|
rm -f %{buildroot}%{_libqt5_libdir}/*.la
|
2021-03-29 06:47:36 +02:00
|
|
|
|
2018-03-28 10:27:58 +02:00
|
|
|
# Workaround to allow using QtWE with older Qt versions
|
2021-06-24 18:42:14 +02:00
|
|
|
%global qtcore_version %(printf %{pkg_version libQt5Core5} | cut -d + -f 1)
|
2021-03-29 06:47:36 +02:00
|
|
|
# NOTE the space after '%%{version}' is important to only match '5.15.X ${_Qt5XXX_FIND_VERSION_EXACT}'
|
|
|
|
sed -i 's#%{version} #%{qtcore_version} #' %{buildroot}%{_libqt5_libdir}/cmake/*/*Config.cmake
|
2018-03-28 10:27:58 +02:00
|
|
|
|
|
|
|
# Hunspell dictionaries will be converted and put here on package installation
|
|
|
|
mkdir -p %{buildroot}%{_qtwebengine_dictionaries_dir}
|
2018-03-24 16:13:06 +01:00
|
|
|
|
2021-03-29 06:47:36 +02:00
|
|
|
%if %{pkg_vcmp libQt5Core5 >= 5.15}
|
|
|
|
# CMake files for plugins are only useful for static builds
|
|
|
|
rm -r %{buildroot}%{_libqt5_libdir}/cmake/Qt5Gui
|
|
|
|
%endif
|
|
|
|
|
2017-06-13 16:05:23 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2020-02-26 13:43:24 +01:00
|
|
|
%post -n libQt5Pdf5 -p /sbin/ldconfig
|
|
|
|
%postun -n libQt5Pdf5 -p /sbin/ldconfig
|
|
|
|
%post -n libQt5PdfWidgets5 -p /sbin/ldconfig
|
|
|
|
%postun -n libQt5PdfWidgets5 -p /sbin/ldconfig
|
2017-06-13 16:05:23 +02:00
|
|
|
|
2018-03-28 10:27:58 +02:00
|
|
|
%filetriggerin -- %{_datadir}/hunspell
|
2018-06-02 11:53:21 +02:00
|
|
|
# Convert Hunspell dictionaries on package installation
|
2018-03-28 10:27:58 +02:00
|
|
|
while read filename ; do
|
|
|
|
case "$filename" in
|
|
|
|
*.dic)
|
|
|
|
bdicname=%{_qtwebengine_dictionaries_dir}/`basename -s .dic "$filename"`.bdic
|
|
|
|
%{_libqt5_bindir}/qwebengine_convert_dict "$filename" "$bdicname" &> /dev/null || :
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2015-01-08 23:01:48 +01:00
|
|
|
%files
|
2018-06-02 11:53:21 +02:00
|
|
|
%license LICENSE.*
|
2020-02-26 13:43:24 +01:00
|
|
|
%dir %{_datadir}/qt5/
|
2021-03-29 06:47:36 +02:00
|
|
|
%dir %{_qtwebengine_dictionaries_dir}
|
2020-02-26 13:43:24 +01:00
|
|
|
%dir %{_datadir}/qt5/resources/
|
|
|
|
%{_datadir}/qt5/resources/qtwebengine_*
|
2021-03-29 06:47:36 +02:00
|
|
|
%dir %{_datadir}/qt5/translations/
|
|
|
|
%{_datadir}/qt5/translations/qtwebengine_locales/
|
2015-01-08 23:01:48 +01:00
|
|
|
%{_libqt5_archdatadir}/qml/QtWebEngine/
|
2017-06-13 16:05:23 +02:00
|
|
|
%{_libqt5_bindir}/qwebengine_convert_dict
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/libQt5WebEngine.so.*
|
|
|
|
%{_libqt5_libdir}/libQt5WebEngineCore.so.*
|
|
|
|
%{_libqt5_libdir}/libQt5WebEngineWidgets.so.*
|
|
|
|
%dir %{_libqt5_libexecdir}
|
|
|
|
%{_libqt5_libexecdir}/QtWebEngineProcess
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%files private-headers-devel
|
2018-06-02 11:53:21 +02:00
|
|
|
%license LICENSE.*
|
2020-02-26 13:43:24 +01:00
|
|
|
%{_libqt5_includedir}/QtWebEngine*/%{so_version}
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%files devel
|
2020-02-26 13:43:24 +01:00
|
|
|
%exclude %{_libqt5_includedir}/QtWebEngine*/%{so_version}
|
|
|
|
%{_libqt5_includedir}/QtWebEngine*/
|
2021-03-29 06:47:36 +02:00
|
|
|
%dir %{_libqt5_libdir}/cmake/Qt5Designer/
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5WebEngine*/
|
2020-02-26 13:43:24 +01:00
|
|
|
%{_libqt5_libdir}/libQt5WebEngine*.prl
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/libQt5WebEngine*.so
|
2020-02-26 13:43:24 +01:00
|
|
|
%{_libqt5_libdir}/pkgconfig/Qt5WebEngine*.pc
|
|
|
|
%{_libqt5_libdir}/qt5/mkspecs/modules/qt_lib_webengine*.pri
|
|
|
|
%dir %{_libqt5_plugindir}/designer/
|
|
|
|
%{_libqt5_plugindir}/designer/libqwebengineview.so
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%files examples
|
2018-06-02 11:53:21 +02:00
|
|
|
%license LICENSE.*
|
2020-02-26 13:43:24 +01:00
|
|
|
%dir %{_libqt5_examplesdir}
|
|
|
|
%{_libqt5_examplesdir}/webengine*/
|
|
|
|
|
|
|
|
%files -n libQt5Pdf5
|
|
|
|
%license LICENSE.*
|
|
|
|
%{_libqt5_archdatadir}/plugins/imageformats/libqpdf.so
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/libQt5Pdf.so.*
|
2020-02-26 13:43:24 +01:00
|
|
|
|
|
|
|
%files -n libQt5PdfWidgets5
|
|
|
|
%license LICENSE.*
|
|
|
|
%{_libqt5_libdir}/libQt5PdfWidgets.so.*
|
|
|
|
|
|
|
|
%files -n libqt5-qtpdf-imports
|
|
|
|
%license LICENSE.*
|
|
|
|
%{_libqt5_archdatadir}/qml/QtQuick/Pdf/
|
|
|
|
|
|
|
|
%files -n libqt5-qtpdf-private-headers-devel
|
|
|
|
%license LICENSE.*
|
|
|
|
%{_libqt5_includedir}/QtPdf/%{so_version}
|
|
|
|
%{_libqt5_includedir}/QtPdfWidgets/%{so_version}
|
|
|
|
|
|
|
|
%files -n libqt5-qtpdf-devel
|
|
|
|
%license LICENSE.*
|
|
|
|
%exclude %{_libqt5_includedir}/QtPdf*/%{so_version}
|
|
|
|
%{_libqt5_includedir}/QtPdf/
|
|
|
|
%{_libqt5_includedir}/QtPdfWidgets/
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5Pdf/
|
|
|
|
%{_libqt5_libdir}/cmake/Qt5PdfWidgets/
|
|
|
|
%{_libqt5_libdir}/libQt5Pdf.prl
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/libQt5Pdf.so
|
2020-02-26 13:43:24 +01:00
|
|
|
%{_libqt5_libdir}/libQt5PdfWidgets.prl
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/libQt5PdfWidgets.so
|
2020-02-26 13:43:24 +01:00
|
|
|
%{_libqt5_libdir}/pkgconfig/Qt5Pdf.pc
|
|
|
|
%{_libqt5_libdir}/pkgconfig/Qt5PdfWidgets.pc
|
2021-03-29 06:47:36 +02:00
|
|
|
%{_libqt5_libdir}/qt5/mkspecs/modules/qt_lib_pdf*.pri
|
2020-02-26 13:43:24 +01:00
|
|
|
|
|
|
|
%files -n libqt5-qtpdf-examples
|
|
|
|
%license LICENSE.*
|
|
|
|
%dir %{_libqt5_examplesdir}
|
|
|
|
%{_libqt5_examplesdir}/pdf*/
|
2015-01-08 23:01:48 +01:00
|
|
|
|
|
|
|
%changelog
|