|
|
@ -17,6 +17,9 @@
|
|
|
|
# We usually want this.
|
|
|
|
# We usually want this.
|
|
|
|
%global build_headless 1
|
|
|
|
%global build_headless 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This doesn't work and it doesn't even build as of Chromium 83
|
|
|
|
|
|
|
|
%global build_remoting 0
|
|
|
|
|
|
|
|
|
|
|
|
# We'd like to always have this on.
|
|
|
|
# We'd like to always have this on.
|
|
|
|
%global use_vaapi 1
|
|
|
|
%global use_vaapi 1
|
|
|
|
|
|
|
|
|
|
|
@ -163,7 +166,7 @@ Name: chromium%{chromium_channel}%{nsuffix}
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
Name: chromium%{chromium_channel}
|
|
|
|
Name: chromium%{chromium_channel}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Version: %{majorversion}.0.4103.61
|
|
|
|
Version: %{majorversion}.0.4103.97
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
%if %{?freeworld}
|
|
|
|
%if %{?freeworld}
|
|
|
|
%if %{?shared}
|
|
|
|
%if %{?shared}
|
|
|
@ -260,6 +263,9 @@ Patch85: chromium-83-gcc-permissive.patch
|
|
|
|
Patch86: chromium-83-gcc-iterator.patch
|
|
|
|
Patch86: chromium-83-gcc-iterator.patch
|
|
|
|
# https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/chromium-83-gcc-serviceworker.patch
|
|
|
|
# https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/files/chromium-83-gcc-serviceworker.patch
|
|
|
|
Patch87: chromium-83-gcc-serviceworker.patch
|
|
|
|
Patch87: chromium-83-gcc-serviceworker.patch
|
|
|
|
|
|
|
|
# https://chromium.googlesource.com/chromium/src/+/0d3ef4b1247f766eed37c546571a2c872fde2bf2%5E%21/#F0
|
|
|
|
|
|
|
|
Patch88: chromium-83-gcc-ozone-wayland.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Use lstdc++ on EPEL7 only
|
|
|
|
# Use lstdc++ on EPEL7 only
|
|
|
|
Patch101: chromium-75.0.3770.100-epel7-stdc++.patch
|
|
|
|
Patch101: chromium-75.0.3770.100-epel7-stdc++.patch
|
|
|
@ -744,6 +750,7 @@ Shared libraries used by the chromium media subsystem.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
%package -n chrome-remote-desktop
|
|
|
|
%package -n chrome-remote-desktop
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(post): systemd
|
|
|
@ -760,6 +767,7 @@ Summary: Remote desktop support for google-chrome & chromium
|
|
|
|
|
|
|
|
|
|
|
|
%description -n chrome-remote-desktop
|
|
|
|
%description -n chrome-remote-desktop
|
|
|
|
Remote desktop support for google-chrome & chromium.
|
|
|
|
Remote desktop support for google-chrome & chromium.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package -n chromedriver
|
|
|
|
%package -n chromedriver
|
|
|
|
Summary: WebDriver for Google Chrome/Chromium
|
|
|
|
Summary: WebDriver for Google Chrome/Chromium
|
|
|
@ -833,6 +841,7 @@ udev.
|
|
|
|
%patch85 -p1 -b .gcc-permissive
|
|
|
|
%patch85 -p1 -b .gcc-permissive
|
|
|
|
%patch86 -p1 -b .gcc-iterator2
|
|
|
|
%patch86 -p1 -b .gcc-iterator2
|
|
|
|
%patch87 -p1 -b .gcc-serviceworker
|
|
|
|
%patch87 -p1 -b .gcc-serviceworker
|
|
|
|
|
|
|
|
%patch88 -p1 -b .gcc-ozone-wayland
|
|
|
|
|
|
|
|
|
|
|
|
# Fedora branded user agent
|
|
|
|
# Fedora branded user agent
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%if 0%{?fedora}
|
|
|
@ -944,7 +953,7 @@ CHROMIUM_CORE_GN_DEFINES+=' is_debug=false'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"'
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' google_api_key="%{api_key}" google_default_client_id="%{default_client_id}" google_default_client_secret="%{default_client_secret}"'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' google_api_key="%{api_key}" google_default_client_id="%{default_client_id}" google_default_client_secret="%{default_client_secret}"'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false use_gold=false fieldtrial_testing_like_official_build=true use_lld=false rtc_enable_symbol_export=true'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=false use_gold=false fieldtrial_testing_like_official_build=true use_lld=false use_ozone=true rtc_enable_symbol_export=true'
|
|
|
|
%if %{freeworld}
|
|
|
|
%if %{freeworld}
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' ffmpeg_branding="ChromeOS" proprietary_codecs=true'
|
|
|
|
CHROMIUM_CORE_GN_DEFINES+=' ffmpeg_branding="ChromeOS" proprietary_codecs=true'
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -974,6 +983,7 @@ CHROMIUM_BROWSER_GN_DEFINES+=' is_component_ffmpeg=false is_component_build=fals
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' blink_symbol_level=0 enable_hangout_services_extension=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' blink_symbol_level=0 enable_hangout_services_extension=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' use_aura=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' use_aura=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' enable_widevine=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' enable_widevine=true'
|
|
|
|
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' ozone_platform="x11" ozone_platform_x11=true'
|
|
|
|
%if %{use_vaapi}
|
|
|
|
%if %{use_vaapi}
|
|
|
|
%if 0%{?fedora} >= 28
|
|
|
|
%if 0%{?fedora} >= 28
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' use_vaapi=true'
|
|
|
|
CHROMIUM_BROWSER_GN_DEFINES+=' use_vaapi=true'
|
|
|
@ -985,11 +995,11 @@ CHROMIUM_BROWSER_GN_DEFINES+=' rtc_use_pipewire=true rtc_link_pipewire=true'
|
|
|
|
export CHROMIUM_BROWSER_GN_DEFINES
|
|
|
|
export CHROMIUM_BROWSER_GN_DEFINES
|
|
|
|
|
|
|
|
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES=""
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES=""
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' use_ozone=true ozone_auto_platforms=false ozone_platform="headless" ozone_platform_headless=true'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' ozone_auto_platforms=false ozone_platform="headless" ozone_platform_headless=true'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' headless_use_embedded_resources=true icu_use_data_file=false v8_use_external_startup_data=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' headless_use_embedded_resources=true icu_use_data_file=false v8_use_external_startup_data=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' enable_nacl=false enable_print_preview=false enable_remoting=false use_alsa=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' enable_nacl=false enable_print_preview=false enable_remoting=false use_alsa=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' use_cups=false use_dbus=false use_gio=false use_kerberos=false use_libpci=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' use_cups=false use_dbus=false use_gio=false use_kerberos=false use_libpci=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' use_pulseaudio=false use_udev=false'
|
|
|
|
CHROMIUM_HEADLESS_GN_DEFINES+=' use_pulseaudio=false use_udev=false use_gtk=false'
|
|
|
|
export CHROMIUM_HEADLESS_GN_DEFINES
|
|
|
|
export CHROMIUM_HEADLESS_GN_DEFINES
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
@ -1081,6 +1091,7 @@ build/linux/unbundle/remove_bundled_libraries.py \
|
|
|
|
'third_party/devtools-frontend/src/third_party/axe-core' \
|
|
|
|
'third_party/devtools-frontend/src/third_party/axe-core' \
|
|
|
|
'third_party/devtools-frontend/src/third_party/typescript' \
|
|
|
|
'third_party/devtools-frontend/src/third_party/typescript' \
|
|
|
|
'third_party/devtools-frontend/src/front_end/third_party/fabricjs' \
|
|
|
|
'third_party/devtools-frontend/src/front_end/third_party/fabricjs' \
|
|
|
|
|
|
|
|
'third_party/devtools-frontend/src/front_end/third_party/lighthouse' \
|
|
|
|
'third_party/devtools-frontend/src/front_end/third_party/wasmparser' \
|
|
|
|
'third_party/devtools-frontend/src/front_end/third_party/wasmparser' \
|
|
|
|
'third_party/dom_distiller_js' \
|
|
|
|
'third_party/dom_distiller_js' \
|
|
|
|
'third_party/emoji-segmenter' \
|
|
|
|
'third_party/emoji-segmenter' \
|
|
|
@ -1134,6 +1145,7 @@ build/linux/unbundle/remove_bundled_libraries.py \
|
|
|
|
'third_party/libyuv' \
|
|
|
|
'third_party/libyuv' \
|
|
|
|
'third_party/lss' \
|
|
|
|
'third_party/lss' \
|
|
|
|
'third_party/lzma_sdk' \
|
|
|
|
'third_party/lzma_sdk' \
|
|
|
|
|
|
|
|
'third_party/mako' \
|
|
|
|
%if 0%{?bundlepylibs}
|
|
|
|
%if 0%{?bundlepylibs}
|
|
|
|
'third_party/markupsafe' \
|
|
|
|
'third_party/markupsafe' \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -1176,6 +1188,7 @@ build/linux/unbundle/remove_bundled_libraries.py \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
'third_party/rnnoise' \
|
|
|
|
'third_party/rnnoise' \
|
|
|
|
'third_party/s2cellid' \
|
|
|
|
'third_party/s2cellid' \
|
|
|
|
|
|
|
|
'third_party/schema_org' \
|
|
|
|
'third_party/simplejson' \
|
|
|
|
'third_party/simplejson' \
|
|
|
|
'third_party/sinonjs' \
|
|
|
|
'third_party/sinonjs' \
|
|
|
|
'third_party/skia' \
|
|
|
|
'third_party/skia' \
|
|
|
@ -1190,6 +1203,7 @@ build/linux/unbundle/remove_bundled_libraries.py \
|
|
|
|
'third_party/SPIRV-Tools' \
|
|
|
|
'third_party/SPIRV-Tools' \
|
|
|
|
'third_party/sqlite' \
|
|
|
|
'third_party/sqlite' \
|
|
|
|
'third_party/swiftshader' \
|
|
|
|
'third_party/swiftshader' \
|
|
|
|
|
|
|
|
'third_party/swiftshader/third_party/astc-encoder' \
|
|
|
|
'third_party/swiftshader/third_party/llvm-subzero' \
|
|
|
|
'third_party/swiftshader/third_party/llvm-subzero' \
|
|
|
|
'third_party/swiftshader/third_party/llvm-7.0' \
|
|
|
|
'third_party/swiftshader/third_party/llvm-7.0' \
|
|
|
|
'third_party/swiftshader/third_party/marl' \
|
|
|
|
'third_party/swiftshader/third_party/marl' \
|
|
|
@ -1200,6 +1214,7 @@ build/linux/unbundle/remove_bundled_libraries.py \
|
|
|
|
'third_party/usb_ids' \
|
|
|
|
'third_party/usb_ids' \
|
|
|
|
'third_party/usrsctp' \
|
|
|
|
'third_party/usrsctp' \
|
|
|
|
'third_party/vulkan' \
|
|
|
|
'third_party/vulkan' \
|
|
|
|
|
|
|
|
'third_party/wayland' \
|
|
|
|
'third_party/web-animations-js' \
|
|
|
|
'third_party/web-animations-js' \
|
|
|
|
'third_party/webdriver' \
|
|
|
|
'third_party/webdriver' \
|
|
|
|
'third_party/webrtc' \
|
|
|
|
'third_party/webrtc' \
|
|
|
@ -1327,7 +1342,9 @@ tools/gn/bootstrap/bootstrap.py -v --no-clean --gn-gen-args="$CHROMIUM_CORE_GN_D
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
%{builddir}/gn --script-executable=/usr/bin/python2 gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{remotingbuilddir}
|
|
|
|
%{builddir}/gn --script-executable=/usr/bin/python2 gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{remotingbuilddir}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{bundlelibusbx}
|
|
|
|
%if %{bundlelibusbx}
|
|
|
|
# no hackity hack hack
|
|
|
|
# no hackity hack hack
|
|
|
@ -1373,173 +1390,175 @@ echo
|
|
|
|
%build_target %{builddir} clear_key_cdm
|
|
|
|
%build_target %{builddir} clear_key_cdm
|
|
|
|
%build_target %{builddir} policy_templates
|
|
|
|
%build_target %{builddir} policy_templates
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
# remote client
|
|
|
|
# remote client
|
|
|
|
# ../../depot_tools/ninja -C ../%{builddir} -vvv remoting_me2me_host remoting_start_host remoting_it2me_native_messaging_host remoting_me2me_native_messaging_host remoting_native_messaging_manifests remoting_resources
|
|
|
|
# ../../depot_tools/ninja -C ../%{builddir} -vvv remoting_me2me_host remoting_start_host remoting_it2me_native_messaging_host remoting_me2me_native_messaging_host remoting_native_messaging_manifests remoting_resources
|
|
|
|
%build_target %{remotingbuilddir} remoting_all
|
|
|
|
%build_target %{remotingbuilddir} remoting_all
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{freeworld}
|
|
|
|
%if 0%{freeworld}
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{builddir}
|
|
|
|
pushd %{builddir}
|
|
|
|
cp -a libffmpeg.so* %{buildroot}%{chromium_path}
|
|
|
|
cp -a libffmpeg.so* %{buildroot}%{chromium_path}
|
|
|
|
cp -a libmedia.so* %{buildroot}%{chromium_path}
|
|
|
|
cp -a libmedia.so* %{buildroot}%{chromium_path}
|
|
|
|
mv %{buildroot}%{chromium_path}/libffmpeg.so{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libffmpeg.so{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libffmpeg.so.TOC{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libffmpeg.so.TOC{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libmedia.so{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libmedia.so{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libmedia.so.TOC{,.%{lsuffix}}
|
|
|
|
mv %{buildroot}%{chromium_path}/libmedia.so.TOC{,.%{lsuffix}}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}
|
|
|
|
cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
export BUILD_TARGET=`cat /etc/redhat-release`
|
|
|
|
export BUILD_TARGET=`cat /etc/redhat-release`
|
|
|
|
export CHROMIUM_PATH=%{chromium_path}
|
|
|
|
export CHROMIUM_PATH=%{chromium_path}
|
|
|
|
export CHROMIUM_BROWSER_CHANNEL=%{chromium_browser_channel}
|
|
|
|
export CHROMIUM_BROWSER_CHANNEL=%{chromium_browser_channel}
|
|
|
|
sed -i "s|@@BUILD_TARGET@@|$BUILD_TARGET|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@BUILD_TARGET@@|$BUILD_TARGET|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@CHROMIUM_PATH@@|$CHROMIUM_PATH|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@CHROMIUM_PATH@@|$CHROMIUM_PATH|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@CHROMIUM_BROWSER_CHANNEL@@|$CHROMIUM_BROWSER_CHANNEL|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@CHROMIUM_BROWSER_CHANNEL@@|$CHROMIUM_BROWSER_CHANNEL|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
%if "%{chromium_channel}" == "%%{nil}"
|
|
|
|
%if "%{chromium_channel}" == "%%{nil}"
|
|
|
|
sed -i "s|@@EXTRA_FLAGS@@||g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@EXTRA_FLAGS@@||g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
# Enable debug outputs for beta and dev channels
|
|
|
|
# Enable debug outputs for beta and dev channels
|
|
|
|
export EXTRA_FLAGS="--enable-logging=stderr --v=2"
|
|
|
|
export EXTRA_FLAGS="--enable-logging=stderr --v=2"
|
|
|
|
sed -i "s|@@EXTRA_FLAGS@@|$EXTRA_FLAGS|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
sed -i "s|@@EXTRA_FLAGS@@|$EXTRA_FLAGS|g" %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
ln -s %{chromium_path}/%{chromium_browser_channel}.sh %{buildroot}%{_bindir}/%{chromium_browser_channel}
|
|
|
|
ln -s %{chromium_path}/%{chromium_browser_channel}.sh %{buildroot}%{_bindir}/%{chromium_browser_channel}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{builddir}
|
|
|
|
pushd %{builddir}
|
|
|
|
cp -a *.pak locales resources icudtl.dat %{buildroot}%{chromium_path}
|
|
|
|
cp -a *.pak locales resources icudtl.dat %{buildroot}%{chromium_path}
|
|
|
|
# Reasonably sure we don't need this anymore. Chrome doesn't include it.
|
|
|
|
%ifarch x86_64 i686 aarch64
|
|
|
|
%if 0
|
|
|
|
cp -a swiftshader %{buildroot}%{chromium_path}
|
|
|
|
cp -a protoc pyproto %{buildroot}%{chromium_path}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
cp -a chrome %{buildroot}%{chromium_path}/%{chromium_browser_channel}
|
|
|
|
%ifarch x86_64 i686 aarch64
|
|
|
|
cp -a chrome_sandbox %{buildroot}%{chromium_path}/chrome-sandbox
|
|
|
|
cp -a swiftshader %{buildroot}%{chromium_path}
|
|
|
|
cp -a ../../chrome/app/resources/manpage.1.in %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
%endif
|
|
|
|
sed -i "s|@@PACKAGE@@|%{chromium_browser_channel}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
cp -a chrome %{buildroot}%{chromium_path}/%{chromium_browser_channel}
|
|
|
|
sed -i "s|@@MENUNAME@@|%{chromium_menu_name}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
cp -a chrome_sandbox %{buildroot}%{chromium_path}/chrome-sandbox
|
|
|
|
# V8 initial snapshots
|
|
|
|
cp -a ../../chrome/app/resources/manpage.1.in %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
# https://code.google.com/p/chromium/issues/detail?id=421063
|
|
|
|
sed -i "s|@@PACKAGE@@|%{chromium_browser_channel}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
cp -a snapshot_blob.bin %{buildroot}%{chromium_path}
|
|
|
|
sed -i "s|@@MENUNAME@@|%{chromium_menu_name}|g" %{buildroot}%{_mandir}/man1/%{chromium_browser_channel}.1
|
|
|
|
cp -a v8_context_snapshot.bin %{buildroot}%{chromium_path}
|
|
|
|
# V8 initial snapshots
|
|
|
|
cp -a xdg-mime xdg-settings %{buildroot}%{chromium_path}
|
|
|
|
# https://code.google.com/p/chromium/issues/detail?id=421063
|
|
|
|
cp -a MEIPreload %{buildroot}%{chromium_path}
|
|
|
|
cp -a snapshot_blob.bin %{buildroot}%{chromium_path}
|
|
|
|
%if 0%{?shared}
|
|
|
|
cp -a v8_context_snapshot.bin %{buildroot}%{chromium_path}
|
|
|
|
cp -a lib*.so* %{buildroot}%{chromium_path}
|
|
|
|
cp -a xdg-mime xdg-settings %{buildroot}%{chromium_path}
|
|
|
|
# cp -p %%{buildroot}%{chromium_path}/libwidevinecdm.so{,.fedora}
|
|
|
|
cp -a MEIPreload %{buildroot}%{chromium_path}
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libffmpeg.so{,.%{lsuffix}}
|
|
|
|
%if 0%{?shared}
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libffmpeg.so.TOC{,.%{lsuffix}}
|
|
|
|
cp -a lib*.so* %{buildroot}%{chromium_path}
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libmedia.so{,.%{lsuffix}}
|
|
|
|
# cp -p %%{buildroot}%{chromium_path}/libwidevinecdm.so{,.fedora}
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libmedia.so.TOC{,.%{lsuffix}}
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libffmpeg.so{,.%{lsuffix}}
|
|
|
|
%endif
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libffmpeg.so.TOC{,.%{lsuffix}}
|
|
|
|
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libmedia.so{,.%{lsuffix}}
|
|
|
|
# chromedriver
|
|
|
|
cp -p %{buildroot}%{chromium_path}/libmedia.so.TOC{,.%{lsuffix}}
|
|
|
|
cp -a chromedriver %{buildroot}%{chromium_path}/chromedriver
|
|
|
|
%endif
|
|
|
|
ln -s %{chromium_path}/chromedriver %{buildroot}%{_bindir}/chromedriver
|
|
|
|
|
|
|
|
|
|
|
|
# chromedriver
|
|
|
|
%if %{build_remoting}
|
|
|
|
cp -a chromedriver %{buildroot}%{chromium_path}/chromedriver
|
|
|
|
# Remote desktop bits
|
|
|
|
ln -s %{chromium_path}/chromedriver %{buildroot}%{_bindir}/chromedriver
|
|
|
|
mkdir -p %{buildroot}%{crd_path}
|
|
|
|
|
|
|
|
|
|
|
|
# Remote desktop bits
|
|
|
|
%if 0%{?shared}
|
|
|
|
mkdir -p %{buildroot}%{crd_path}
|
|
|
|
pushd %{buildroot}%{crd_path}
|
|
|
|
|
|
|
|
for i in ../chromium-browser%{?chromium_channel}/lib*.so; do
|
|
|
|
%if 0%{?shared}
|
|
|
|
|
|
|
|
pushd %{buildroot}%{crd_path}
|
|
|
|
|
|
|
|
for i in ../chromium-browser%{?chromium_channel}/lib*.so; do
|
|
|
|
|
|
|
|
libname=`basename $i`
|
|
|
|
libname=`basename $i`
|
|
|
|
ln -s $i $libname
|
|
|
|
ln -s $i $libname
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
popd
|
|
|
|
pushd %{remotingbuilddir}
|
|
|
|
%if %{build_remoting}
|
|
|
|
|
|
|
|
pushd %{remotingbuilddir}
|
|
|
|
# See remoting/host/installer/linux/Makefile for logic
|
|
|
|
|
|
|
|
cp -a remoting_native_messaging_host %{buildroot}%{crd_path}/native-messaging-host
|
|
|
|
# See remoting/host/installer/linux/Makefile for logic
|
|
|
|
cp -a remote_assistance_host %{buildroot}%{crd_path}/remote-assistance-host
|
|
|
|
cp -a remoting_native_messaging_host %{buildroot}%{crd_path}/native-messaging-host
|
|
|
|
cp -a remoting_locales %{buildroot}%{crd_path}/
|
|
|
|
cp -a remote_assistance_host %{buildroot}%{crd_path}/remote-assistance-host
|
|
|
|
cp -a remoting_me2me_host %{buildroot}%{crd_path}/chrome-remote-desktop-host
|
|
|
|
cp -a remoting_locales %{buildroot}%{crd_path}/
|
|
|
|
cp -a remoting_start_host %{buildroot}%{crd_path}/start-host
|
|
|
|
cp -a remoting_me2me_host %{buildroot}%{crd_path}/chrome-remote-desktop-host
|
|
|
|
cp -a remoting_user_session %{buildroot}%{crd_path}/user-session
|
|
|
|
cp -a remoting_start_host %{buildroot}%{crd_path}/start-host
|
|
|
|
chmod +s %{buildroot}%{crd_path}/user-session
|
|
|
|
cp -a remoting_user_session %{buildroot}%{crd_path}/user-session
|
|
|
|
|
|
|
|
chmod +s %{buildroot}%{crd_path}/user-session
|
|
|
|
# chromium
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts
|
|
|
|
# chromium
|
|
|
|
# google-chrome
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/
|
|
|
|
# google-chrome
|
|
|
|
cp -a remoting/* %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/
|
|
|
|
for i in %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/*.json; do
|
|
|
|
cp -a remoting/* %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/
|
|
|
|
|
|
|
|
for i in %{buildroot}%{_sysconfdir}/chromium/native-messaging-hosts/*.json; do
|
|
|
|
sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' $i
|
|
|
|
sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' $i
|
|
|
|
done
|
|
|
|
done
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/opt/chrome/native-messaging-hosts
|
|
|
|
for i in ../../../chromium/native-messaging-hosts/*; do
|
|
|
|
for i in ../../../chromium/native-messaging-hosts/*; do
|
|
|
|
# rpm gets unhappy when we symlink here
|
|
|
|
# rpm gets unhappy when we symlink here
|
|
|
|
cp -a $i .
|
|
|
|
cp -a $i .
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/var/lib/chrome-remote-desktop
|
|
|
|
mkdir -p %{buildroot}/var/lib/chrome-remote-desktop
|
|
|
|
touch %{buildroot}/var/lib/chrome-remote-desktop/hashes
|
|
|
|
touch %{buildroot}/var/lib/chrome-remote-desktop/hashes
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/pam.d/
|
|
|
|
pushd %{buildroot}%{_sysconfdir}/pam.d/
|
|
|
|
ln -s system-auth chrome-remote-desktop
|
|
|
|
ln -s system-auth chrome-remote-desktop
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_headless}
|
|
|
|
%if %{build_headless}
|
|
|
|
pushd %{headlessbuilddir}
|
|
|
|
pushd %{headlessbuilddir}
|
|
|
|
cp -a headless_lib.pak headless_shell %{buildroot}%{chromium_path}
|
|
|
|
cp -a headless_lib.pak headless_shell %{buildroot}%{chromium_path}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
cp -a remoting/host/linux/linux_me2me_host.py %{buildroot}%{crd_path}/chrome-remote-desktop
|
|
|
|
%if %{build_remoting}
|
|
|
|
cp -a remoting/host/installer/linux/is-remoting-session %{buildroot}%{crd_path}/
|
|
|
|
cp -a remoting/host/linux/linux_me2me_host.py %{buildroot}%{crd_path}/chrome-remote-desktop
|
|
|
|
|
|
|
|
cp -a remoting/host/installer/linux/is-remoting-session %{buildroot}%{crd_path}/
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
cp -a %{SOURCE11} %{buildroot}%{_unitdir}/
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
sed -i 's|@@CRD_PATH@@|%{crd_path}|g' %{buildroot}%{_unitdir}/chrome-remote-desktop@.service
|
|
|
|
cp -a %{SOURCE11} %{buildroot}%{_unitdir}/
|
|
|
|
|
|
|
|
sed -i 's|@@CRD_PATH@@|%{crd_path}|g' %{buildroot}%{_unitdir}/chrome-remote-desktop@.service
|
|
|
|
# Add directories for policy management
|
|
|
|
%endif
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/managed
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/recommended
|
|
|
|
# Add directories for policy management
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/managed
|
|
|
|
cp -a out/Release/gen/chrome/app/policy/common/html/en-US/*.html .
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/chromium/policies/recommended
|
|
|
|
cp -a out/Release/gen/chrome/app/policy/linux/examples/chrome.json .
|
|
|
|
|
|
|
|
|
|
|
|
cp -a out/Release/gen/chrome/app/policy/common/html/en-US/*.html .
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
|
|
|
|
cp -a out/Release/gen/chrome/app/policy/linux/examples/chrome.json .
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{chromium_browser_channel}.png
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{chromium_browser_channel}.png
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{chromium_browser_channel}.png
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{chromium_browser_channel}.png
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{chromium_browser_channel}.png
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{chromium_browser_channel}.png
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{chromium_browser_channel}.png
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{chromium_browser_channel}.png
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{chromium_browser_channel}.png
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
|
|
|
|
# Install the master_preferences file
|
|
|
|
cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{chromium_browser_channel}.png
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
|
|
|
|
|
|
|
install -m 0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
|
# Install the master_preferences file
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications/
|
|
|
|
install -m 0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/%{name}/
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4}
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications/
|
|
|
|
install -D -m0644 chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4}
|
|
|
|
appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml
|
|
|
|
|
|
|
|
|
|
|
|
install -D -m0644 chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gnome-control-center/default-apps/
|
|
|
|
appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/metainfo/%{chromium_browser_channel}.appdata.xml
|
|
|
|
cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gnome-control-center/default-apps/
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}/PepperFlash
|
|
|
|
cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{chromium_path}/PepperFlash
|
|
|
|
|
|
|
|
|
|
|
|
# freeworld conditional
|
|
|
|
# freeworld conditional
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -1554,12 +1573,14 @@ if selinuxenabled; then
|
|
|
|
restorecon -R -v %{chromium_path}/%{chromium_browser_channel} &>/dev/null || :
|
|
|
|
restorecon -R -v %{chromium_path}/%{chromium_browser_channel} &>/dev/null || :
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
%pretrans -n chrome-remote-desktop -p <lua>
|
|
|
|
%pretrans -n chrome-remote-desktop -p <lua>
|
|
|
|
path = "/etc/opt/chrome/native-messaging-hosts"
|
|
|
|
path = "/etc/opt/chrome/native-messaging-hosts"
|
|
|
|
st = posix.stat(path)
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "link" then
|
|
|
|
if st and st.type == "link" then
|
|
|
|
os.remove(path)
|
|
|
|
os.remove(path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{shared}
|
|
|
|
%if %{shared}
|
|
|
|
%if %{freeworld}
|
|
|
|
%if %{freeworld}
|
|
|
@ -1599,6 +1620,7 @@ fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
%pre -n chrome-remote-desktop
|
|
|
|
%pre -n chrome-remote-desktop
|
|
|
|
getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-desktop
|
|
|
|
getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-desktop
|
|
|
|
|
|
|
|
|
|
|
@ -1610,6 +1632,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n chrome-remote-desktop
|
|
|
|
%postun -n chrome-remote-desktop
|
|
|
|
%systemd_postun_with_restart chrome-remote-desktop@.service
|
|
|
|
%systemd_postun_with_restart chrome-remote-desktop@.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{freeworld}
|
|
|
|
%if 0%{freeworld}
|
|
|
|
# We only build libs-media-freeworld.
|
|
|
|
# We only build libs-media-freeworld.
|
|
|
@ -1731,6 +1754,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
|
|
|
|
%{chromium_path}/lib*.so*
|
|
|
|
%{chromium_path}/lib*.so*
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_remoting}
|
|
|
|
%files -n chrome-remote-desktop
|
|
|
|
%files -n chrome-remote-desktop
|
|
|
|
%{crd_path}/chrome-remote-desktop
|
|
|
|
%{crd_path}/chrome-remote-desktop
|
|
|
|
%{crd_path}/chrome-remote-desktop-host
|
|
|
|
%{crd_path}/chrome-remote-desktop-host
|
|
|
@ -1748,6 +1772,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
|
|
|
|
%{crd_path}/user-session
|
|
|
|
%{crd_path}/user-session
|
|
|
|
%{_unitdir}/chrome-remote-desktop@.service
|
|
|
|
%{_unitdir}/chrome-remote-desktop@.service
|
|
|
|
/var/lib/chrome-remote-desktop/
|
|
|
|
/var/lib/chrome-remote-desktop/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files -n chromedriver
|
|
|
|
%files -n chromedriver
|
|
|
|
%doc AUTHORS
|
|
|
|
%doc AUTHORS
|
|
|
@ -1771,8 +1796,12 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 83.0.4103.97-1
|
|
|
|
|
|
|
|
- update to 83.0.4103.97
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 2 2020 Tom Callaway <spot@fedoraproject.org> - 83.0.4103.61-1
|
|
|
|
* Tue Jun 2 2020 Tom Callaway <spot@fedoraproject.org> - 83.0.4103.61-1
|
|
|
|
- update to 83.0.4103.61
|
|
|
|
- update to 83.0.4103.61
|
|
|
|
|
|
|
|
- conditionalize and disable remoting
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 7 2020 Tom Callaway <spot@fedoraproject.org> - 81.0.4044.138-1
|
|
|
|
* Thu May 7 2020 Tom Callaway <spot@fedoraproject.org> - 81.0.4044.138-1
|
|
|
|
- update to 81.0.4044.138
|
|
|
|
- update to 81.0.4044.138
|
|
|
|