mirror of
https://abf.rosa.ru/djam/chromium-browser-stable.git
synced 2025-02-23 14:42:49 +00:00
Move default config into a separate file
This will easify editing it. No changes made. Reformatted by jq(1).
This commit is contained in:
parent
b9ef6b0247
commit
b1ab34053c
3 changed files with 41 additions and 40 deletions
|
@ -86,7 +86,7 @@
|
||||||
Summary: A fast web browser based on the Blink engine
|
Summary: A fast web browser based on the Blink engine
|
||||||
Name: chromium-browser-stable
|
Name: chromium-browser-stable
|
||||||
Version: 98.0.4758.80
|
Version: 98.0.4758.80
|
||||||
Release: 1
|
Release: 2
|
||||||
License: BSD, LGPL
|
License: BSD, LGPL
|
||||||
Group: Networking/WWW
|
Group: Networking/WWW
|
||||||
Url: https://www.chromium.org/Home
|
Url: https://www.chromium.org/Home
|
||||||
|
@ -103,6 +103,7 @@ Source21: missing_fcntl.h
|
||||||
Source30: master_preferences.json
|
Source30: master_preferences.json
|
||||||
Source31: default_bookmarks.html
|
Source31: default_bookmarks.html
|
||||||
Source32: chromium.default
|
Source32: chromium.default
|
||||||
|
Source33: chromium-default-config.json
|
||||||
Source100: icons.tar.bz2
|
Source100: icons.tar.bz2
|
||||||
Source997: depot_tools.tar.xz
|
Source997: depot_tools.tar.xz
|
||||||
Source999: new-system-icons.tar.xz
|
Source999: new-system-icons.tar.xz
|
||||||
|
@ -148,6 +149,7 @@ BuildRequires: nodejs
|
||||||
BuildRequires: nodejs14
|
BuildRequires: nodejs14
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
|
BuildRequires: jq
|
||||||
BuildRequires: yasm
|
BuildRequires: yasm
|
||||||
BuildRequires: atomic-devel
|
BuildRequires: atomic-devel
|
||||||
BuildRequires: bzip2-devel
|
BuildRequires: bzip2-devel
|
||||||
|
@ -251,6 +253,7 @@ if proprietary CryptoPro is installed.
|
||||||
%config %{_sysconfdir}/default/%{crname}
|
%config %{_sysconfdir}/default/%{crname}
|
||||||
%{_bindir}/%{crname}
|
%{_bindir}/%{crname}
|
||||||
%{_crdir}/chromium-wrapper
|
%{_crdir}/chromium-wrapper
|
||||||
|
%{_crdir}/chromium-default-config.json
|
||||||
%{_crdir}/chrome
|
%{_crdir}/chrome
|
||||||
%{_crdir}/chrome-sandbox
|
%{_crdir}/chrome-sandbox
|
||||||
%{_crdir}/chrome_crashpad_handler
|
%{_crdir}/chrome_crashpad_handler
|
||||||
|
@ -622,6 +625,8 @@ mkdir -p %{buildroot}%{_crdir}/pepper
|
||||||
find out/Release/resources/ -name "*.d" -exec rm {} \;
|
find out/Release/resources/ -name "*.d" -exec rm {} \;
|
||||||
cp -r out/Release/resources %{buildroot}%{_crdir}
|
cp -r out/Release/resources %{buildroot}%{_crdir}
|
||||||
|
|
||||||
|
install -m 0644 %{SOURCE33} %{buildroot}%{_crdir}
|
||||||
|
|
||||||
# desktop file
|
# desktop file
|
||||||
mkdir -p %{buildroot}%{_datadir}/applications
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||||||
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/
|
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/
|
||||||
|
@ -635,3 +640,7 @@ install -m 0644 %{SOURCE30} %{buildroot}%{_sysconfdir}/%{crname}/
|
||||||
install -m 0644 %{SOURCE31} %{buildroot}%{_sysconfdir}/%{crname}/
|
install -m 0644 %{SOURCE31} %{buildroot}%{_sysconfdir}/%{crname}/
|
||||||
|
|
||||||
find %{buildroot} -name "*.nexe" -exec strip {} \;
|
find %{buildroot} -name "*.nexe" -exec strip {} \;
|
||||||
|
|
||||||
|
%check
|
||||||
|
# ensure JSON validity
|
||||||
|
[ "$(jq .browser.custom_chrome_frame %{buildroot}%{_crdir}/chromium-default-config.json)" = "false" ]
|
||||||
|
|
29
chromium-default-config.json
Normal file
29
chromium-default-config.json
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"browser": {
|
||||||
|
"custom_chrome_frame": false
|
||||||
|
},
|
||||||
|
"extensions": {
|
||||||
|
"theme": {
|
||||||
|
"colors": {},
|
||||||
|
"id": "",
|
||||||
|
"images": {},
|
||||||
|
"properties": {},
|
||||||
|
"tints": {},
|
||||||
|
"use_system": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"homepage": "https://rosalinux.ru",
|
||||||
|
"homepage_is_newtabpage": false,
|
||||||
|
"session": {
|
||||||
|
"restore_on_startup": 1
|
||||||
|
},
|
||||||
|
"webkit": {
|
||||||
|
"webprefs": {
|
||||||
|
"default_fixed_font_size": 13,
|
||||||
|
"default_font_size": 16,
|
||||||
|
"fixed_font_family": "Droid Sans Mono",
|
||||||
|
"sansserif_font_family": "Droid Sans",
|
||||||
|
"serif_font_family": "Droid Serif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -42,45 +42,8 @@ done
|
||||||
# Set the default theme as GTK+ with system window decoration
|
# Set the default theme as GTK+ with system window decoration
|
||||||
if [ ! -d ~/.config/chromium/Default ]; then
|
if [ ! -d ~/.config/chromium/Default ]; then
|
||||||
mkdir -p ~/.config/chromium/Default
|
mkdir -p ~/.config/chromium/Default
|
||||||
cat <<EOF > ~/.config/chromium/Default/Preferences
|
# cat > instead of cp to e.g. respect umask
|
||||||
{
|
cat "$LIBDIR"/chromium-default-config.json > ~/.config/chromium/Default/Preferences
|
||||||
"browser": {
|
|
||||||
"custom_chrome_frame": false
|
|
||||||
},
|
|
||||||
"extensions": {
|
|
||||||
"theme": {
|
|
||||||
"colors": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"id": "",
|
|
||||||
"images": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"tints": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"use_system": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"homepage": "https://rosalinux.ru",
|
|
||||||
"homepage_is_newtabpage": false,
|
|
||||||
"session": {
|
|
||||||
"restore_on_startup": 1
|
|
||||||
},
|
|
||||||
"webkit": {
|
|
||||||
"webprefs": {
|
|
||||||
"default_fixed_font_size": 13,
|
|
||||||
"default_font_size": 16,
|
|
||||||
"fixed_font_family": "Droid Sans Mono",
|
|
||||||
"sansserif_font_family": "Droid Sans",
|
|
||||||
"serif_font_family": "Droid Serif"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -u $CHROME_SANDBOX ] ; then
|
if [ ! -u $CHROME_SANDBOX ] ; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue