Mozilla Thunderbird mail/newsgroup client
3c2d7d3e9407ed51c54310a45daf9b7e85a2031f..f8c155149ca1caeaf8b1adc053d85d1c756254d6
2019-01-24 CentOS Sources
debrand thunderbird-60.4.0-1.el7_6
f8c155 diff | tree
2019-01-24 CentOS Sources
import thunderbird-60.4.0-1.el7_6
375c71 diff | tree
1 files added
2 files deleted
6 files modified
297 ■■■■ changed files
.gitignore 6 ●●●● patch | view | raw | blame | history
.thunderbird.metadata 6 ●●●● patch | view | raw | blame | history
SOURCES/build-nss-version.patch 2 ●●● patch | view | raw | blame | history
SOURCES/get-calendar-langpacks.sh 126 ●●●●● patch | view | raw | blame | history
SOURCES/gtk3-private-3.22.26-1-files.inc 1 ●●●● patch | view | raw | blame | history
SOURCES/mklangsource.sh 48 ●●●●● patch | view | raw | blame | history
SOURCES/mozilla-1475775-key3-revert.patch 66 ●●●●● patch | view | raw | blame | history
SOURCES/thunderbird-mozconfig 1 ●●●● patch | view | raw | blame | history
SPECS/thunderbird.spec 41 ●●●● patch | view | raw | blame | history
.gitignore
@@ -1,7 +1,7 @@
SOURCES/Python-2.7.13.tar.xz
SOURCES/gtk3-private-3.22.26-1.el6.src.rpm
SOURCES/l10n-lightning-60.2.1.tar.xz
SOURCES/libffi-3.0.13-18.el7_3.src.rpm
SOURCES/thunderbird-60.2.1.source.tar.xz
SOURCES/thunderbird-langpacks-60.2.1-20181003.tar.xz
SOURCES/lightning-langpacks-60.4.0.tar.xz
SOURCES/thunderbird-60.4.0.source.tar.xz
SOURCES/thunderbird-langpacks-60.4.0-20190103.tar.xz
SOURCES/yasm-1.2.0-3.el5.src.rpm
.thunderbird.metadata
@@ -1,7 +1,7 @@
18a8f30a0356c751b8d0ea6f76e764cab13ee046 SOURCES/Python-2.7.13.tar.xz
0de63f863b158454b9429234b52ed28a397ec45c SOURCES/gtk3-private-3.22.26-1.el6.src.rpm
68f9529acf49d1d3b0970e3d81c60bf4ca4e4a3b SOURCES/l10n-lightning-60.2.1.tar.xz
e188ab1a444697bc649e223c28389d82ca94c472 SOURCES/libffi-3.0.13-18.el7_3.src.rpm
c88a3c949756574b6c92631105a57238ce7c329c SOURCES/thunderbird-60.2.1.source.tar.xz
82178960fd71e500d7d05793883b13f3eb3a1fd7 SOURCES/thunderbird-langpacks-60.2.1-20181003.tar.xz
147cffbafb9672855a3a60c276c3f7b80a7a9103 SOURCES/lightning-langpacks-60.4.0.tar.xz
bcdd2096a0e6cdfb28a8bef384688a03625ce4c5 SOURCES/thunderbird-60.4.0.source.tar.xz
446f167505f108dea8c647537154a9a804e39223 SOURCES/thunderbird-langpacks-60.4.0-20190103.tar.xz
77fd30f7ebc12a629a31c1e252cec06af55a71fe SOURCES/yasm-1.2.0-3.el5.src.rpm
SOURCES/build-nss-version.patch
@@ -5,7 +5,7 @@
     _USE_SYSTEM_NSS=1 )
 
 if test -n "$_USE_SYSTEM_NSS"; then
-    AM_PATH_NSS(3.36.4, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])])
-    AM_PATH_NSS(3.36.6, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])])
+    AM_PATH_NSS(3.36.0, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])])
 fi
 
SOURCES/get-calendar-langpacks.sh
New file
@@ -0,0 +1,126 @@
#!/bin/bash
#set -x
set -e
usage()
{
cat << EOF
usage: $0 options
This script downloads calendar langpacks for Thunderbird.
OPTIONS:
   -h      Show this message
   -v      Version string (7.0.1)
   -b      Build number (1, 2, 3)
   -r      Reuse downloaded files (when you don't want to redownload)
EOF
}
VER=
BUILDNUM=
LANG_DATE=`date "+%Y%m%d"`
while getopts “hv:b:r” OPTION
do
     case $OPTION in
         h)
             usage
             exit 1
             ;;
         v)
             VER=$OPTARG
             ;;
         b)
             BUILDNUM=$OPTARG
             ;;
         ?)
             usage
             exit
             ;;
     esac
done
if [ -z "$VER" -o -z "$BUILDNUM"  ]
then
     echo "Missing version or build number."
     usage
     exit 1
fi
WHITE='\033[1;33m'
NC='\033[0m' # No Color
LOCALES=`curl -f https://archive.mozilla.org/pub/thunderbird/candidates/$VER-candidates/build$BUILDNUM/linux-i686/ | grep "a href"|sed -e "s|.*/\([^/]*\)/\".*|\1|"|tail -n+2 |grep -v xpi`
#echo $LOCALES
rm -rf lightning-langpacks
mkdir -p lightning-langpacks
cd lightning-langpacks
LOCALE_COUNT=`echo $LOCALES| tr ' ' '\n' | wc -l`
LOCALE_NUM=0
for lang in $LOCALES; do
  LOCALE_NUM=$((LOCALE_NUM+1))
  echo -e "${WHITE}Processing calendar locale: $lang ($LOCALE_NUM/$LOCALE_COUNT)${NC}"
  mkdir -p extracted_lightning
  mkdir -p calendar-locales
  #echo Downloading TB binary for locale: $lang
  wget --quiet https://archive.mozilla.org/pub/thunderbird/candidates/$VER-candidates/build$BUILDNUM/linux-i686/$lang/thunderbird-$VER.tar.bz2
  cd extracted_lightning
  tar -xf ../thunderbird-$VER.tar.bz2 thunderbird/distribution/extensions/\{e2fda1a4-762b-4020-b5ad-a41df1933103\}.xpi
  set +e
  unzip -qq thunderbird/distribution/extensions/\{e2fda1a4-762b-4020-b5ad-a41df1933103\}.xpi
  set -e
  LIGHTNING_VERSION=`cat app.ini |grep "^Version="|sed -e 's/Version=//'`
  BUILD_ID=`cat app.ini |grep "^BuildID="|sed -e 's/BuildID=//'`
  MAX_VERSION=`cat app.ini |grep MaxVersion|sed -e s/MaxVersion=//`
  MIN_VERSION=`cat app.ini |grep MinVersion|sed -e s/MinVersion=//`
  rm -rf thunderbird
  mkdir -p ../calendar-locales/chrome
  cp -r chrome/calendar-$lang ../calendar-locales/chrome
  cp -r chrome/lightning-$lang ../calendar-locales/chrome
  cd -
  cd calendar-locales
  # create manifest
  cat > manifest.json <<EOL
{
  "languages": {
    "$lang": {
      "chrome_resources": {
        "calendar": "chrome/calendar-$lang/locale/$lang/calendar/",
        "lightning": "chrome/lightning-$lang/locale/$lang/lightning/"
      },
      "version": "$LIGHTNING_VERSION"
    }
  },
  "applications": {
    "gecko": {
      "strict_min_version": "$MIN_VERSION",
      "id": "langpack-cal-$lang@lightning.mozilla.org",
      "strict_max_version": "$MAX_VERSION"
    }
  },
  "langpack_id": "$lang",
  "version": "$LIGHTNING_VERSION$BUILD_ID",
  "name": "$lang Language Pack Calendar",
  "manifest_version": 2,
  "sources": {
    "browser": {
      "base_path": "browser/"
    }
  },
  "author": "Mozilla.cz (contributors: Pavel Cvrček, Pavel Franc, Michal Stanke, Michal Vašíček)",
  "description": "Language pack for Thunderbird for $lang, this was repacked by Fedora/RHEL package maintainer from original binaries."
}
EOL
  zip --quiet -r ../langpack-cal-$lang@lightning.mozilla.org.xpi *
  cd -
  rm -rf calendar-locales
  rm -rf extracted_lightning
  rm -f thunderbird-$VER.tar.bz2
done
echo "Creating lightning-langpacks-$VER.tar.xz..."
tar cJf ../lightning-langpacks-$VER.tar.xz *.xpi
cd ..
rm -rf lightning-langpacks
SOURCES/gtk3-private-3.22.26-1-files.inc
@@ -40,6 +40,7 @@
%{gtk3_install_path}/%{_lib}/gio
%ghost %attr(644, root, root) %{gtk3_install_path}/%{_lib}/gio/modules/giomodule.cache
%{gtk3_install_path}/%{_lib}/gtk-3.0
%ghost %attr(644, root, root) %{gtk3_install_path}/%{_lib}/gtk-3.0/3.0.0/immodules.cache
%{gtk3_install_path}/libexec
SOURCES/mklangsource.sh
File was deleted
SOURCES/mozilla-1475775-key3-revert.patch
File was deleted
SOURCES/thunderbird-mozconfig
@@ -15,7 +15,6 @@
ac_add_options --enable-startup-notification
ac_add_options --libdir="$LIBDIR"
ac_add_options --prefix="$PREFIX"
ac_add_options --with-l10n-base=../../l10n-merged
ac_add_options --without-system-libvpx
ac_add_options --with-pthreads
ac_add_options --with-system-jpeg
SPECS/thunderbird.spec
@@ -89,8 +89,8 @@
Summary:        Mozilla Thunderbird mail/newsgroup client
Name:           thunderbird
Version:        60.2.1
Release:        4%{?dist}
Version:        60.4.0
Release:        1%{?dist}
URL:            http://www.mozilla.org/projects/thunderbird/
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          Applications/Internet
@@ -105,11 +105,11 @@
# From ftp://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?ext_version}/source
Source0:        https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz
%if %{build_langpacks}
Source1:        thunderbird-langpacks-%{version}%{?ext_version}-20181003.tar.xz
%endif
Source1:        thunderbird-langpacks-%{version}%{?ext_version}-20190103.tar.xz
# Locales for lightning
Source2:        l10n-lightning-%{version}.tar.xz
Source3:        mklangsource.sh
Source2:        lightning-langpacks-%{version}.tar.xz
%endif
Source3:        get-calendar-langpacks.sh
Source10:       thunderbird-mozconfig
Source20:       thunderbird.desktop
@@ -167,7 +167,6 @@
Patch415:        mozilla-1436242.patch
Patch416:        mozilla-1460871-ldap-query.patch
#Removing this patch would lead to losing user saved credentials in profile!
Patch417:        mozilla-1475775-key3-revert.patch
## Thunderbird patches
@@ -355,7 +354,6 @@
# This needs to stay for the future releases
%if 0%{?rhel} < 8
%patch230 -p1 -b .1503632-nss
%patch417 -R -p1 -b .1475775-key3-revert
%endif
#ARM run-time patch
@@ -719,16 +717,6 @@
export STRIP=/bin/true
./mach build -v
# Package l10n files
cd objdir/comm/calendar/lightning
grep -v 'osx' ../../../calendar/locales/shipped-locales | while read lang x
do
   make AB_CD=en-US L10N_XPI_NAME=lightning libs-$lang
done
# install l10n files
make tools
cd -
#---------------------------------------------------------------------
%install
@@ -864,6 +852,12 @@
#create_default_langpack "pt-PT" "pt"
#create_default_langpack "sv-SE" "sv"
#create_default_langpack "zh-TW" "zh"
# lightning langpacks install
cd %{buildroot}%{langpackdir}
%{__tar} xf %{SOURCE2}
chmod a+r *.xpi
cd -
%endif # build_langpacks
# Get rid of devel package and its debugsymbols
@@ -989,7 +983,16 @@
#===============================================================================
%changelog
* Tue Oct 16 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-4
* Thu Jan  3 2019 Jan Horak <jhorak@redhat.com> - 60.4.0-1
- Update to 60.4.0
* Wed Oct 31 2018 Jan Horak <jhorak@redhat.com> - 60.3.0-1
- Update to 60.3.0
* Wed Oct 31 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-6
- Fixed missing calendar langpacks
* Tue Oct 16 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-5
- Fixing minor issues
* Wed Oct 10 2018 Jan Horak <jhorak@redhat.com> - 60.2.1-3