Name : thunderbird Version : 1.0.6 Release : 1%{?dist} # If %{dist} is defined, insert its value here. If not, do nothing. # See http://fedoraproject.org/wiki/DistTag License : MPL Summary : Mozilla Thunderbird mail client Group : Applications/Internet URL : http://www.mozilla.org/products/thunderbird/ Vendor : Mozilla Foundation Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source0 : %{name}-%{version}.tar.gz Source1 : thunderbird.desktop Source2 : thunderbird.png AutoReq : No AutoProv : No %description Thunderbird is a free, open-source and cross-platform mail client based on the Mozilla codebase. It is a robust and easy to use client, similar to competing products like Outlook Express, but with some major advantages such as junk mail classification. %prep rm -rf %{buildroot} ####################################################################### # setup macro # -a num : Only unpack source number after changing to the directory # -b num : Only unpack source number before changing to the directory # -c : Create directory before unpacking. # -D : Do not delete the directory before unpacking # -n name : Name the directory as name # -q : Run quiety with minimum output # -T : Disable the automatic unpacking of the archives. ####################################################################### %setup -c -q ######################################################### # Common Red Hat RPM macros (rpm --showrc for more info) # {_sourcedir} : /usr/src/redhat/SOURCES # {_builddir} : /usr/src/redhat/BUILD # {_tmppath} : /var/tmp # {_libdir} : /usr/lib # {_bindir} : /usr/bin # {_datadir} : /usr/share # {_mandir} : /usr/share/man # {_docdir} : /usr/share/doc # {buildroot} # {name} # {version} # {release} ######################################################### %install mkdir -p %{buildroot}%{_libdir} cp -a %{name} %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps} cp -a %{SOURCE1} %{buildroot}%{_datadir}/applications cp -a %{SOURCE2} %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_bindir} ln -s %{_libdir}/%{name}/thunderbird %{buildroot}%{_bindir}/thunderbird ln -s %{_libdir}/%{name}/thunderbird-bin %{buildroot}%{_bindir}/thunderbird-bin %clean rm -rf %{buildroot} %files ##################################################### # defattr sets the default attributes for all files ##################################################### %defattr(-, root, root) %{_libdir}/%{name} %{_datadir}/applications/thunderbird.desktop %{_datadir}/pixmaps/thunderbird.png %{_bindir}/thunderbird %{_bindir}/thunderbird-bin %changelog * Thu Jul 21 2005 Thomas Chung 1.0.6-1 - Version 1.0.6 * Tue Jul 12 2005 Thomas Chung 1.0.5-1 - Version 1.0.5 - Use {?dist} tag * Wed Mar 23 2005 Thomas Chung 1:1.0.2-0 - Version 1.0.2 * Wed Dec 07 2004 Thomas Chung 1:1.0-0 - Version 1.0 * Wed Dec 01 2004 Thomas Chung 0:1.0RC1-0 - Version 1.0RC1 - Use Epoch for future version upgrade * Thu Nov 04 2004 Thomas Chung 0.9-0 - Version 0.9 * Tue Sep 14 2004 Thomas Chung 0.8-0 - Verison 0.8 * Thu Aug 26 2004 Thomas Chung 0.7.3-0 - Initial Build