Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 16678311c6188f558bb20223856ec7e5 > files > 19

thunderbird-52.9.1-1.1.mga6.src.rpm

%define upstream_version %{version}
%define release_dir thunderbird-52.9.1
%define title Mozilla Thunderbird

#
# Compiler Choices
#

# limit max cpus to allow build on i586 : 8 cpus fail with 52.8.0 version
%define _smp_ncpus_max 4

# Use CCache for speedup compiling (only for developing)
%define use_ccache 0
%{?_with_ccache: %global use_ccache 1}
%{?_without_ccache: %global use_ccache 0}

# Enable O3 Optimization
%define use_opt_o3 0
%{?_with_opt_o3: %global use_opt_o3 1}
%{?_without_opt_o3: %global use_opt_o3 0}

# Use GTK3 toolkit
%define use_toolkit_gtk3 1
%{?_with_gtk3: %global use_toolkit_gtk3 1}
%{?_without_gtk3: %global use_toolkit_gtk3 0}

%define oname thunderbird
%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbdir %{_libdir}/%{oname}-%{version}
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}

#(doktor5000) lightning definitions
%define lightning_id \{e2fda1a4-762b-4020-b5ad-a41df1933103\}
%define lightning_version 5.4

#(doktor5000) this is where the actual build happens to keep compiled objects out-of-tree
# see https://bugzilla.mozilla.org/show_bug.cgi?id=1106883#c4 for context information
%define objdir objdir-tb

# fallback using absolute path - should be used with .mozconfig
# see https://bugzilla.mozilla.org/show_bug.cgi?id=1106883#c4 for context information
#define objdir objdir-tb %%{_builddir}/%%{name}-%%{version}/%%{release_dir}/%%{objdir}

%define xpi 0
%define enigmail_version 2.0.8
%define enigmail_short_version 2.0
%define enigmail_id \{847b3a00-7ab1-11d4-8f02-006008948af5\}

%global __provides_exclude libgtkembedmoz.so|libxpcom.so
%global __requires_exclude libgtkembedmoz.so|libxpcom.so|libxul.so

# Conditional Building Options
#
# %{with system_cairo}: use system cairo graphics library optionally
# (default for now is to use the in-tree cairo library, which for thunderbird
# 45.4.0 is stuck at 1.9.5. Compiling with system cairo instead of the
# in-tree one seems to produce an executable which is subject to sporadic
# crashes. Note that this affects also the PDF engine used by Thunderbird
# to print documents, which in the case of the system-cairo will be newer.
#
%bcond_with system_cairo

#define debug_package %{nil}

# this seems fragile, so require the exact version or later (#58754)
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
# this one as well (#59759)
%define nss_libname %mklibname nss 3
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)

Name:		thunderbird
Epoch:		0
Version:	52.9.1
%define subrel 1
Release:	%mkrel 1
Summary:	Full-featured email, RSS, and newsgroup client
License:	MPL
Group:		Networking/Mail
URL:		http://www.mozilla.org/thunderbird/organizations/
Source0:	http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{upstream_version}/source/thunderbird-%{upstream_version}.source.tar.xz
# (doktor5000) script to create tarball for the lightning l10n sources
# adapted from http://pkgs.fedoraproject.org/cgit/thunderbird.git/plain/mklangsource.sh
# first run bm -lp thunderbird.spec to ensure calendar/locales/shipped-locales definitions of current %%version are present and then
# run the script in SOURCES/ folder as ./mklangsource.sh to generate the tarball for the current %%version
Source2:	mklangsource.sh
# (doktor5000) tarball for the lightning language sources, see above
Source3:	l10n-lightning-%{version}.tar.xz

# (doktor5000) needs to be manually updated/synced with calendar/locales/shipped-locales
%global lightning_langs ca cs cy da de en-GB es-AR es-ES et eu fi fr fy-NL ga-IE gd hu is it ja lt nb-NO nl nn-NO pl pt-PT ru sk sq sv-SE tr uk zh-CN zh-TW

Source12:	mozilla-thunderbird-mageia-default-prefs.js
# Mandriva sources (Source300+)
Source300:	https://enigmail.net/download/source/enigmail-%{enigmail_version}.tar.gz
Source303:	thunderbird.desktop
# Build patches
Patch2:		mozilla-firefox-1.0-prdtoa.patch
Patch8:		firefox-38.0-nss-version.patch
Patch9:		firefox-38.1-freetype-2.6-compatibility.patch
Patch10:	mozilla-thunderbird-52.0-duplicate_files.patch
# Mageia patches (patch100+)

# Debian patches (Patch200+)
Patch201:	thunderbird-24.0-mga-default-mailer.patch
# Mandriva patches (Patch300+)
Patch300:	mozilla-thunderbird-0.8-progname.patch
Patch301:	mozilla-thunderbird-enigmail-package.patch
Patch304:	mozilla-thunderbird-run-mozilla.patch
Patch305:	mozilla-thunderbird-45.3.0-optimize-noOs_everywhere.patch
Patch306:	mozilla-thunderbird-52.0-optimize-dont-force-O3.patch
Patch307:	mozilla-thunderbird-52.0-optimize-dont-force-O3-pgo-too.patch

# OpenSuse patches (Patch400+)
Patch400:	thunderbird-appname.patch
BuildRequires:	autoconf2.1
%if %{with system_cairo}
BuildRequires:	cairo-devel >= 1.10
%endif
Requires:	%{mklibname sqlite3_ 0} >= %{sqlite3_version}
BuildRequires:	sqlite3-devel >= 3.9.1
Requires:	%{nss_libname} >= 2:%{nss_version}
BuildRequires:	yasm
BuildRequires:	mesagl-devel
%if %{use_toolkit_gtk3}
BuildRequires:	gtk3-devel >= 3.4.0
%else
BuildRequires:	gtk2-devel >= 2.14
%endif
BuildRequires:	gzip
BuildRequires:	python-devel
BuildRequires:	python-virtualenv
BuildRequires:	libjpeg-devel
#(tpg) older versions doesn't support apng extension
%if %{mgaversion} >= 3
BuildRequires:	libpng-devel >= 2:1.6.19
%endif
BuildRequires:	nspr-devel >= 2:4.12
BuildRequires:	nss-static-devel >= 2:3.21.1
BuildRequires:	unzip
BuildRequires:	zip
BuildRequires:	zlib-devel
BuildRequires:	libIDL-devel
BuildRequires:	freetype2-devel
BuildRequires:	icu-devel
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	libxt-devel
BuildRequires:	hunspell-devel
BuildRequires:	dbus-glib-devel >= 0.60
Requires(post):	mktemp
Requires(post): rpm-helper
Requires(postun): rpm-helper
# Integrates thunderbird with xdg-utils.
Requires:	xdg-utils
# Thunderbird 3 requires alsa
BuildRequires:	libalsa-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-allocators-1.0)
# pango-devel is bring in also by gtk+2-devel but not with minimal requirement
BuildRequires:	pango-devel >= 1.22.0
BuildRequires:	python
BuildRequires:	libnotify-devel
BuildRequires:	startup-notification-devel >= 0.8
BuildRequires:	libiw-devel
BuildRequires:	libevent-devel >= 1.4.7
BuildRequires:	libvpx-devel >= 1.5.0
BuildRequires:	python-setuptools
# (doktor5000) only required for checkout of lightning l10 sources, see mklangsource.sh
BuildRequires:	mercurial
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	java-headless
BuildRequires:	rootcerts
BuildRequires:	doxygen
BuildRequires:	glibc-static-devel
BuildRequires:	wget
BuildRequires:	cdrkit-genisoimage
BuildRequires:	ffmpeg-devel
BuildRequires:	libtheora-devel
BuildRequires:	libxscrnsaver-devel
BuildRequires:	python-sqlite2
%if %{mgaversion} >= 4
Requires:	%{_lib}notify4
Requires:	gstreamer1.0-libav
%endif
# try to fix mga#1344 (automatic installation of proper -l10n package)
# packages requiring locales-XX will be automatically preferred when locales-XX
# is already installed
Recommends:	thunderbird-l10n
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2
Obsoletes:	mozilla-thunderbird < %{epoch}:%{version}-%{release}
Provides:	mozilla-thunderbird = %{epoch}:%{version}-%{release}
Obsoletes:	thunderbird-lightning < 1:3.3-7
Provides:	thunderbird-lightning

%description
%{title} is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

#===============================================================================
#enigmail

# Supported l10n language lists
%define l10n_langlist	ar bg ca cs de el es fi fr it hu ja ko nb nl pl pt pt_BR ru sl sv tr vi zh_CN zh_TW

# Disabled l10n languages, for any reason
# nl sk es_AR do not support 0.95.0 yet
   ## %define disabled_l10n_langlist     hu
 # global disabled_l10n_langlist %{nil}

# Language descriptions
%define language_ar ar
%define language_bg bg
%define language_ca ca
%define language_cs cs
%define language_de de
%define language_el el
%define language_es_AR es-AR
%define language_es es-ES
%define language_fi fi
%define language_fr fr
%define language_hu hu
%define language_it it
%define langname_it Italian
%define language_ja ja
%define language_ko ko
%define language_nb nb-NO
%define language_nl nl
%define language_pl pl
%define language_pt pt-PT
%define language_pt_BR pt-BR
%define language_ro ro
%define language_ru ru
%define language_sk sk
%define language_sl sl
%define language_sv sv-SE
%define language_tr tr
%define language_vi vi
%define language_zh_CN zh-CN
%define language_zh_TW zh-TW

# --- Danger line ---

# All langs
%{expand:%%global langlist %(for lang in %l10n_langlist; do echo "$lang"; done | sort -u | sed ':a;$!N;s/\n/ /;ta')}

# Defaults (all languages enabled by default)
# l10n
%{expand:%(for lang in %l10n_langlist; do echo "%%define l10n_$lang 1"; done)}
%{expand:%(for lang in %disabled_l10n_langlist; do echo "%%define l10n_$lang 0"; done)}

# Params
%{expand:%(for lang in %langlist; do echo "%%bcond_without $lang"; done)}

%package enigmail
Summary:	Access the authentication and encryption features provided by GnuPG
Group:		Networking/Mail
Requires:	%{name} = %{epoch}:%{version}
Obsoletes:	%{name}-enigmime < %{epoch}:%{version}-%{release}
Provides:	%{name}-enigmime = %{epoch}:%{version}-%{release}
Obsoletes:	mozilla-thunderbird-enigmime < %{epoch}:%{version}-%{release}
Obsoletes:	mozilla-thunderbird-enigmail < %{epoch}:%{version}-%{release}
Provides:	mozilla-thunderbird-enigmime = %{epoch}:%{version}-%{release}
Provides:	mozilla-thunderbird-enigmail = %{epoch}:%{version}-%{release}
Requires:	gnupg2
Requires(post): %{name} = %{epoch}:%{version}
Requires(preun): %{name} = %{epoch}:%{version}
Requires(post):	mktemp
Requires(postun): mktemp
Recommends:	pinentry-gtk
%(for lang in %l10n_langlist %disabled_l10n_langlist; do
	echo "Obsoletes: thunderbird-enigmail-$lang < 0:10.0.2"
	echo "Obsoletes: mozilla-thunderbird-enigmail-$lang < %{epoch}:%{version}-%{release}"
	echo "Obsoletes: mozilla-thunderbird-enigmail-l10n-$lang < %{epoch}:%{version}-%{release}"
done)

%description enigmail
Enigmail is an extension to the mail client of %{title}
which allows users to access the authentication and encryption
features provided by GnuPG.

Main Features

    * Encrypt/sign mail when sending, decrypt/authenticate received
      mail
    * Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
    * Per-Account based encryption and signing defaults
    * Per-Recipient rules for automated key selection, and
      enabling/disabling encryption and signing
    * OpenPGP key management interface

#===============================================================================


%prep
%setup -q -c -n %{name}-%{version}

#===================
# Thunderbird itself
%setup -q -T -D -n %{name}-%{version}/%{release_dir}
%patch2 -p0
pushd mozilla
%patch8 -p1
%patch9 -p1
popd
%patch10 -p2

%patch201 -p0 -b .default_mailer
%patch300 -p0 -b .progname
%patch301 -p1 -b .enigmailpackage
%patch304 -p0 -b .run-mozilla
%patch305 -p1 -b .noOs_everywhere
%patch306 -p1 -b .noo3
%patch307 -p1 -b .noo3_pgo

%patch400 -p1 -b .appname

#===============================================================================
# Enigmail
%setup -q -T -D -n %{name}-%{version}/%{release_dir}/mozilla/extensions -a300

%setup -q -T -D -n %{name}-%{version}/%{release_dir}

#===============================================================================

# for virtualenv patch
cd mozilla
autoconf-2.13
cd ..

%build
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1

%ifarch %{ix86} && %{mgaversion} == 5
# (doktor5000) --disable-new-dtags in addition to -fnostack-protector to get rid of "undefined reference to '__stack_chk_fail'" against libc on i5
CFLAGS=$(echo %optflags | %{__sed} -e 's/-fexceptions//;s/--enable-new-dtags/--disable-new-dtags/')
CFLAGS="$CFLAGS -fno-strict-aliasing -fno-stack-protector"
%else
CFLAGS=$(echo %optflags | %{__sed} -e 's/-fexceptions//')
CFLAGS="$CFLAGS -fno-strict-aliasing"
%endif
CXXFLAGS="$CFLAGS -fpermissive"
RPM_OPT_FLAGS="$CFLAGS"
LDFLAGS="%ldflags"

%ifnarch x86_64
CFLAGS=$(echo "$CFLAGS" | %{__sed} -e 's/-g/-g1/')
CXXFLAGS=$(echo "$CXXFLAGS" | %{__sed} -e 's/-g/-g1/')
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
# overrides the -g1 from line above and breaks building on s390
# (OOM when linking, rhbz#1238225)
export MOZ_DEBUG_FLAGS=" "
%endif

export CFLAGS
export CXXFLAGS
export RPM_OPT_FLAGS
export LDFLAGS

%if %{use_opt_o3}
export CFLAGS="$CFLAGS -O3"
export CXXFLAGS="$CXXFLAGS -O3"
%endif

export MOZCONFIG=`pwd`/.mozconfig
cat > $MOZCONFIG << EOF
mk_add_options AUTOCONF=autoconf-2.13
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="-j%{_smp_ncpus_max}"
# fallback using absolute path - should be used with define for absolute path for objdir
# see https://bugzilla.mozilla.org/show_bug.cgi?id=1106883#c4 for context information
#mk_add_options MOZ_OBJDIR=%%{_builddir}/%%{name}-%%{version}/%%{release_dir}/%%{objdir}
# -Werror=format-security causes build failures when -Wno-format is explicitly given
# for some sources
ac_add_options --host=%{_host}
ac_add_options --target=%{_target_platform}
ac_add_options --prefix="%{_prefix}"
ac_add_options --libdir="%{_libdir}"
ac_add_options --includedir="%{_includedir}"
ac_add_options --datadir="%{_datadir}"
ac_add_options --enable-application=mail
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-icu
%if %{mgaversion} >= 3
ac_add_options --with-system-png
%endif
ac_add_options --with-system-bz2
ac_add_options --disable-system-sqlite
ac_add_options --enable-system-hunspell
%if %{with system_cairo}
ac_add_options --enable-system-cairo
%endif
ac_add_options --with-pthreads
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
%if %{use_toolkit_gtk3}
ac_add_options --enable-default-toolkit=cairo-gtk3
%else
ac_add_options --enable-default-toolkit=cairo-gtk2
%endif
ac_add_options --disable-strip
ac_add_options --disable-install-strip
ac_add_options --enable-startup-notification
ac_add_options --enable-gio
ac_add_options --enable-optimize
ac_add_options --with-system-libevent
%if %{mgaversion} < 6
ac_add_options --without-system-libvpx
%else
ac_add_options --with-system-libvpx
%endif
# lightning related, enable lightning build and set path to l10n sources
ac_add_options --enable-calendar
ac_add_options --with-l10n-base=../../l10n
ac_add_options --enable-official-branding
ac_add_options --with-distribution-id=org.mageia
#
%if %{use_ccache}
ac_add_options --with-cache=%{_bindir}/ccache
%endif
EOF

# extract lightning l10n source tarball
cd ..
%{__tar} xf %{SOURCE3}
cd -

# recommended way to build - also used by upstream buildsystem
# see https://bugzilla.mozilla.org/show_bug.cgi?id=1106883#c4 for context information
MOZ_OBJDIR=%{objdir} make -f client.mk build

# FIXME: cannot be used as it needs to be defined in preamble as %%files list is also expanded
# and not all macro expansions or conversion to shell variable work in preamble

# (doktor5000) read all l10n locales supported for the current lightning release
#lightning_langlist=$(grep -v 'osx' calendar/locales/shipped-locales | awk '{print $1}')

# (doktor5000) exit the build here if there aren't any lightning languages
#[[ -n $lightning_langlist ]]

# (doktor5000) turn the shell variable into an rpm macro via lazy expansion ( %% )
#%%{expand:%%global lightning_langs $lightning_langlist }


# this builds and installs all l10n files into the one en_US xpi file, same as how lightning was distributed upstream
cd %{objdir}/calendar/lightning

echo %lightning_langs

for lang in %lightning_langs
  do
    make AB_CD=en-US L10N_XPI_NAME=lightning libs-$lang
  done



# this creates the lightning and gdata-provider .xpi's
make tools
cd -

#===============================================================================

pushd mozilla/extensions/enigmail
%configure2_5x
make

popd

pushd mozilla/extensions/enigmail/lang
chmod 0755 ./make-lang.sh
for i in `cat current-languages.txt`; do
  ./make-lang.sh $i %{enigmail_short_version}
done
popd

#===============================================================================

%install
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
%{__mkdir_p} %buildroot%tbdir

rm -f extensions/spellcheck/locales/en-US/hunspell/en-US.{dic,aff}

# replacement for %%makeinstall_std
MOZ_OBJDIR=%{objdir} make -f client.mk install DESTDIR=%{buildroot}


rm -rf %buildroot%tbdir/dictionaries
ln -s %{_datadir}/hunspell %buildroot%tbdir/dictionaries


%{__install} -p -D %{SOURCE303} %{buildroot}/%{_datadir}/applications/%{name}.desktop

#used for matching system locale on startup
%{__cat} %{SOURCE12} | %{__perl} -p -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g;' \
                                    -e 's,THUNDERBIRD_VENDOR_COMMENT,%{product_release},g;' \
  > %{buildroot}%{tbdir}/defaults/pref/all-mageia.js

#===============================================================================

# icons
%{__mkdir_p} %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/{16x16,22x22,24x24,32x32,48x48,256x256}/apps
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{__install} -m 644 %{buildroot}/%{tbdir}/chrome/icons/default/default256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png

#===============================================================================

# thunderbird ignores lightning when installed in this path ? seems upstream borkage
rm -rf %{buildroot}%{tbdir}/distribution/extensions/%{lightning_id}

# create the lightning installation folder, and extract all lightning contents from the xpi there
%{__mkdir_p} %{buildroot}%{tbextdir}/%{lightning_id}

%{_bindir}/unzip -q %{objdir}/dist/xpi-stage/lightning-%{lightning_version}*.xpi -d %{buildroot}%{tbextdir}/%{lightning_id}
%{__chmod} 644 %{buildroot}%{tbextdir}/%{lightning_id}/chrome.manifest

#===============================================================================

%{__mkdir_p} %{buildroot}%{tbextdir}/%{enigmail_id}
%if !%{xpi}
%{_bindir}/unzip -q mozilla/extensions/enigmail/build/enigmail-%{enigmail_short_version}*.xpi -d %{buildroot}%{tbextdir}/%{enigmail_id}
%{__chmod} 644 %{buildroot}%{tbextdir}/%{enigmail_id}/chrome.manifest
%else
%{__cp} -aL mozilla/extensions/enigmail/build/enigmail-%{enigmail_short_version}*.xpi %{buildroot}%{tbextdir}/%{enigmail_id}/%{enigmail_id}.xpi
%endif

#==============================================================================
#enigmail lang package
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}
%{expand:%(for lang in %langlist; do echo "with_$lang=%%{with $lang}"; done)}
%{expand:%(for lang in %l10n_langlist; do echo "l10n_$lang=%%{l10n_$lang}"; done)}
pushd mozilla/extensions/enigmail/lang
 for lang in %langlist; do
    %{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{tb_appid}/enigmail-$lang@enigmail.mozdev.org
    language="language_$lang"
    language=${!language}
    %{_bindir}/unzip -q enigmail-${language}-%{enigmail_short_version}.xpi -d %{buildroot}%{_datadir}/mozilla/extensions/%{tb_appid}/enigmail-$lang@enigmail.mozdev.org/
 done
popd

#===============================================================================

#exclude devel files
%{__rm} -rf %{buildroot}%{_datadir}/idl/%{oname}-%{version}
%{__rm} -rf %{buildroot}%{_includedir}/%{oname}-%{version}
%{__rm} -rf %{buildroot}%{_libdir}/%{oname}-devel-%{version}

#remove some empty files we blindly package otherwise due to wildcards in %%files
find %{buildroot} -type f -iname '.mkdir.done' -delete
#===============================================================================


# (doktor5000) %{_bindir}/thunderbird should be a symlink to %{tbdir}/thunderbird
# (doktor5000) if that is not the case, the build is broken - can happen at times, no clue why yet
# (doktor5000) catch it here, do not fix automatically to track down why this happens
[[ -L %{buildroot}/%{_bindir}/thunderbird ]] || exit 1
#{ cd %{buildroot}/%{_bindir}/thunderbird ; ln -sf ../../%{tbdir}/thunderbird thunderbird ; }

# (doktor5000) %{tbdir}/thunderbird should be the same as %{tbdir}/thunderbird-bin
# diff -q %{buildroot}%{tbdir}/thunderbird %{buildroot}%{tbdir}/thunderbird-bin || exit 1

#===============================================================================

%post

mktemp="/bin/mktemp -d -q -p ${TMPDIR:-/tmp} -t %{name}.XXXXXXXXXX"

TMPDIR= TB_TMPDIR=`$mktemp` && {
    HOME="$TB_TMPDIR" LD_LIBRARY_PATH="%{tbdir}" %{tbdir}/thunderbird-bin -nox -register
    test -d "$TB_TMPDIR" && %{__rm} -rf -- "$TB_TMPDIR"
}


#===============================================================================

%post enigmail
if [ -f %{tbdir}/components/compreg.dat ]; then
    %{__rm} -f %{tbdir}/components/compreg.dat
fi

if [ -f %{tbdir}/components/xpti.dat ]; then
    %{__rm} -f %{tbdir}/components/xpti.dat
fi

mktemp="/bin/mktemp -d -q -p ${TMPDIR:-/tmp} -t %{name}.XXXXXXXXXX"

TMPDIR= TB_TMPDIR=`$mktemp` && {
%if %{xpi}
    HOME="$TB_TMPDIR" LD_LIBRARY_PATH="%{tbdir}" %{tbdir}/thunderbird-bin -nox -install-global-extension %{tbextdir}/enigmail-%{enigmail_version}-linux-*.xpi
%endif
    HOME="$TB_TMPDIR" LD_LIBRARY_PATH="%{tbdir}" %{tbdir}/thunderbird-bin -nox -register
    test -d "$TB_TMPDIR" && %{__rm} -rf -- "$TB_TMPDIR"
}

%preun enigmail
if [ -f %{tbdir}/components/compreg.dat ]; then
    %{__rm} -f %{tbdir}/components/compreg.dat
fi

if [ -f %{tbdir}/components/xpti.dat ]; then
    %{__rm} -f %{tbdir}/components/xpti.dat
fi

if [ -x %{tbdir}/thunderbird-bin ]; then 
mktemp="/bin/mktemp -d -q -p ${TMPDIR:-/tmp} -t %{name}.XXXXXXXXXX"

  TMPDIR= TB_TMPDIR=`$mktemp` && {
  %if %{xpi}
      HOME="$TB_TMPDIR" LD_LIBRARY_PATH="%{tbdir}" %{tbdir}/thunderbird-bin -nox -install-global-extension %{tbextdir}/enigmail-%{enigmail_version}-linux-*.xpi
  %endif
      HOME="$TB_TMPDIR" LD_LIBRARY_PATH="%{tbdir}" %{tbdir}/thunderbird-bin -nox -register
      test -d "$TB_TMPDIR" && %{__rm} -rf -- "$TB_TMPDIR"
  }
fi

#===============================================================================

%files
%doc mozilla/LEGAL
# (doktor5000) explicit %%attrs are not applicable to symlinks, remove them
%{_bindir}/thunderbird
%attr(644,root,root) %{_datadir}/applications/*.desktop
%{tbdir}
%if %{xpi}
%dir %{tbextdir}
%endif
# lightning files - cannot use wildcards as some files below need to be tagged with %%lang
%{tbextdir}/%{lightning_id}/app.ini
%{tbextdir}/%{lightning_id}/chrome.manifest
%{tbextdir}/%{lightning_id}/install.rdf
%{tbextdir}/%{lightning_id}/defaults/preferences/lightning.js
%{tbextdir}/%{lightning_id}/calendar-js
%{tbextdir}/%{lightning_id}/components
%{tbextdir}/%{lightning_id}/chrome/calendar
%{tbextdir}/%{lightning_id}/chrome/calendar-en-US
%{tbextdir}/%{lightning_id}/chrome/icons
%{tbextdir}/%{lightning_id}/chrome/skin
%{tbextdir}/%{lightning_id}/chrome/lightning-en-US
%{tbextdir}/%{lightning_id}/chrome/lightning
%{tbextdir}/%{lightning_id}/modules
%{tbextdir}/%{lightning_id}/timezones
# (tmb) disable language tagging as rpm fails to install all needed files, breaking/disabling lightning
# tag l10n files with %%lang(language) to only install those l10n files for which locales packages are installed
%(for lang in %lightning_langs ; do
  echo "%{tbextdir}/%{lightning_id}/chrome/lightning-$lang"
  echo "%{tbextdir}/%{lightning_id}/chrome/calendar-$lang"
done)
#%{tbextdir}/%{lightning_id}/chrome/lightning-*
#%{tbextdir}/%{lightning_id}/chrome/calendar-*
# Mandriva menu
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
# other icons
%{_iconsdir}/hicolor/*/apps/%{name}.png
%exclude %{tbextdir}/%{enigmail_id}

%files enigmail
%{tbextdir}/%{enigmail_id}
# tag l10n files with %%lang(language) to only install those l10n files for which locales packages are installed
%(for lang in %langlist; do
  echo "%%lang($lang) %{_datadir}/mozilla/extensions/%{tb_appid}/enigmail-$lang@enigmail.mozdev.org"
done)



%changelog
* Tue Aug 14 2018 mrambo3501 <mrambo3501> 0:52.9.1-1.1.mga6
  (not released yet)
+ Revision: 1251590
- enigmail version 2.0.8 fixes CVE-2018-120[19-20] (mga#23415)
- update to 52.7.0 to fix several security issues (mga#22823)
- update enigmail to 2.0.1 (latest for TB 52)
- thunderbird update to 52.5.2 to fix security issues mga#22251
- enigmail update to 1.9.9 to fix security issues
+ tmb <tmb>
- limit memory usage and max cpus on 32bit
+ doktor5000 <doktor5000>
- update to 52.9.1 to fix attachment issue (mga#23277)
+ ns80 <ns80>
- update to 52.9.0 to fix several security issues (mga#23277)
- update enigmail to 2.0.7 (mga#23140)
- new version 52.6.0 (mga#22470)
- new version 52.5.0 (mga#22079)
- new version 52.4.0 (mga#21818)
+ zezinho <zezinho>
- update to 52.8.0 to fix several security issues (mga#23057) > - update enigmail to 2.0.5 (latest for TB 52)
+ neoclust <neoclust>
- New version 52.3 (mga#21547)

* Tue Jun 27 2017 mrambo3501 <mrambo3501> 0:52.2.1-1.mga6
+ Revision: 1108583
- update to 52.2.1
- update enigmail to 1.9.7

* Thu Jun 15 2017 mrambo3501 <mrambo3501> 0:52.2.0-1.mga6
+ Revision: 1107740
- version 52.2.0 (mga #21091)

* Tue May 23 2017 mrambo3501 <mrambo3501> 0:52.1.1-1.mga6
+ Revision: 1104272
- version 52.1.1

* Wed May 03 2017 mrambo3501 <mrambo3501> 0:52.1.0-1.mga6
+ Revision: 1098891
- update to version 52.1.0

* Tue May 02 2017 akien <akien> 0:52.0.1-3.mga6
+ Revision: 1098324
- Rebuild for ffmpeg 3.3

* Wed Apr 26 2017 ghibo <ghibo> 0:52.0.1-2.mga6
+ Revision: 1097504
- Add conditional flag to build use GTK3 toolkit instead of GTK2
- Use GTK3 as default toolkit (widgets and fonts scales properly).

* Tue Apr 25 2017 mrambo3501 <mrambo3501> 0:52.0.1-1.mga6
+ Revision: 1097315
- version 52.0.1
- added fedora patch to fix duplicate files build error
- added back the config option to use system icu
- version 52.0
- slightly modified one patch and refactored two others
- remarked out configure options which appear no longer supported

* Tue Mar 21 2017 akien <akien> 0:45.8.0-2.mga6
+ Revision: 1093883
- Rebuild against bundled ICU to prevent crashes (mga#20542)

* Mon Mar 20 2017 ns80 <ns80> 0:45.8.0-1.mga6
+ Revision: 1093740
- update thunderbird to 45.8.0 (mga#20420)

* Thu Mar 16 2017 mrambo3501 <mrambo3501> 0:45.7.1-2.mga6
+ Revision: 1093190
- Rebuild for icu-58.2

* Tue Feb 14 2017 ns80 <ns80> 0:45.7.1-1.mga6
+ Revision: 1086124
- add linuxfromscratch patch to fix build with libevent 2.1.8
- update thunderbird to 45.7.1 (mga#20267)

* Fri Jan 27 2017 ns80 <ns80> 0:45.7.0-1.mga6
+ Revision: 1083562
- update thunderbird to 45.7.0 (mga#20184)

* Tue Jan 03 2017 ns80 <ns80> 0:45.6.0-1.mga6
+ Revision: 1079862
- update thunderbird to 45.6.0 (mga#20003)

* Fri Dec 02 2016 ns80 <ns80> 0:45.5.1-1.mga6
+ Revision: 1071693
- update thunderbird to 45.5.1
- update enigmail to 1.9.6.1

* Mon Oct 03 2016 ghibo <ghibo> 0:45.4.0-1.mga6
+ Revision: 1058168
- Added Patch307 for disabling -O3 default optimization for PGO.
- Minor cosmetics to the SPEC file.
- Update to official release 45.4.0.
- Drop Patch308 (merged upstream).
- Release 45.4.0 official.
- Drop Patch308 (same as upstream)

* Sat Oct 01 2016 ghibo <ghibo> 0:45.3.0-10.mga6
+ Revision: 1058041
- Fix a cosmetic problem in the 45.3.0 -> 45.4.0 patchset.
- Add python-sqlite2 to BuildRequires.

* Fri Sep 30 2016 ghibo <ghibo> 0:45.3.0-9.mga6
+ Revision: 1057842
- Add the patchset for the tree mozilla in the thunderbird 45.3.0 -> 45.4.0 patchset
- Remove Patch for bug MOZ#1282130 (merged upstream).
- Include all patchset from Thunderbird 45.3.0 to 45.4.0, except for bumping final 45.4.0 version.
- Use ${TMPDIR:/tmp} instead of ${TMPDIR}
- Fix minimal requirement version for some BuildRequires

* Sun Sep 25 2016 ghibo <ghibo> 0:45.3.0-7.mga6
+ Revision: 1055979
- Better fix for adding debug infos.
- Versioning some devel BuildRequires.
- Use of $TMPDIR instead of /tmp.
- Use of internal cairo library to to prevent some sporadic crash.
- Add new conditional flag for building thunderbird against the system cairo library.

* Sat Sep 24 2016 ghibo <ghibo> 0:45.3.0-6.mga6
+ Revision: 1055630
- enable debuginfo information

* Fri Sep 23 2016 ghibo <ghibo> 0:45.3.0-5.mga6
+ Revision: 1055558
- streamline the lightning-calendar file list in the SPEC file, according to the original tmb intentions

* Thu Sep 22 2016 ghibo <ghibo> 0:45.3.0-3.mga6
+ Revision: 1055282
- unroll lightning and calendar dir list so that package builds correctly
- Added Patch306 for not forcing -O3 optimization flags sporadically thus overriding global CFLAGS which have a lower optimization (e.g -O2) or don't override compilation flags with -O globally
- Added upstream Patch307 (reworked to match buildpath) to fix bug https://bugzilla.mozilla.org/show_bug.cgi?id=1282130
- Added more BuildRequires to fix bug #19106
- Removed javapackages-tools from BuildRequires to avoid bogus prov|dep (Luigi)
- Change java BuildRequires to java-headless (fewer resources)
- Fix cosmetic tabs and spaces in BuildRequires.
- Add java to BuildRequires (attempt to fix bug #19186).
- Added javapackages-tools to BuildRequires, sound needed by osgi.{prov,req}
- update thunderbird to 45.3.0
- update enigmail to 1.9.5
- remove MOZ_OPT_FLAGS as it's unused (the env var should be MOZ_OPTIMIZE_FLAGS but has no effect anyway)
- added Patch305 (so to use %%{optflags} and not get overridden by internal -Os everywhere).
+ tmb <tmb>
- disable language tagging for lightning as it fails to install
  all needed files breaking/disabling calendar on updates

* Tue Jul 05 2016 tmb <tmb> 0:45.2.0-1.mga6
+ Revision: 1039046
- update to 45.2.0
- update enigmail to 1.9.4

* Fri Jun 03 2016 tmb <tmb> 0:45.1.1-2.mga6
+ Revision: 1020212
- update enigmail to 1.9.3
- refresh lightning translations

* Fri Jun 03 2016 tmb <tmb> 0:45.1.1-1.mga6
+ Revision: 1020116
- update to 45.1.1

* Sat May 14 2016 shlomif <shlomif> 0:45.1.0-2.mga6
+ Revision: 1015238
- Rebuild for the new UCI (new major)

* Wed May 11 2016 doktor5000 <doktor5000> 0:45.1.0-1.mga6
+ Revision: 1013573
- new version 45.1.0
- updated lightning language definitions, removed broken ones

* Wed May 04 2016 doktor5000 <doktor5000> 0:45.0-1.mga6
+ Revision: 1009370
- added missing BuildRequires on pkgconfig(gconf-2.0)
- new version 45.0
- update enigmail to 1.9.2
- update lightning version to 4.7
- updated lightning language definitions to 45.0
- build with bundled sqlite3 to preserve gloda global search functionality
- build with bundled libvpx on mga < 6 using conditional check

* Thu Apr 21 2016 tv <tv> 0:38.7.2-2.mga6
+ Revision: 1004197
- rebuid for libhunspell 1.4

* Tue Apr 05 2016 doktor5000 <doktor5000> 0:38.7.2-1.mga6
+ Revision: 998559
- new version 38.7.2
- updated lightning language definitions to 38.7.2

* Fri Mar 25 2016 doktor5000 <doktor5000> 0:38.7.1-1.mga6
+ Revision: 995502
- new version 38.7.1
- updated lightning language definitions to 38.7.1

* Tue Mar 15 2016 doktor5000 <doktor5000> 0:38.7.0-1.mga6
+ Revision: 990742
- new version 38.7.0
- updated lightning language definitions to 38.7.0
- update lightning version to 4.0.7

* Tue Feb 16 2016 doktor5000 <doktor5000> 0:38.6.0-1.mga6
+ Revision: 961819
- new version 38.6.0
- updated lightning language definitions to 38.6.0
- update lightning version to 4.0.6
- added some more comments on how to generate lightning language files tarball
- sync lightning shipped-locales list
- update enigmail language list

* Wed Jan 06 2016 doktor5000 <doktor5000> 0:38.5.0-6.mga6
+ Revision: 919973
- disable debug builds again to prevent slowness and crashes

* Fri Jan 01 2016 doktor5000 <doktor5000> 0:38.5.0-5.mga6
+ Revision: 917670
- fix macros in comments to be expanded, wanted
- fix Obsoletes on thunderbird-ligning, epoch was missing
- added Patch from Michael Altizer to fix crashes when debug build is enabled
  as thunderbird crashes after 300 sec. when failing a certificate validation
- only install lightning l10n files suitable for installed locales

* Tue Dec 29 2015 doktor5000 <doktor5000> 0:38.5.0-2.mga6
+ Revision: 916846
- added upstream patch to remove ugly GLib-CRITICAL warnings:
  "g_slice_set_config: assertion 'sys_page_size == 0' failed"
- fix lightning installation path, not detected under distribution/extensions
- added back lightning l10n files via building from upstream source (mga#17392)
- added tarball with upstream l10n sources for lightning
- added lightning l10n tarball creation script, adapted from Fedora
  o run script in SOURCES/ folder as ./mklangsource.sh for newer versions
- added BuildRequires on mercurial for lightning l10n tarball creation script
- try to enable full debug packages on cauldron instead of disabling them
  o added conditional checking for %%distro_branch to build debug packages
  o try to use upstream build options for debug packages
- add check / safeguard if %%{_bindir}/thunderbird is not a symlink
- remove deprecated perl calls on %%{_bindir}/thunderbird - not a script anymore
- remove useless %%attr for %%{_bindir}/thunderbird
  o silences "explicit %%attr not applicable for symlinks" warning

* Wed Dec 23 2015 luigiwalser <luigiwalser> 0:38.5.0-1.mga6
+ Revision: 913792
- 38.5.0
+ doktor5000 <doktor5000>
- removed all translated Name[]= entries from .desktop file (mga#10367)

* Thu Nov 26 2015 luigiwalser <luigiwalser> 0:38.4.0-1.mga6
+ Revision: 906277
- 38.4.0

* Thu Nov 19 2015 tv <tv> 0:38.3.0-2.mga6
+ Revision: 904276
- rebuild for new libvpx

* Thu Oct 01 2015 luigiwalser <luigiwalser> 0:38.3.0-1.mga6
+ Revision: 885539
- 38.3.0

* Sun Aug 16 2015 fwang <fwang> 0:38.2.0-1.mga6
+ Revision: 865097
- 38.2.0

* Wed Aug 12 2015 fwang <fwang> 0:38.1.0-2.mga6
+ Revision: 863487
- debug package is empty
- rebuild for new icu

* Fri Jul 24 2015 luigiwalser <luigiwalser> 0:38.1.0-1.mga6
+ Revision: 856676
- 38.1.0
- sync patch from firefox to fix build with freetype 2.6
- obsolete thunderbird-lightning

* Mon Jun 29 2015 luigiwalser <luigiwalser> 0:38.0.1-2.mga6
+ Revision: 847516
- try to enable lightning build

* Sat Jun 27 2015 luigiwalser <luigiwalser> 0:38.0.1-1.mga6
+ Revision: 846375
- update patch 8 (sync with firefox)
- 38.0.1
- sync some spec changes from firefox-beta

* Thu May 14 2015 luigiwalser <luigiwalser> 0:31.7.0-1.mga5
+ Revision: 822080
- 31.7.0
+ spuhler <spuhler>
- upgrade enigmail from ver. 1.7.2 to 1.8.2
  * fixes bug #14514
  * changed lang-names in enigmail per upstream

* Wed Apr 01 2015 luigiwalser <luigiwalser> 0:31.6.0-1.mga5
+ Revision: 819510
- 31.6.0

* Tue Feb 24 2015 luigiwalser <luigiwalser> 0:31.5.0-1.mga5
+ Revision: 816827
- 31.5.0

* Tue Jan 13 2015 luigiwalser <luigiwalser> 0:31.4.0-1.mga5
+ Revision: 810555
- 31.4.0

* Thu Dec 04 2014 doktor5000 <doktor5000> 0:31.3.0-3.mga5
+ Revision: 801425
- fix installation, replace %%makeinstall_std
- remove commented-out cruft about shlibsign
- added link to recommendations from upstream bugreport on objdir
  o https://bugzilla.mozilla.org/show_bug.cgi?id=1106883#c4
- use %%{objdir} macro instead of hardcoded value
- adjust objdir definition again per recommendation from upstream
  o added fallback objdir definition in case the currently used one breaks
- drop thunderbird-objdir.patch, not necessary anymore
- drop unused Patch7 (firefox-10.0-nspr-version.patch)
- drop nsinstall subpackage, unused nowadays and not required by anything else
- do not package NSS shlibsign into thunderbird, has been fixed upstream

* Wed Dec 03 2014 luigiwalser <luigiwalser> 0:31.3.0-1.mga5
+ Revision: 800416
- fix breakages in build from upstream in 31.3.0 (doktor5000):
- change objdir definition due to breakage caused by upstream changes
  o remove MOZ_OBJDIR usage within mozconfig
  o caused by https://hg.mozilla.org/releases/comm-esr31/rev/7d63cd3fe81d
  o tracked via https://bugzilla.mozilla.org/show_bug.cgi?id=1106883
- added patch from Fedora (thunderbird-objdir.patch)
- 31.3.0

* Wed Oct 15 2014 lmenut <lmenut> 0:31.2.0-1.mga5
+ Revision: 756117
- fix Categories in thunderbird.desktop
+ luigiwalser <luigiwalser>
- 31.2.0
- build with gcc again
+ tv <tv>
- use %%global for req/prov exclude
- autoconvert to new prov/req excludes
- s/uggests:/Recommends:/

* Sun Sep 07 2014 doktor5000 <doktor5000> 0:31.1.0-2.mga5
+ Revision: 673168
- change Requires on thunderbird-l10n into Suggests
  o -l10n packages should not be required, to enable normal removal
  o also breaks circular dependency between thunderbird and thunderbird-l10n
- new version 31.1.0
- updated enigmail to 1.7.2
- updated BuildRequires on libpng to 1.6.10
- updated BuildRequires on libvpx-devel to 1.3.0
- updated BuildRequires on sqlite3-devel to 3.8.4.2

* Tue Sep 02 2014 fwang <fwang> 0:31.1.0-1.mga5
+ Revision: 670870
- 31.1.0

* Mon Aug 25 2014 doktor5000 <doktor5000> 0:31.0-2.mga5
+ Revision: 667393
- try to fix mga#1344 (automatic installation of proper -l10n package)
  o thunderbird-l10n-XX package should be installed according
    to installed locales-XX package

* Wed Jul 23 2014 fwang <fwang> 0:31.0-1.mga5
+ Revision: 655815
- fix make
- update enigmail build
- fix requires
- enigmail 1.7
- build with gst 1.0 and with clang
- build with system icu
- mkdir
- br pulse
- 31.0
- drop old tarball

* Tue Jun 10 2014 luigiwalser <luigiwalser> 0:24.6.0-1.mga5
+ Revision: 635443
- 24.6.0

* Tue Apr 29 2014 fwang <fwang> 0:24.5.0-1.mga5
+ Revision: 618809
- fix make
- 24.5.0

* Tue Mar 18 2014 luigiwalser <luigiwalser> 0:24.4.0-1.mga5
+ Revision: 605077
- 24.4.0

* Wed Feb 05 2014 fwang <fwang> 0:24.3.0-1.mga5
+ Revision: 583090
- new version 24.3.0

* Wed Dec 18 2013 oden <oden> 0:24.2.0-1.mga4
+ Revision: 558411
- 24.2.0

* Thu Oct 31 2013 tmb <tmb> 0:24.1.0-1.mga4
+ Revision: 548657
- disable parallell build
+ oden <oden>
- 24.1.0
+ umeabot <umeabot>
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 oden <oden> 0:24.0.1-2.mga4
+ Revision: 500441
- bump release
- fix deps
- make it backportable
- enigmail 1.6

* Sat Oct 12 2013 fwang <fwang> 0:24.0.1-1.mga4
+ Revision: 495650
- new version 24.0.1

* Wed Sep 25 2013 fwang <fwang> 0:24.0-2.mga4
+ Revision: 485810
- add more requires

* Tue Sep 24 2013 fwang <fwang> 0:24.0-1.mga4
+ Revision: 484689
- build enigmail lang
- drop unused sed
- try fixing build with enigmail
- build with correct makefile
- update objdir
- update objdir
- add host
- fix cflags
- br gstreamer
- new version 24.0

* Sat Sep 14 2013 fwang <fwang> 0:17.0.9-1.mga4
+ Revision: 478753
- new version 17.0.9esr

* Mon Aug 05 2013 fwang <fwang> 0:17.0.8-1.mga4
+ Revision: 463798
- revert to 1.5.1
- revert to 1.5.1
- new version 17.0.8esr
- enigmail 1.5.2

* Tue Jun 25 2013 fwang <fwang> 0:17.0.7-1.mga4
+ Revision: 446514
- new version 17.0.7esr

* Mon Jun 03 2013 fwang <fwang> 0:17.0.6-2.mga4
+ Revision: 436237
- rebuild for new libpng

* Sat May 11 2013 fwang <fwang> 0:17.0.6-1.mga4
+ Revision: 412986
- new version 17.0.6esr

* Tue Apr 02 2013 fwang <fwang> 0:17.0.5-1.mga3
+ Revision: 407109
- new version 17.0.5esr

* Tue Mar 12 2013 fwang <fwang> 0:17.0.4-1.mga3
+ Revision: 402121
- new version 17.0.4

* Wed Feb 20 2013 fwang <fwang> 0:17.0.3-1.mga3
+ Revision: 399506
- bump req
- new version 17.0.3

* Mon Jan 14 2013 umeabot <umeabot> 0:17.0.2-2.mga3
+ Revision: 384544
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 09 2013 fwang <fwang> 0:17.0.2-1.mga3
+ Revision: 343501
- new version 17.0.2esr

* Wed Nov 21 2012 fwang <fwang> 0:17.0-1.mga3
+ Revision: 319977
- update file list
- new version 17.0esr
- we build offical branding only now

* Wed Oct 31 2012 tmb <tmb> 0:16.0.2-1.mga3
+ Revision: 311808
- run autoconf-2.13 before build because of virtualenv patch
+ fwang <fwang>
- br pythonsetuptools
- fix build with latest nspr and nss
- new version 16.0.2

* Fri Oct 12 2012 fwang <fwang> 0:16.0.1-1.mga3
+ Revision: 304777
- new version 16.0.1

* Thu Oct 11 2012 fwang <fwang> 0:16.0-1.mga3
+ Revision: 304583
- do not delete inexist files
- new version 16.0

* Sun Sep 09 2012 fwang <fwang> 0:15.0.1-1.mga3
+ Revision: 290934
- new version 15.0.1

* Wed Aug 29 2012 fwang <fwang> 0:15.0-1.mga3
+ Revision: 285031
- we don't ship .pyc now
- sync ff patch to build with  system python-virtualenv
- br python-setuptools
- new version 15.0
- new version 15.0

* Wed Jul 18 2012 fwang <fwang> 0:14.0-1.mga3
+ Revision: 272204
- fix cairo build
- rediff build patch
- new version 14.0

* Sat Jun 16 2012 fwang <fwang> 0:13.0.1-1.mga3
+ Revision: 260909
- new version 13.0.1

* Thu Jun 07 2012 fwang <fwang> 0:13.0-1.mga3
+ Revision: 256729
- update enigmail file name
- more build fixes
- fix build from upstream br#736961
- new version 13.0

* Tue Jun 05 2012 fwang <fwang> 0:10.0.5-1.mga3
+ Revision: 255759
- new version 10.0.5esr

* Tue Apr 24 2012 doktor5000 <doktor5000> 0:10.0.4-1.mga2
+ Revision: 233166
- new version 10.0.4 ESR (Extended Support Release)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-20.html
    (Miscellaneous memory safety hazards [CVE-2012-0468, CVE-2012-0467])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-22.html
    (use-after-free in IDBKeyRange[CVE-2012-0469])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-23.html
    (Invalid frees causes heap corruption in gfxImageSurface [CVE-2012-0470])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-24.html
    (Potential XSS via multibyte content processing errors [CVE-2012-0471])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-25.html
    (Potential memory corruption during font rendering using cairo-dwrite
     [CVE-2012-0472])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-26.html
    (WebGL.drawElements may read illegal video memory due to
     FindMaxUshortElement error [CVE-2012-0473])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-27.html
    (Page load short-circuit can lead to XSS [CVE-2012-0474])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-28.html
    (Ambiguous IPv6 in Origin headers may bypass webserver access restrictions
     [CVE-2012-0475])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-29.html
    (Potential XSS through ISO-2022-KR/ISO-2022-CN decoding issues
     [CVE-2012-0477])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-30.html
    (Crash with WebGL content using textImage2D [CVE-2012-0478])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-31.html
    (Off-by-one error in OpenType Sanitizer [CVE-2011-3062])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-33.html
    (Potential site identity spoofing when loading RSS and Atom feeds
     [CVE-2012-0479])
- switch to Enigmail 1.4, officially supported version for ESR releases
  o fixes a problem with inline PGP decrpytion

* Sat Mar 17 2012 doktor5000 <doktor5000> 0:10.0.3-1.mga2
+ Revision: 223775
- use system nss shlibsign instead of missing bundled one
+ fwang <fwang>
- new version 10.0.3 ESR (Extended Support Release)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-13.html
    (XSS with Drag and Drop and Javascript: URL [CVE-2012-0455])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-14.html
    (SVG issues found with Address Sanitizer [CVE-2012-0456, CVE-2012-0457])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-15.html
    (XSS with multiple Content Security Policy headers [CVE-2012-0451])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-16.html
    (Escalation of privilege with Javascript: URL as home page [CVE-2012-0458])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-17.html
    (Crash when accessing keyframe cssText after dynamic modification
    [CVE-2012-0459])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-18.html
    (window.fullScreen writeable by untrusted content [CVE-2012-0460])
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-19.html
    (Miscellaneous memory safety hazards (rv:11.0/ rv:10.0.3 / rv:1.9.2.28)
    [CVE-2012-0461, CVE-2012-0462, CVE-2012-0464, CVE-2012-0463 ])

* Fri Mar 02 2012 fwang <fwang> 0:10.0.2-5.mga2
+ Revision: 216687
- fix build with latest vpx
- rebuild for new vpx

* Mon Feb 27 2012 fwang <fwang> 0:10.0.2-4.mga2
+ Revision: 215481
- add correct epoch

* Mon Feb 27 2012 fwang <fwang> 0:10.0.2-3.mga2
+ Revision: 215479
- correct obsoletes

* Wed Feb 22 2012 doktor5000 <doktor5000> 0:10.0.2-2.mga2
+ Revision: 212040
- readd missing linebreak, restores content of default preference file
- new version 10.0.2 ESR (Extended Support Release)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-11.html
    (libpng integer overflow [CVE-2011-3026])
- added BuildRequires on libevent-devel and libvpx-devel
- enable vpx, libevent and optimization
- add Patch100 to use libcanberra for playing sounds (rediffed from upstream,
  mozilla-thunderbird-mga-use-libcanberra.patch)
- add requires_exception for libxul
- removed support for thunderbird.cfg
- drop all unused patches
- remove useless commented-out stuff
- remove separate enigmail-l10n packages (thanks to Anssi Hannula)
- reset mkrel to previous state
- add notice about work-in-progress
- use proper macros in %%setup and Source URL
- remove useless commented-out stuff
- drop long-obsolete & unused Source30 (mozilla-thunderbird-open-browser.sh)
- drop unneeded Source30 (mozilla-thunderbird-open-browser-xdg.sh)
- remove complicated handling of Source12
  (mozilla-thunderbird-mageia-default-prefs.js)
+ fwang <fwang>
- turn to hunspell dict, bug#4437
- more specific obsoletes, to handle upgrading from mga1

* Tue Feb 14 2012 fwang <fwang> 0:10.0.1-2.mga2
+ Revision: 208722
- bump rel
- switch to ESR (Extended Support Release)

* Mon Feb 13 2012 fwang <fwang> 0:10.0.1-1.mga2
+ Revision: 208384
- new version 10.0.1
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-01.html
    (miscellaneous memory safety hazards [CVE-2012-0442] [CVE-2012-0443]
    fixed in 10.0 )
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-03.html
    (<iframe> element exposed across domains via name attribute [CVE-2012-0445]
 fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-04.html
    (child nodes from nsDOMAttribute still accessible after removal of nodes
    [CVE-2011-3659] fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-05.html
    (frame scripts calling into untrusted objects bypass security checks
    [CVE-2012-0446] fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-06.html
    (uninitialized memory appended when encoding icon images may cause
    information disclosure [CVE-2012-0447] fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-07.html
    (potential Memory Corruption When Decoding Ogg Vorbis files
    [CVE-2012-0444] fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-08.html
    (crash with malformed embedded XSLT stylesheets [CVE-2012-0449]
    fixed in 10.0)
  o fixes http://www.mozilla.org/security/announce/2012/mfsa2012-10.html
    (use after free in nsXBLDocumentInfo::ReadPrototypeBindings [CVE-2012-0452])
- suggest canberra for sound playing, cups for printing.

* Wed Feb 01 2012 fwang <fwang> 0:10.0-1.mga2
+ Revision: 203805
- new version 10.0
- update enigmail to 1.3.5, needed for thunderbird 10.0

* Mon Dec 26 2011 fwang <fwang> 0:9.0.1-3.mga2
+ Revision: 187727
- change new default preference (extensions.autoDisableScopes) to not
  automatically disable systemwide installed addons, like language packs

* Sun Dec 25 2011 fwang <fwang> 0:9.0.1-2.mga2
+ Revision: 187365
- real obsoletes

* Sat Dec 24 2011 fwang <fwang> 0:9.0.1-1.mga2
+ Revision: 187179
- new version 9.0.1
- convert desktop file into source, and merge translations from mandriva
- rename enigmail l10n package also
- rename spec
- rename to thunderbird

* Wed Dec 21 2011 fwang <fwang> 0:9.0-1.mga2
+ Revision: 185428
- fix build with latest libpng
- new version 9.0
- update configure options
- use client.mk to build
- new version 8.0

* Sat Oct 01 2011 fwang <fwang> 0:7.0.1-1.mga2
+ Revision: 150609
- new version 7.0.1

* Wed Sep 28 2011 fwang <fwang> 0:7.0-1.mga2
+ Revision: 149769
- fix str fmt
- new version 7.0

* Sun Sep 25 2011 fwang <fwang> 0:6.0.2-3.mga2
+ Revision: 147618
- new enigmail ver

* Sun Sep 11 2011 fwang <fwang> 0:6.0.2-2.mga2
+ Revision: 142367
- br newer png

* Wed Sep 07 2011 fwang <fwang> 0:6.0.2-1.mga2
+ Revision: 140880
- new version 6.0.2

* Wed Aug 31 2011 fwang <fwang> 0:6.0.1-1.mga2
+ Revision: 136940
- new version 6.0.1
- update language list
- update language list
- br dbus
- fix enigmail version
- enable gio
- 1.3 should compatible with tb6
- new version 6.0
- disable bundled lightning
- add epoch
- fix enigmail ver
- br static devel of nss
- sync patches too
- sync with mandriva rpm
- build with fpic
- do not build with system xul
- br mesa
- br yasm
- fix config problem
- add sig file
- new version 5.0
+ dmorgan <dmorgan>
- Update enigmail to version 1.3.1 ( required for thunderbird 6.0)
- Revert official branding change
- disable updater and official branding
- Fix to use mga instead of mdv
+ doktor5000 <doktor5000>
- update mageia-default-prefs.js, reenabled localisation matching to system locale
- rediffed Patch201, disabling default application dialog on Thunderbird start
- really disable compilation of lightning

* Sun Jun 26 2011 fwang <fwang> 0:3.1.11-2.mga2
+ Revision: 113989
- rebuild for new hunspell

* Tue Jun 21 2011 fwang <fwang> 0:3.1.11-1.mga2
+ Revision: 111659
- new version 3.1.11

* Sun Jun 19 2011 ahmad <ahmad> 0:3.1.10-2.mga2
+ Revision: 109557
- Rebuild against libnotify-0.7

* Fri Apr 29 2011 ahmad <ahmad> 0:3.1.10-1.mga1
+ Revision: 93463
- Update to 3.1.10
- Rediff run-mozilla patch
- Drop an old patch from SOURCES dir

* Fri Mar 25 2011 ahmad <ahmad> 0:3.1.9-11.mga1
+ Revision: 77483
- revert previous commit, gio support doesn't work as it should resulting in http/
  https links handler having to be configured manually for all new and old tb profiles.
  gnomevfs support at least reads the value from gconf settings (which uses www-
  browser by default)

* Mon Mar 21 2011 ahmad <ahmad> 0:3.1.9-10.mga1
+ Revision: 75310
- disable gnomvfs support
- enable gio support
- disable updater as we don't support updating the application this way

* Wed Mar 16 2011 ahmad <ahmad> 0:3.1.9-8.mga1
+ Revision: 72283
- conflict with mozilla-thunderbird-lightning <= 1.3.9

* Fri Mar 11 2011 ahmad <ahmad> 0:3.1.9-7.mga1
+ Revision: 68321
- drop old/uneeded scriptlets that update the destkop-database and hicolor
  icon-cache; they were replaced by rpm filetriggers ages ago

* Fri Mar 11 2011 ahmad <ahmad> 0:3.1.9-6.mga1
+ Revision: 68246
- don't obsolete -lightning here and in the mozilla-thunderbird-lightning src.rpm
  urpmi can't smoothly handle a package obsoleted by two packages

* Fri Mar 11 2011 ahmad <ahmad> 0:3.1.9-5.mga1
+ Revision: 68165
- obsolete the -lightning sub-package that was built from thunderbird src.rpm

* Fri Mar 11 2011 ahmad <ahmad> 0:3.1.9-4.mga1
+ Revision: 68147
- define build_bundled_lightning, and disable it:
 o the thunderbird tarball doesn't have the langpacks for lightning
 o lightning has a separate release schedule (Fedora)

* Wed Mar 09 2011 colin <colin> 0:3.1.9-2.mga1
+ Revision: 66827
- Extract the correct plugin id from lightning extension

* Sat Mar 05 2011 ahmad <ahmad> 0:3.1.9-1.mga1
+ Revision: 64596
- update to 3.1.9
+ dmorgan <dmorgan>
- obsoletes old package

* Tue Mar 01 2011 ahmad <ahmad> 0:3.1.8-1.mga1
+ Revision: 62332
- update to 3.1.8

* Mon Feb 28 2011 dmorgan <dmorgan> 0:3.1.7-3.mga1
+ Revision: 61407
- Remove remaining mdv macro
- Remove remaining mdv macro
- Fix %%els
- Fix %%else
- Adapt for mageia
- Remove mdv macros
  Adapt for mageia
+ ennael <ennael>
- imported package mozilla-thunderbird