File chromium.spec.patch of Package chromium
diff --git chromium.spec chromium.spec.new
index 4c5c985..3d56640 100644
--- chromium.spec
+++ chromium.spec.new
@@ -281,28 +281,12 @@ BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-scanner)
BuildRequires: pkgconfig(wayland-server)
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(xcb-dri3)
-BuildRequires: pkgconfig(xcb-proto)
-BuildRequires: pkgconfig(xcomposite)
-BuildRequires: pkgconfig(xcursor)
-BuildRequires: pkgconfig(xdamage)
-BuildRequires: pkgconfig(xext)
-BuildRequires: pkgconfig(xfixes)
-BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xkbcommon) >= 1.0.0
-BuildRequires: pkgconfig(xrandr)
-BuildRequires: pkgconfig(xrender)
-BuildRequires: pkgconfig(xscrnsaver)
-BuildRequires: pkgconfig(xshmfence)
-BuildRequires: pkgconfig(xt)
-BuildRequires: pkgconfig(xtst)
# BEG add rust BR
BuildRequires: cargo%{rust_version}
BuildRequires: rust%{rust_version}
# END add rust BR
BuildRequires: rust-bindgen
-Requires: xdg-utils
Requires(pre): permissions
Recommends: noto-coloremoji-fonts
Conflicts: chromium-browser
@@ -432,6 +416,20 @@ Provides: chromedriver = %{version}-%{release}
%description -n %{chromedriver_name}
WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.
+%if %{with qt6}
+%package -n %{name}-qt6-ui
+Summary: Qt6 UI for Google Chrome/Chromium
+License: BSD-3-Clause
+Requires: %{name} = %{version}
+%if %{with is_beta}
+Conflicts: %{name}-qt6-ui
+Provides: %{name}-qt6-ui = %{version}-%{release}
+%endif
+
+%description -n %{name}-qt6-ui
+Qt6 UI for Google Chrome/Chromium
+%endif
+
%prep
%setup -q -n %{rname}-%{version}
# apply all patches up to 999
@@ -531,7 +529,6 @@ keeplibs=(
third_party/angle
third_party/angle/src/common/third_party/xxhash
third_party/angle/src/third_party/ceval
- third_party/angle/src/third_party/libXNVCtrl
third_party/angle/src/third_party/volk
third_party/anonymous_tokens
third_party/apple_apsl
@@ -636,8 +633,6 @@ keeplibs=(
third_party/liburlpattern
third_party/libva_protected_content
third_party/libwebm
- third_party/libx11/src
- third_party/libxcb-keysyms/keysyms
third_party/libxml/chromium
third_party/libzip
third_party/lit
@@ -734,7 +729,6 @@ keeplibs=(
third_party/woff2
third_party/wuffs
third_party/x11proto
- third_party/xcbproto
third_party/xnnpack
third_party/zlib/google
third_party/zxcvbn-cpp
@@ -1048,6 +1042,9 @@ myconf_gn+=" arm_control_flow_integrity=\"none\""
%endif
%endif
+# wayland ozone
+myconf_gn+=" use_ozone=true ozone_auto_platforms=false ozone_platform=\"wayland\" ozone_platform_wayland=true"
+
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
# Note: these are for the openSUSE Chromium builds ONLY. For your own distribution,
# please get your own set of keys.
@@ -1105,6 +1102,9 @@ ln -sf chromium-browser.1%{?ext_man} %{buildroot}%{_mandir}/man1/chromium.1%{?ex
%{_datadir}/metainfo/chromium-browser.appdata.xml
%{_datadir}/icons/hicolor
%exclude %{_libdir}/chromium/chromedriver
+%if %{with qt6}
+%exclude %{_libdir}/chromium/libqt6_shim.so
+%endif
%{_bindir}/chromium-browser
%{_bindir}/chromium
%{_mandir}/man1/chromium.1%{?ext_man}
@@ -1115,4 +1115,10 @@ ln -sf chromium-browser.1%{?ext_man} %{buildroot}%{_mandir}/man1/chromium.1%{?ex
%{_libdir}/chromium/chromedriver
%{_bindir}/chromedriver
+%if %{with qt6}
+%files -n %{name}-qt6-ui
+%license LICENSE
+%{_libdir}/chromium/libqt6_shim.so
+%endif
+
%changelog