Name : firefox Version : 1.0PR Release : 1.fc1 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 : http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.10/firefox-1.0PR-i686-linux-gtk2+xft.tar.gz Source1 : firefox.desktop Source2 : firefox.png AutoReqProv : 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 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}/firefox %{buildroot}%{_bindir}/firefox ln -s %{_libdir}/%{name}/firefox-bin %{buildroot}%{_bindir}/firefox-bin %clean rm -rf %{buildroot} %files ##################################################### # defattr sets the default attributes for all files ##################################################### %defattr(-, root, root) %{_libdir}/%{name} %{_datadir}/applications/firefox.desktop %{_datadir}/pixmaps/firefox.png %{_bindir}/firefox %{_bindir}/firefox-bin %changelog * Tue Sep 14 2004 Thomas Chung 1.0PR - Rebuild for 1.0 Preview Release (1.0PR) * Fri Aug 06 2004 Thomas Chung 0.9.3 - Initial RPM Build