%tbird_name		thunderbird

%tbird_prefix 		%_libdir/%tbird_name

%tbird_chromedir	%tbird_prefix/chrome
%tbird_componentsdir	%tbird_prefix/components
%tbird_defaultsdir	%tbird_prefix/defaults
%tbird_iconsdir		%tbird_prefix/icons
%tbird_ipcdir		%tbird_prefix/ipc
%tbird_pluginsdir	%tbird_prefix/plugins
%tbird_resdir		%tbird_prefix/res
%tbird_searchpluginsdir	%tbird_prefix/searchplugins

%tbird_sourcedir	%_usrsrc/%tbird_name

%tbird_version	%(rpmquery --qf='%{VERSION}' %tbird_name-devel)
%tbird_release	%(rpmquery --qf='%{RELEASE}' %tbird_name-devel)

%tbird_extension_postin() \
umask 022 \
%__cat %tbird_chromedir/installed-chrome-*.txt > %tbird_chromedir/installed-chrome.txt \
%tbird_prefix/rebuild-databases.sh \
%nil

%tbird_extension_postun() \
umask 022 \
%__cat %tbird_chromedir/installed-chrome-*.txt > %tbird_chromedir/installed-chrome.txt \
%tbird_prefix/rebuild-databases.sh \
%nil
