%tbird_name			thunderbird

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

%tbird_prefix 			%_libdir/%tbird_name-%tbird_version
%tbird_datadir 			%_datadir/%tbird_name-%tbird_version
%tbird_usrsrc			%_usrsrc/%tbird_name
%tbird_scriptdir		%tbird_datadir/scripts

%tbird_chromedir		%tbird_prefix/chrome
%tbird_componentsdir		%tbird_prefix/components
%tbird_extensionsdir		%tbird_prefix/extensions
%tbird_defaultsdir		%tbird_prefix/defaults
%tbird_greprefsdir		%tbird_prefix/greprefs
%tbird_iconsdir			%tbird_prefix/icons
%tbird_initd			%tbird_prefix/init.d 
%tbird_ipcdir			%tbird_prefix/ipc
%tbird_pluginsdir		%tbird_prefix/plugins
%tbird_resdir			%tbird_prefix/res
%tbird_searchpluginsdir		%tbird_prefix/searchplugins

%tbird_bin                    	%_bindir/thunderbird
%tbird_rebuild_databases 	%tbird_prefix/rebuild-databases.sh 

%tbird_register() \
%tbird_scriptdir/tbird_register.sh "%tbird_bin" \
%nil

%tbird_install_extension() \
if [ "$1" = "1" ]; then \
%tbird_scriptdir/install_global_extension.sh "%tbird_bin" "%1" \
fi \
%nil

%tbird_uninstall_extension() \
if [ "$1" = "0" ]; then \
%tbird_scriptdir/uninstall_global_extension.sh "%tbird_bin" "%1" \
fi \
%nil
