Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 47747c47c9e927a2d9fafac0ed18622d > files > 19

thunderbird-45.8.0-1.mga5.src.rpm

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

#
# Compiler Choices
#

# 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}

%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 4.7

#(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 1.9.6.1
%define enigmail_short_version 1.9
%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:	45.8.0
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:	http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_version}.tar.gz
Source301:	http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_version}.tar.gz.asc
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
# 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-45.3.0-optimize-dont-force-O3.patch
Patch307:	mozilla-thunderbird-45.4.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.8.8.2
Requires:	%{nss_libname} >= 2:%{nss_version}
BuildRequires:	yasm
BuildRequires:	mesagl-devel
BuildRequires:	gtk2-devel >= 2.14
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.3.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:	gnupg
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

%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"
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="%{_smp_mflags}"
# 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 --sysconfdir="%{_sysconfdir}"
ac_add_options --mandir="%{_mandir}"
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-installer
ac_add_options --disable-updater
ac_add_options --enable-xinerama
ac_add_options --disable-crashreporter
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-xprint
ac_add_options --disable-strip
ac_add_options --disable-install-strip
ac_add_options --enable-pango
ac_add_options --enable-startup-notification
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --enable-crypto
ac_add_options --enable-mathml
ac_add_options --enable-gstreamer=1.0
ac_add_options --disable-gnomevfs
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
* Mon Mar 20 2017 ns80 <ns80> 0:45.8.0-1.mga5
+ Revision: 1093741
- update thunderbird to 45.8.0 (mga#20420)
- update thunderbird to 45.7.1 (mga#20267)
- update thunderbird to 45.7.0 (mga#20184)
- update thunderbird to 45.6.0 (mga#20003)
- update thunderbird to 45.5.1
- update enigmail to 1.9.6.1

  + ghibo <ghibo>
    - Fix BuildRequires for mga5.
    - Update to official release 45.4.0.
    - Added Patch307 for disabling -O3 default optimization for PGO.
    - Drop Patch308 (merged upstream).
    - Minor cosmetics to the SPEC file.
    - Disable debuginfo again because it produces an empty debugfiles.list (need to be fixed)
    - Sync with latest cauldron thunderbird
    - Added patch 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 patch (reworked to match build path) to fix bug https://bugzilla.mozilla.org/show_bug.cgi?id=1282130
    - Enable debuginfo for getting backtrace under gdb.
    - Add java to BuildRequires (attempt to fix bug #19186)
    - Fix cosmetic tabs and spaces in BuildRequires.
    - Change java BuildRequires to java-headless (fewer resources)
    - Fix several more spaces vs tabs issues
    - Removed javapackages-tools from BuildRequires to avoid bogus prov|dep (Luigi)
    - 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
    - update to 45.2.0
    - update enigmail to 1.9.4
    - update lightning translations
    - update enigmail to 1.9.3
    - update to 45.1.1
    - sync with cauldron 45.0

  + doktor5000 <doktor5000>
    - new version 45.1.0
    - updated lightning language definitions, removed broken ones
    - adapt CFLAGS to --disable-new-dtags and -fno-stack-protector
    - new version 38.7.2
    - updated lightning language definitions to 38.7.2
    - new version 38.7.1
    - updated lightning language definitions to 38.7.1
    - new version 38.7.0
    - updated lightning language definitions to 38.7.0
    - update lightning version to 4.0.7
    - new version 38.6.0
    - updated lightning language definitions to 38.6.0
    - update lightning version to 4.0.6
    - sync lightning shipped-locales list
    - added back lightning l10n files via building from upstream source (mga#17392)
    - fix lightning installation path, not detected under distribution/extensions
    - only install lightning l10n files suitable for installed locales
    - fix Obsoletes on thunderbird-ligning, epoch was missing
    - 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
    - added fix 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

  + luigiwalser <luigiwalser>
    - 38.5.0
    - 38.4.0
    - 38.3.0
    - 38.2.0
    - 38.1.0
    - enable lightning build
    - 38.0.1

* 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


* Sat Feb 05 2011 Funda Wang <fwang@mandriva.org> 0:3.1.7-3mdv2011.0
+ Revision: 636197
- build bundled lightning plugin as what fedora does

* Fri Jan 28 2011 Funda Wang <fwang@mandriva.org> 0:3.1.7-2
+ Revision: 633708
- restruct to new tb extension layout

* Tue Dec 14 2010 Funda Wang <fwang@mandriva.org> 0:3.1.7-1mdv2011.0
+ Revision: 621752
- new version 3.1.7

* Fri Oct 29 2010 Funda Wang <fwang@mandriva.org> 0:3.1.6-1mdv2011.0
+ Revision: 590280
- BR python-devel
- renew tarball
- new version 3.1.6

* Wed Oct 20 2010 Funda Wang <fwang@mandriva.org> 0:3.1.5-1mdv2011.0
+ Revision: 586866
- new version 3.1.5

* Fri Sep 17 2010 Funda Wang <fwang@mandriva.org> 0:3.1.4-1mdv2011.0
+ Revision: 579137
- new version 3.1.4

* Fri Sep 10 2010 Funda Wang <fwang@mandriva.org> 0:3.1.3-3mdv2011.0
+ Revision: 577070
- bump rel to upload
- drop unused patch
- more specifc patch on static-config.mk

  + Maarten Vanraes <alien@mandriva.org>
    - adding patch for system-hunspell to fix buffer overflow (mdv#60931)

  + Ahmad Samir <ahmadsamir@mandriva.org>
    - '--disable-system-myspell' doesn't exist any more in ./configure options, it's
      been repelaced by --disable-system-hunspell.
    - For the 'mdkversion >= 200900' with regard to system-hunspell, change one and
      leave the other as I think older distros had myspell only (needs to be verified?)

* Wed Sep 08 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0:3.1.3-2mdv2011.0
+ Revision: 576810
- rebuild with patched hunspell to fix a buffer overflow (mdv#60931)

  + Thomas Backlund <tmb@mandriva.org>
    - fix url

* Tue Sep 07 2010 Funda Wang <fwang@mandriva.org> 0:3.1.3-1mdv2011.0
+ Revision: 576534
- new version 3.1.3

* Mon Aug 09 2010 Funda Wang <fwang@mandriva.org> 0:3.1.2-3mdv2011.0
+ Revision: 567853
- enable zh_TW language

* Sun Aug 08 2010 Funda Wang <fwang@mandriva.org> 0:3.1.2-2mdv2011.0
+ Revision: 567578
- enigmail l10n package wrongly named

* Fri Aug 06 2010 Funda Wang <fwang@mandriva.org> 0:3.1.2-1mdv2011.0
+ Revision: 566528
- new version 3.1.2

  + Eugeni Dodonov <eugeni@mandriva.com>
    - Drop obsoleted patches

* Sat Jul 24 2010 Funda Wang <fwang@mandriva.org> 0:3.1.1-2mdv2011.0
+ Revision: 558124
- fix requires on enigmail-l10n package
- migrate enigmail-l10n package into main package, because enigmail tarball
  contains translations within itself.
- fix enigmail filename
- should use enigmail 1.1.x for tb 3.1

* Wed Jul 21 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.1.1-1mdv2011.0
+ Revision: 556304
- added BR on libiw-devel
- Added BR on libnotify-devel
- Updated to 3.1.1.
  Rediffed patches.

* Sun Jun 27 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.5-1mdv2010.1
+ Revision: 549246
- sync with MDVSA-2010:126

* Mon Jun 14 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-11mdv2010.1
+ Revision: 547978
- fix #59759 (needs tighter requires on libnss3)

* Tue May 25 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0.4-10mdv2010.1
+ Revision: 545978
- Use original icons instead of upscaled (#56566)

* Tue May 25 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0.4-9mdv2010.1
+ Revision: 545946
- Use correct icon (#56566).

* Mon May 17 2010 Christophe Fergeau <cfergeau@mandriva.com> 0:3.0.4-8mdv2010.1
+ Revision: 544933
- add opensuse patch to set a better binary path when using the "make thunderbird the default mailer", similar fix as the firefox one in bug #58784

* Mon May 10 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0.4-7mdv2010.1
+ Revision: 544452
- Fix random crashes (Mozilla bug #550455).

* Thu Apr 22 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-6mdv2010.1
+ Revision: 537854
- disable soundwrapper support as it don't work well on all products

* Thu Apr 22 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-5mdv2010.1
+ Revision: 537818
- bump release
- bump subrel due to backport release clash in 2010.0

* Thu Apr 22 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-4mdv2010.1
+ Revision: 537800
- rediffed one silly fuzzy patch

* Wed Apr 21 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-3mdv2010.1
+ Revision: 537689
- bump release
- fix build deps (python)

* Wed Apr 21 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.4-2mdv2010.1
+ Revision: 537654
- fix build
- make it backportable for 2008.0+
- major spring cleansing

  + Funda Wang <fwang@mandriva.org>
    - drop old customized category

* Tue Mar 30 2010 Funda Wang <fwang@mandriva.org> 0:3.0.4-1mdv2010.1
+ Revision: 529877
- finally update cairo patch
- fix old cairo patch
- New version 3.0.4
- drop old fedora patches

* Thu Mar 25 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.3-2mdv2010.1
+ Revision: 527397
- rebuilt against nss-3.12.6

* Tue Mar 02 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0.3-1mdv2010.1
+ Revision: 513436
- 3.0.3

* Thu Feb 25 2010 Funda Wang <fwang@mandriva.org> 0:3.0.2-2mdv2010.1
+ Revision: 511372
- update file list
- enigmail 1.0.1

* Thu Feb 25 2010 Funda Wang <fwang@mandriva.org> 0:3.0.2-1mdv2010.1
+ Revision: 511339
- rediff old nspr patch
- rediff debug info patch
- new version 3.0.2

* Fri Jan 22 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0.1-2mdv2010.1
+ Revision: 494925
- Build with -O2 optimization flags.

  + Giuseppe Ghibò <ghibo@mandriva.com>
    - Disabled Patch330, 331 as code they patch no longer exists
    - Rebuilt Patch332, 333.
    - Added Patch337 for clipboard crash (merged from fedora).
    - Added Patch338 to fix debug info (merged from fedora).
    - Added Patch339 to have cairo 1.8.0 and not 1.8.8 as minimal requirement.
    - Added Patch340 to have nspr 1.7.5 as minimal requirement (incomplete attempt to backport to 2009.0).

* Thu Jan 21 2010 Funda Wang <fwang@mandriva.org> 0:3.0.1-1mdv2010.1
+ Revision: 494419
- New version 3.0.1

* Sun Jan 10 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0-7mdv2010.1
+ Revision: 488789
- rebuilt against libjpeg v8

* Sun Jan 10 2010 Oden Eriksson <oeriksson@mandriva.com> 0:3.0-6mdv2010.1
+ Revision: 488673
- P336: security fix for CVE-2009-3560

* Mon Jan 04 2010 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0-5mdv2010.1
+ Revision: 486219
- Properly use system dictionaries (#56824).

* Fri Dec 11 2009 Eugeni Dodonov <eugeni@mandriva.com> 0:3.0-4mdv2010.1
+ Revision: 476460
- Bump release.
- Merged from mozilla-thunderbird3 branch.

* Thu Oct 08 2009 Christophe Fergeau <cfergeau@mandriva.com> 0:2.0.0.23-3mdv2010.0
+ Revision: 456182
- make sure movemail.rdf ends up in the RPMs, fixes #41614
- adjust compilation flags to fix crash when clicking on a mailto: link (#44439)

* Sun Aug 30 2009 Oden Eriksson <oeriksson@mandriva.com> 0:2.0.0.23-2mdv2010.0
+ Revision: 422520
- bump release
- disable pragma visibility to make it build...
- P334: security fix related to CVE-2009-2625
- fix deps

  + Funda Wang <fwang@mandriva.org>
    - new version 2.0.0.23

* Sat Aug 15 2009 Oden Eriksson <oeriksson@mandriva.com> 0:2.0.0.22-4mdv2010.0
+ Revision: 416528
- rebuilt against libjpeg v7

* Mon Aug 03 2009 Colin Guthrie <cguthrie@mandriva.org> 0:2.0.0.22-3mdv2010.0
+ Revision: 408468
- Split run-mozilla.sh patch into two, and do not apply soundwrapper component on 2010.0 due to problems with firefox35+padsp

* Thu Jul 30 2009 Christophe Fergeau <cfergeau@mandriva.com> 0:2.0.0.22-2mdv2010.0
+ Revision: 404657
- rebuild thunderbird for new enigmail
- update to enigmail 0.96.0, drop separate versions for x86_64 and i586
- drop gcc 4.2 build requires since gcc 4.4 seems to build thunderbird correctly
- drop 1 debian patch that is gone from the debian package
- add patch to fix compilation with gcc 4.4

* Tue Jun 23 2009 Oden Eriksson <oeriksson@mandriva.com> 0:2.0.0.22-1mdv2010.0
+ Revision: 388675
- 2.0.0.22

* Thu Mar 19 2009 Funda Wang <fwang@mandriva.org> 0:2.0.0.21-1mdv2009.1
+ Revision: 357612
- New version 2.0.0.21

* Sat Mar 14 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0:2.0.0.19-2mdv2009.1
+ Revision: 354800
- provide enigmail 0.95.6 for x86_64, instead of 0.95.7, that is what
  upstream gives too; this fixes bug #44426
- build using gcc 4.2 in 2009.0 and newer; fixes bug #46107
- automate subrel definition when building for older distros

* Wed Dec 31 2008 Funda Wang <fwang@mandriva.org> 0:2.0.0.19-1mdv2009.1
+ Revision: 321666
- fix str fmt
- patch to enigmail Makefile is not needed any more (merged upstream)
- New version 2.0.0.19
- rediff enigmaiil patch

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Thu Nov 20 2008 Funda Wang <fwang@mandriva.org> 0:2.0.0.18-1mdv2009.1
+ Revision: 304934
- New version 2.0.0.18

* Mon Sep 29 2008 Funda Wang <fwang@mandriva.org> 0:2.0.0.17-2mdv2009.0
+ Revision: 289466
- New version of enigmail

* Sat Sep 27 2008 Tiago Salem <salem@mandriva.com.br> 0:2.0.0.17-1mdv2009.0
+ Revision: 288844
- version 2.0.0.17

* Sat Aug 09 2008 Tiago Salem <salem@mandriva.com.br> 0:2.0.0.16-2mdv2009.0
+ Revision: 269879
- add patch to fix broken build with nss 3.12
- bump release
- fix conditionals to be able to build for the older distros.

* Thu Jul 24 2008 Tiago Salem <salem@mandriva.com.br> 0:2.0.0.16-1mdv2009.0
+ Revision: 247394
- Version 2.0.0.16 fixes:
  MFSA 2008-34  Remote code execution by overflowing CSS reference counter
  MFSA 2008-33 Crash and remote code execution in block reflow
  MFSA 2008-31 Peer-trusted certs can use alt names to spoof
  MFSA 2008-29 Faulty .properties file results in uninitialized memory being used
  MFSA 2008-26 Buffer length checks in MIME processing
  MFSA 2008-25 Arbitrary code execution in mozIJSSubScriptLoader.loadSubScript()
  MFSA 2008-24 Chrome script loading from fastload file
  MFSA 2008-21 Crashes with evidence of memory corruption (rv:1.8.1.15)
- add patches to fix gcc visibility on hunspell and enigmail
- add patch from firefox to fix max_path

  + Giuseppe Ghibò <ghibo@mandriva.com>
    - Added Patch329 to fix MOZ#335810.
    - Enable MathML in configure (mozilla-thunderbird-mozconfig).
    - Added hunspell support (Patch330, deb).

* Sun May 04 2008 Funda Wang <fwang@mandriva.org> 0:2.0.0.14-1mdv2009.0
+ Revision: 200996
- New version 2.0.0.14
- new enigmail version 0.95.6

  + Tiago Salem <salem@mandriva.com.br>
    - do not replace /etc/thunderbird.cfg. (#40347)
    - fix for cs3 build (Suggests, BuildRequires and includedirs)

* Wed Mar 05 2008 Tiago Salem <salem@mandriva.com.br> 0:2.0.0.12-3mdv2008.1
+ Revision: 180131
- Disabled replytolist patches. They are making thunderbird crash.

  + Marcelo Ricardo Leitner <mrl@mandriva.com>
    - Added patch russian_shortcuts: fixes problems with keyboard shortcuts and
      russian locale. Closes: #38241

* Wed Feb 27 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.12-1mdv2008.1
+ Revision: 175817
- New upstrema: 2.0.0.12
- Removed patch bug30657: already applied upstream.

* Mon Feb 25 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-9mdv2008.1
+ Revision: 174797
- Disable dict links for mdkversion >= 200810. We are going to symlink entire
  mozilladir/dictionaries instead. Closes: #21370

* Thu Feb 14 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-8mdv2008.1
+ Revision: 168466
- Fix arch mangling.

* Thu Feb 14 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-7mdv2008.1
+ Revision: 167773
- Do not tweak x86_64 arch name anymore for mdkversion >= 200810, as it causes
  problems with extensions. Closes: #33103

* Mon Feb 11 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-6mdv2008.1
+ Revision: 165151
- Added patch bug30657, fixing stale tmp files at $HOME/tmp. Closes: #30657

* Thu Feb 07 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-5mdv2008.1
+ Revision: 163448
- Pushes soundwrapper back. RealPlayer still needs it, while Flash and Java can
  live with it without problems, as stated on bug #37400.

* Wed Feb 06 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-4mdv2008.1
+ Revision: 163151
- Do not use soundwrapper anymore. Closes: #37400
- Fix replytolist stuff, as list-replyto-clobber depends on replytolist patch.
- Ship a backward compatible open-browser.sh, which will be used by old
  profiles using newer packages. This wrapper will just call xdg-open. Closes: #37528
- Do not touch open-browser for distros older than 2008.0.
- Added patches cups-paper and postscriptdsc, just like our FF package has
  them.
- Removed replytolist stuff, in favor of list-replyto-clobber previously
  applied.
- Use xdg-open for handling http, https and ftp protocols instead of a private
  script.
- Added patch list-replyto-clobber: adds mailnews.clobber_list_reply pref which
  switches "Reply All" to "Reply List" functionality if set (from OpenSUSE)

* Mon Jan 14 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.9-2mdv2008.1
+ Revision: 151186
- Added suggests to pinentry-gtk to enigmail subpackage. Closes: #36685

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Nov 28 2007 David Walluck <walluck@mandriva.org> 0:2.0.0.9-1mdv2008.1
+ Revision: 113622
- 2.0.0.9

* Fri Nov 23 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.6-6mdv2008.1
+ Revision: 111541
- Adds gnome buildreqs and enable support for using gnome-vfs.

* Wed Oct 31 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.6-5mdv2008.1
+ Revision: 104235
- Added patch bug273114 as requested by Florin.
  See https://bugzilla.mozilla.org/show_bug.cgi?id=273114 for details.
- Prepared for replytolist feature. (Off for now, not working yet)

* Fri Sep 14 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.6-4mdv2008.0
+ Revision: 85755
- Fix .desktop categories for 2008.0. Closes: #33201

  + Frederic Crozat <fcrozat@mandriva.com>
    - Improve patch321

* Fri Aug 31 2007 Frederic Crozat <fcrozat@mandriva.com> 0:2.0.0.6-3mdv2008.0
+ Revision: 77008
- Patch321: fix invalid GTK call with causes crash with GTK+ >= 2.11.0

  + Thierry Vignaud <tv@mandriva.org>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

  + Marcelo Ricardo Leitner <mrl@mandriva.com>
    - Adds TB to X-MandrivaLinux-CrossDesktop category.

* Sun Aug 05 2007 Funda Wang <fwang@mandriva.org> 0:2.0.0.6-2mdv2008.0
+ Revision: 59066
- New version of enigmail 0.95.3

* Thu Aug 02 2007 Funda Wang <fwang@mandriva.org> 0:2.0.0.6-1mdv2008.0
+ Revision: 57989
- New version 2.0.0.6

* Wed Aug 01 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0:2.0.0.5-2mdv2008.0
+ Revision: 57306
- fix build on x86_64 by exporting visibility option (bug #32024)

  + David Walluck <walluck@mandriva.org>
    - x86_64 already has -fPIC
    - add -fPIC to CXXFLAGS on x86_64
    - update enigmail to 0.95.2

  + Funda Wang <fwang@mandriva.org>
    - New version

  + Marcelo Ricardo Leitner <mrl@mandriva.com>
    - Added movemail patch, fixing movemail.rdf not being installed.

* Wed Jun 20 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.4-2mdv2008.0
+ Revision: 41863
- Added patch rss, fixing rss.rdf location. Closes: #31421
- Added patch gmail, fixing gmail.rdf location.
- Added patch g_thread_init, fixing the bug of not calling g_thread_init before
  everything else. May be related with #31282.

* Fri Jun 15 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.4-1mdv2008.0
+ Revision: 39998
- Removed patch visibility: not needed anymore.
- New upstream: 2.0.0.4
- Updated patch uriloader. Using Vincent Danen one.
- Removed patch gpg-agent: my config was broken, and not the system default
  one, so we can keep the auto-detection as-is.

* Mon Apr 23 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0.0.0-1mdv2008.0
+ Revision: 17396
- Added patch gpg-agent: avoid auto-detection of gpg-agent, as gpg-agent seems to be run
  automatically but with a strange configuration.
- Commented patch enigmail-no-upgrade, as enigmail seems to not support this anymore.
- Updated enigmail to 0.95.0
- Removed patch enigmail-version: not needed anymore.
- Removed patch dnd-nograb: already applied.
- New upstream: 2.0.0.0


* Mon Mar 12 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.0b2-5mdv2007.1
+ Revision: 142094
- Added support for /etc/thunderbird.cfg
- Integrated with xdg-utils.
- Adds compatibility links due to name change (mozilla-thunderbird ->
  thunderbird). Closes: #29128

* Wed Mar 07 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0b2-5mdv2007.1
+ Revision: 134522
- Added missing BuildRequires for nss-static-devel.
- Rebuild to fix libnss3 issue.

* Thu Feb 15 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0b2-3mdv2007.1
+ Revision: 121381
- Use only startup script provided by upstream. Closes: #28707
- Dropped startup script adopted from Fedora.
  Upstream one seems better at all.
- Bumped release.
- Change devel group to Development/Other. Closes: #28146

* Wed Feb 14 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0b2-2mdv2007.1
+ Revision: 120784
- Added patch dnd-nograb. Closes: #28051

* Fri Feb 09 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:2.0b2-1mdv2007.1
+ Revision: 118428
- More improvements in order to use system's nspr.
- Use system's nspr.
- New upstream: 2.0b2
- Updated enigmail to 0.94.2
- Patched enigmail (patch 306) so it works with TB 2.0b2
- Updated some informations in mozilla-thunderbird.sh.in
- Do not enforce requires on mozilla-nspr and mozilla-nss libraries
- Do not install devel stuff by hand for now: let's use what
  they are installing and see if it works.
- New tarball upstream: 2.0b2
- First 2.0 series commit
- Rediffed patches: software-update, check-default-mailer and default-applications
- Added patch x11libs.

* Wed Dec 20 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 0:1.5.0.9-1mdv2007.1
+ Revision: 100459
- New upstream 1.5.0.9 with security fixes.

* Thu Nov 09 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5.0.8-1mdv2007.1
+ Revision: 79538
-Release 1.5.0.8 (security update)
-bunzip patches
-upgrade enigmail to 0.94.1
- Import mozilla-thunderbird

* Sat Sep 16 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5.0.7-1mdv2007.0
- Release 1.5.0.7 (security update)
- remove patch305, merged upstream

* Thu Sep 07 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5.0.5-3mdv2007.0
- allow build for 2006 and corp3 (Vincent Danen)
 - fix the %%post scripts wrt mktemp because corp3 has an older mktemp
 - have to do some fiddling to get the right mkrel tag for corp3 and use
   %%build_for_corp3 to make it build properly
 - only do the xdg stuff for %%mkdversion > 200600
 - this should build for all supported distros so we need the tags

* Sat Aug 05 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5.0.5-2mdv2007.0
- Fix xdg tag
- fix enigmail postun script

* Fri Aug 04 2006 David Walluck <walluck@mandriva.org> 0:1.5.0.5-1mdv2007.0
- 1.5.0.5
- quiet all %%setup macros

* Sun Jul 09 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0:1.5.0.4-5
- add BuildRequires: libxt-devel

* Mon Jun 19 2006 David Walluck <walluck@mandriva.org> 0:1.5.0.4-4mdv2007.0
- add symlink: thunderbird -> mozilla-thunderbird

* Sun Jun 18 2006 David Walluck <walluck@mandriva.org> 0:1.5.0.4-3mdv2007.0
- use BuildRequires: xft2-devel instead of BuildRequires: libxft2-devel

* Wed Jun 14 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5.0.4-2mdv2007.0
- Remove source20, inline .desktop file into specfile and fix it and migrate
  to new XDG
- fix buildrequires for Mdk 2006

* Sun Jun 04 2006 David Walluck <walluck@mandriva.org> 0:1.5.0.4-1mdv2007.0
- 1.5.0.4

* Sun Apr 23 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0:1.5.0.2-2mdk
- fix directory level for patch2

* Sat Apr 22 2006 David Walluck <walluck@mandriva.org> 0:1.5.0.2-1mdk
- 1.5.0.2
- nable inspector, pref, and typeaheadfind extensions

* Tue Apr 11 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5-11mdk
- Add calls to gtk-update-icon-cache, all packages adding icons
  into theme icon directory must run it at post/postun

* Mon Apr 10 2006 David Walluck <walluck@mandriva.org> 0:1.5-10mdk
- add 64x64 and 128x128 icons (bug #21916)

* Thu Apr 06 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5-9mdk
- Enable official branding

* Fri Feb 24 2006 David Walluck <walluck@mandriva.org> 0:1.5-8mdk
- version nspr and nss BuildRequires
- add versioned nspr and nss Requires

* Wed Feb 22 2006 Frederic Crozat <fcrozat@mandriva.com> 0:1.5-7mdk
- fix freetype buildrequires
- Update source12, remove patch303, follow system locale

* Wed Feb 15 2006 David Walluck <walluck@mandriva.org> 0:1.5-6mdk
- fix duplicate file ownership for enigmail
- fix file perms on enigmail chrome.manifest

* Fri Feb 10 2006 David Walluck <walluck@mandriva.org> 0:1.5-5mdk
- package enigmail as an xpi

* Thu Feb 09 2006 David Walluck <walluck@mandriva.org> 0:1.5-4mdk
- fix error in run-mozilla.sh

* Wed Feb 08 2006 David Walluck <walluck@mandriva.org> 0:1.5-3mdk
- move soundwrapper call to run-mozilla.sh
- fix unofficial icons

* Wed Feb 08 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0:1.5-2mdk
- add BuildRequires: desktop-file-utils

* Fri Jan 20 2006 David Walluck <walluck@mandriva.org> 0:1.5-1mdk
- 1.5
- add back devel package
- merge enigmail and enigmime packages

* Wed Dec 21 2005 Per Øyvind Karlsen <pkarlsen@mandriva.com> 1.0.7-4mdk
- fix build on 10.2 (club request)

* Sun Oct 16 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0:1.0.7-3mdk
- fix version in nss-devel build dependency

* Fri Oct 14 2005 Frederic Crozat <fcrozat@mandriva.com> 0:1.0.7-2mdk
- Don't package i18n pack which are already in separate packages (anne)
- Don't package empty directories
- clean up prereq dependencies
- prevent failing when uninstall packages 
- force HOME value in rebuild-database script

* Sat Oct 08 2005 David Walluck <walluck@mandriva.org> 0:1.0.7-1mdk
- 1.0.7
- enigmail 0.93.0
- sync patches
- remove old build date

* Sat Sep 17 2005 David Walluck <walluck@mandriva.org> 0:1.0.6-7mdk
- enable xprint (#18412)

* Wed Sep 14 2005 Frederic Crozat <fcrozat@mandriva.com> 1.0.6-6mdk
- Patch114 (CVS): fix idn crash

* Tue Sep 06 2005 David Walluck <walluck@mandriva.org> 1.0.6-5mdk
- be sure to register enigmail extension (bug #14809)
- remove enigmail seamonkey skin and add enigmail tbird skin
- disable enigmail upgrade hotkey
- set PREF_JS_EXPORTS=prefs/enigmail.js in enigmail Makefile
- add post/preun scripts for enigmime.jar
- add other enigmail langs besides en-US

* Sat Sep 03 2005 David Walluck <walluck@mandriva.org> 0:1.0.6-4mdk
- try to avoid conflicts with mozilla libraries
- remove lang directories as to not conflict with standalone rpms

* Fri Aug 19 2005 Frederic Crozat <fcrozat@mandriva.com> 1.0.6-3mdk
- Update patch6 (pango is now used by default)
- Update source8 (no longer remove cache at startup, change pango variable)
- Update patch36 to remove last reference to pango-xft

* Thu Aug 18 2005 Frederic Crozat <fcrozat@mandriva.com> 1.0.6-2mdk
- Add patches from Firefox package :
 - Patch33: fix clipped text rendering with Pango 
 - Patch34: fix cursor positionning in textarea 
 - Patch35: fix bidi justification with pango 
 - Patch36: fix last Xft references 
 - Patch37: fix pango underline displayed as overstrike in CJK
 - Patch107: fix position of IM candidate window
 - Patch108: properly link with gfxshared
 - Patch109: fix warning with latest GTK
 - Patch110: file chooser is now modal
 - Patch111: fix crash with latest GTK
 - Patch112: add support for freedesktop mime-info
 - Patch113: fix bad aliasing with gcc4 on x86-64 (Moz bug #293307) (CVS)

* Thu Jul 21 2005 Buchan Milne <bgmilne@linux-mandrake.com> 1.0.6-1mdk
- New release 1.0.6
- drop p8,p104,p105,p107,p108 (integrated upstream)
- enigmail 0.92.0, ipc 1.1.3
- fix conditional %%mkrel definition

* Sat Apr 23 2005 David Walluck <walluck@mandriva.org> 0:1.0.2-3mdk
- merge patches from Fedora
- remove devel package
- fix gpg path

* Wed Apr 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.2-2mdk
- Patch8 (CVS): fix JS vulnerability (Moz bug #288688)
- Patch9 (Fedora) : add env variable to disable GNOME url handler 
- Update source5 to set HOME is not set

* Tue Mar 22 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.2-1mdk
- Release 1.0.2 (security fix)

* Wed Mar 16 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0-9mdk
- Patch5: fix compilation with system nspr
- Patch6: quiet extension manager (Firefox package)
- Patch7: fix extension manager (Firefox package)
- Change build directory to allow parallel build with other moz products
- build against libnspr4/libnss3 from firefox
- Remove alternative on mozilla-config

* Mon Mar 14 2005 David Walluck <walluck@mandrake.org> 0:1.0-8mdk
- lang patch from Yuri Bugelli <yuri.bugelli@virgilio.it>

* Tue Feb 15 2005 Couriousous <couriousous@mandrake.org> 0:1.0-7mdk
- Fix dictionary detection ( don't take hyph )

* Mon Feb 14 2005 David Walluck <walluck@mandrake.org> 0:1.0-6mdk
- enigmail 0.90.0
- %%multiarch
- "fix" requires-on-release
- Requires: myspell-dictionary
- %%mkrel (thanks Buchan Milne)
- add patch for locale detection (thanks Couriousous)
- add patch for mozilla dictionary (thanks Couriousous)
- add patch for automatic locale detection (thanks Couriousous)

* Thu Dec 16 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-5mdk
- fix bug 12686, thanks to mightor

* Tue Dec 14 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-4mdk
- don't try to register as default mail client on startup

* Thu Dec 09 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-3mdk
- add missing file
- fix enigmail installation

* Tue Dec 07 2004 Buchan Milne <bgmilne@linux-mandrake.com> 1.0-2mdk
- fix build on 10.1
- distro-specific release tag

* Tue Dec 07 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-1mdk
- update enigmail
- new version

* Thu Dec 02 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc.2mdk
- fix post script

* Thu Dec 02 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.rc.1mdk
- upgrade enigmail
- remove soundwrapper
- fix post script (from firefox package)
- new version

* Fri Nov 05 2004 Götz Waschk <waschk@linux-mandrake.com> 0.9-1mdk
- update ipc
- add gpg signature
- fix source URL
- New release 0.9

* Fri Sep 24 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8-4mdk
- drop xvfb hack, call thunderbird-bin -register instead
- upgrade enigmail to 0.86.1

* Thu Sep 16 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8-3mdk
- update release notes
- update enimail

* Wed Sep 15 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8-2mdk
- fix URL
- fix binary name

* Wed Sep 15 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8-1mdk
- fix installation
- fix URL
- New release 0.8

* Sat Aug 07 2004 Buchan Milne <bgmilne@linux-mandrake.com> 0.7.3-2mdk
- enigmail 0.85.0
- merge fixes from Club (Thu Jul 01 2004 0.7.1-0.100.1mdk)
 - enigmail 0.84.2, ipc 1.0.7
 - fix scripts to not remove entries just added, and not use scripts we just
   uninstalled (preuninstead of postun).

* Fri Aug 06 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.3-1mdk
- increase sleep time in the postinstall script
- New release 0.7.3

* Tue Jul 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.2-1mdk
- use hacks from the fedora package to run mozilla-thunderbird as root first
- New release 0.7.2

* Thu Jul 01 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7.1-1mdk
- compress source 6
- reenable libtoolize on Cooker
- fix 10.0 build
- New release 0.7.1

* Tue Jun 29 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.7-2mdk
- dropped patch0, fixed upstream (Sebastian Dransfeld <sebastian.dransfeld@ntnu.no>)

* Sat Jun 26 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.7-1mdk 
- new version
- --enable-single-profile

* Sun Jun 13 2004 Pascal Terjan <pterjan@mandrake.org> 0.6-2mdk
- BuildRequires autoconf2.1

* Fri May 21 2004 Pascal Terjan <pterjan@mandrake.org> 0.6-1mdk
- 0.6
- rediff patch0
- some cleaning, some more should be done