Name : firefox Version : 1.0rc2 Release : 0.FC1 # The Epoch allows for handling hard-to-compare version numbers. # Use this tag if RPM cannot figure out the ordering of which release comes after another. Epoch : 1 License : MPL/LGPL Summary : Mozilla Firefox Web browser. Group : Applications/Internet URL : http://www.mozilla.org/products/firefox/ Vendor : The Mozilla Organization Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source0 : firefox-1.0rc2.tar.gz Source1 : firefox.desktop Source2 : firefox.png AutoReq : No AutoProv : No %description Mozilla Firefox is an open-source web browser, designed for standards compliance, performance and portability. %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 %{__install} -d -m 755 %{buildroot}%{_libdir} cp -a firefox %{buildroot}%{_libdir} %{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/firefox.desktop %{__install} -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/firefox.png %{__install} -d -m 755 %{buildroot}%{_bindir} ln -s %{_libdir}/firefox/firefox %{buildroot}%{_bindir}/firefox ln -s %{_libdir}/firefox/firefox-bin %{buildroot}%{_bindir}/firefox-bin %clean rm -rf %{buildroot} %files ##################################################### # defattr sets the default attributes for all files ##################################################### %defattr(-, root, root) %{_libdir}/firefox/* %{_datadir}/applications/firefox.desktop %{_datadir}/pixmaps/firefox.png %{_bindir}/firefox %{_bindir}/firefox-bin %changelog * Thu Nov 04 2004 Thomas Chung 1.0rc2 - Rebuild for 1.0 Release Candidate 2 * Wed Oct 27 2004 Thomas Chung 1.0rc1 - Rebuild for 1.0 Release Candidate 1 * Fri Oct 08 2004 Thomas Chung 0.10.1 - Rebuild for 1.0 Preview Release Update 1 - Renumber version to 0.10.1 - Use Epoch to handle upgrading lower version - Use %{__install} tag * Tue Sep 14 2004 Thomas Chung 0.10 - Rebuild for 1.0 Preview Release * Fri Aug 06 2004 Thomas Chung 0.9.3 - Initial RPM Build for FC1