From 1016e84f223b27a2bd1d9fc4ad479ea0e6c7f14c Mon Sep 17 00:00:00 2001 From: yangxianzhao Date: Tue, 13 Jun 2023 14:40:54 +0800 Subject: [PATCH] rebrand to anolis fix build error --- download | 1 + ....js => thunderbird-anolis-default-prefs.js | 2 +- thunderbird.spec | 39 ++++++++++++++----- 3 files changed, 32 insertions(+), 10 deletions(-) rename thunderbird-redhat-default-prefs.js => thunderbird-anolis-default-prefs.js (96%) diff --git a/download b/download index b8a40c5..535a013 100644 --- a/download +++ b/download @@ -3,3 +3,4 @@ a9f32342fcac2b79f76860ee742d6ff1 cbindgen-vendor.tar.xz ba9a42238ef50b61482ee8f5d869e61f thunderbird-langpacks-102.12.0-20230605.tar.xz 75157f5e77e1a4f460645a57ff54e552 nspr-4.34.0-3.el8_1.src.rpm b603172c3f4cbb1d8197328087ca3972 nss-3.79.0-11.el8_1.src.rpm +f5186eae0d0728e2cdcb6c26cd7d658e rust-cbindgen.tar.gz diff --git a/thunderbird-redhat-default-prefs.js b/thunderbird-anolis-default-prefs.js similarity index 96% rename from thunderbird-redhat-default-prefs.js rename to thunderbird-anolis-default-prefs.js index 4d01b78..1d192b1 100644 --- a/thunderbird-redhat-default-prefs.js +++ b/thunderbird-anolis-default-prefs.js @@ -2,7 +2,7 @@ pref("app.update.enabled", false); pref("app.update.autoInstallEnabled", false); /* Allow users to set custom colors*/ /* pref("browser.display.use_system_colors", true);*/ -pref("general.useragent.vendor", "Red Hat"); +pref("general.useragent.vendor", "Anolis"); pref("general.useragent.vendorSub", "THUNDERBIRD_RPM_VR"); pref("intl.locale.matchOS", true); pref("mail.shell.checkDefaultClient", false); diff --git a/thunderbird.spec b/thunderbird.spec index 2bb404f..036fb5e 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # Set for local builds only %global disable_toolsets 0 @@ -102,7 +103,7 @@ end} %endif %global use_rustts 1 %global dts_version 10 -%global rust_version 1.62 +#%global rust_version 1.62 %if 0%{?rhel} >= 8 %global use_rustts 0 %endif @@ -166,7 +167,7 @@ end} Summary: Mozilla Thunderbird mail/newsgroup client Name: thunderbird Version: 102.12.0 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} URL: http://www.mozilla.org/projects/thunderbird/ License: MPLv1.1 or GPLv2+ or LGPLv2+ @@ -187,7 +188,7 @@ ExcludeArch: %{ix86} %endif %endif %if 0%{?rhel} == 7 -ExcludeArch: aarch64 s390 ppc +ExcludeArch: s390 ppc %endif #Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.processed-source.tar.xz @@ -198,7 +199,7 @@ Source1: thunderbird-langpacks-%{version}-20230605.tar.xz Source2: cbindgen-vendor.tar.xz Source3: process-official-tarball Source10: thunderbird-mozconfig -Source12: thunderbird-redhat-default-prefs.js +Source12: thunderbird-anolis-default-prefs.js Source20: thunderbird.desktop Source21: thunderbird.sh.in Source24: mozilla-api-key @@ -209,6 +210,7 @@ Source35: google-loc-api-key Source403: nss-3.79.0-11.el8_1.src.rpm Source401: nss-setup-flags-env.inc Source402: nspr-4.34.0-3.el8_1.src.rpm +Source404: rust-cbindgen.tar.gz # Build patches Patch3: mozilla-build-arm.patch @@ -331,7 +333,7 @@ BuildRequires: rustfmt >= %{rust_version} %endif %if 0%{?use_rustts} -BuildRequires: rust-toolset-%{rust_version} +#BuildRequires: rust-toolset-%{rust_version} %endif %if 0%{?use_llvmts} @@ -851,8 +853,23 @@ which node mkdir -p my_rust_vendor cd my_rust_vendor %{__tar} xf %{SOURCE2} -mkdir -p .cargo -cat > .cargo/config < %{_buildrootdir}/cargo/config </dev/null || : #=============================================================================== %changelog +* Tue Jun 13 2023 yangxianzhao - 102.12.0-1.0.1 +- rebrand: rebrand to anolis +- fix build error + * Mon Jun 05 2023 Eike Rathke - 102.12.0-1 - Update to 102.12.0 build1 -- Gitee