turn on the API key (just the API key, not the client_id or client_secret)

epel8
Tom spot Callaway 4 years ago
parent a9bcc19406
commit acf081f1d3

@ -65,7 +65,9 @@
%endif %endif
# Disabled because of Google, starting with Chromium 88. # Disabled because of Google, starting with Chromium 88.
%global useapikeys 0 %global userestrictedapikeys 0
# We can still use the api key though. For now.
%global useapikey 1
# Leave this alone, please. # Leave this alone, please.
%global builddir out/Release %global builddir out/Release
@ -176,8 +178,8 @@ BuildRequires: libicu-devel >= 5.4
### From 2013 until early 2021, Google permitted distribution builds of ### From 2013 until early 2021, Google permitted distribution builds of
### Chromium to access Google APIs that added significant features to ### Chromium to access Google APIs that added significant features to
### Chromium including, but not limited to, Sync and geolocation. ### Chromium including, but not limited to, Sync and geolocation.
### As of March 15, 2021, any Chromium builds which pass API keys ### As of March 15, 2021, any Chromium builds which pass client_id and/or
### during build will prevent end-users from signing into their ### client_secret during build will prevent end-users from signing into their
### Google account. ### Google account.
### With Chromium 88, I have removed the calls to "google_default_client_id" ### With Chromium 88, I have removed the calls to "google_default_client_id"
@ -190,13 +192,17 @@ BuildRequires: libicu-devel >= 5.4
### Note: These are for Fedora use ONLY. ### Note: These are for Fedora use ONLY.
### For your own distribution, please get your own set of keys. ### For your own distribution, please get your own set of keys.
### http://lists.debian.org/debian-legal/2013/11/msg00006.html ### http://lists.debian.org/debian-legal/2013/11/msg00006.html
%if %{useapikeys} %if %{useapikey}
%global api_key AIzaSyDUIXvzVrt5OkVsgXhQ6NFfvWlA44by-aw %global api_key AIzaSyDUIXvzVrt5OkVsgXhQ6NFfvWlA44by-aw
%else
%global api_key %nil
%endif
%if %{userestrictedapikeys}
%global default_client_id 449907151817.apps.googleusercontent.com %global default_client_id 449907151817.apps.googleusercontent.com
%global default_client_secret miEreAep8nuvTdvLums6qyLK %global default_client_secret miEreAep8nuvTdvLums6qyLK
%global chromoting_client_id 449907151817-8vnlfih032ni8c4jjps9int9t86k546t.apps.googleusercontent.com %global chromoting_client_id 449907151817-8vnlfih032ni8c4jjps9int9t86k546t.apps.googleusercontent.com
%else %else
%global api_key %nil
%global default_client_id %nil %global default_client_id %nil
%global default_client_secret %nil %global default_client_secret %nil
%global chromoting_client_id %nil %global chromoting_client_id %nil
@ -210,7 +216,7 @@ Name: chromium%{chromium_channel}%{nsuffix}
Name: chromium%{chromium_channel} Name: chromium%{chromium_channel}
%endif %endif
Version: %{majorversion}.0.4324.96 Version: %{majorversion}.0.4324.96
Release: 3%{?dist} Release: 4%{?dist}
%if %{?freeworld} %if %{?freeworld}
%if %{?shared} %if %{?shared}
# chromium-libs-media-freeworld # chromium-libs-media-freeworld
@ -1058,8 +1064,11 @@ CHROMIUM_CORE_GN_DEFINES+=' is_debug=false'
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"' CHROMIUM_CORE_GN_DEFINES+=' system_libdir="lib64"'
%endif %endif
%if %{useapikeys} %if %{useapikey}
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}"'
%endif
%if %{userestrictedapikeys}
CHROMIUM_CORE_GN_DEFINES+=' google_default_client_id="%{default_client_id}" google_default_client_secret="%{default_client_secret}"'
%endif %endif
CHROMIUM_CORE_GN_DEFINES+=' is_clang=false use_sysroot=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 fieldtrial_testing_like_official_build=true use_lld=false rtc_enable_symbol_export=true'
%if %{use_gold} %if %{use_gold}
@ -1975,6 +1984,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
%changelog %changelog
* Tue Feb 2 2021 Tom Callaway <spot@fedoraproject.org> - 88.0.4234.96-4
- turn on the API key (just the API key, not the client_id or client_secret)
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 88.0.4324.96-3 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 88.0.4324.96-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save