From 04c384a3047fd808e35d795efe381c4aca018074 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 5 Feb 2019 07:20:36 -0500 Subject: add bgstack15 customizations to rpm spec part 1 --- palemoon/bgstack15-prefs.js | 24 ++++++++++++++++++++++++ palemoon/palemoon.spec | 17 +++++++++++++++++ palemoon/small-icons.patch | 22 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 palemoon/bgstack15-prefs.js create mode 100644 palemoon/small-icons.patch (limited to 'palemoon') diff --git a/palemoon/bgstack15-prefs.js b/palemoon/bgstack15-prefs.js new file mode 100644 index 0000000..ec7ab94 --- /dev/null +++ b/palemoon/bgstack15-prefs.js @@ -0,0 +1,24 @@ +// file: /usr/lib/palemoon/browser/defaults/preferences/bgstack15-prefs.js +// reference: +// https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig +pref("browser.backspace_action", 0); +pref("browser.allTabs.previews", false); +pref("browser.ctrlTab.previews", false); +pref("browser.download.useDownloadDir", true); +pref("browser.newtab.choice", 1); +pref("browser.newtabpage.storageVersion", 1); +pref("browser.search.update", false); +pref("browser.startup.page", 3); +pref("browser.tabs.closeWindowWithLastTab", false); +pref("captivedetect.canonicalURL", "http://127.0.0.1:9980"); +pref("extensions.enabledAddons", "%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:28.3.0"); +pref("extensions.shownSelectionUI", true); +pref("extensions.update.autoUpdateDefault", false); +pref("general.warnOnAboutConfig", false); +pref("network.cookie.prefsMigrated", true); +pref("network.stricttransportsecurity.preloadlist", false); +pref("privacy.sanitize.migrateFx3Prefs", true); +pref("security.cert_pinning.enforcement_level", 0); +pref("services.sync.declinedEngines", ""); +pref("toolkit.telemetry.reportingpolicy.firstRun", false); +pref("xpinstall.whitelist.add", ""); diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec index 59a0c69..0a8208b 100644 --- a/palemoon/palemoon.spec +++ b/palemoon/palemoon.spec @@ -2,6 +2,7 @@ %global dummy_package 0 %global pkgname palemoon %global prettyname Pale Moon Web Browser +%global stackrpms_custom 1 # additional repos to get python27 and devtoolset-7 # for el6 and el7: Software Collection;, for x86_64 only @@ -38,6 +39,10 @@ Source0: https://github.com/MoonchildProductions/UXP/archive/PM%{version}_Releas Source1: palemoon-mozconfig Source2: palemoon.desktop Source3: palemoon-mimeinfo.xml +%if 0%{stackrpms_custom} +Source4: bgstack15-prefs.js +Patch0: small-icons.patch +%endif Packager: Bgstack15 %if "%{?scl_env}" != "" @@ -84,6 +89,12 @@ and themes to make the browser truly your own. %setup -q -n %{tarballdir} %{__cp} %{SOURCE1} ./.mozconfig +%if 0%{stackrpms_custom} +echo please find file browser.xul for the patch -pNUM +/bin/bash +%patch0 +%endif + %build %if "%{?scl_env}" != "" thispwd=$( pwd ) @@ -204,6 +215,12 @@ filelist() { popd } +%if 0%{stackrpms_custom} +# use /usr/lib hardcoded because that is how palemoon uses it +%{__install} -Dm0644 %{SOURCE4} \ + %{buildroot}%{_prefix}/lib/%{pkgname}/browser/defaults/preferences/ +%endif + filelist file.lst %{pkgname} usr langpack %clean diff --git a/palemoon/small-icons.patch b/palemoon/small-icons.patch new file mode 100644 index 0000000..fa6017f --- /dev/null +++ b/palemoon/small-icons.patch @@ -0,0 +1,22 @@ +--- UXP-PM28.3.0_Release.orig/application/palemoon/base/content/browser.xul 2019-01-08 11:42:01.000000000 -0500 ++++ UXP-PM28.3.0_Release/application/palemoon/base/content/browser.xul 2019-02-04 06:57:38.943983285 -0500 +@@ -355,7 +355,7 @@ + + ++ iconsize="small"> + + + +