%define indexhtml file:///usr/share/doc/HTML/index.html %define nspr_version 4.6.2 %define nss_version 3.11 %if "%{?fedora}" > "4" %define cairo_version 1.0 %endif %define official_branding 1 Summary: Mozilla Firefox Web browser. Name: firefox Version: 1.5.0.7 Release: 0.1%{?dist} URL: http://www.mozilla.org/projects/firefox/ License: MPL/LGPL Group: Applications/Internet Source0: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}-source.tar.bz2 Source1: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}-source.tar.bz2.asc #Source1: firefox-gnomestripe-0.1.tar.gz Source2: firefox-1.0-locales.tar.bz2 Source10: firefox-mozconfig Source11: firefox-mozconfig-branded Source12: firefox-redhat-default-bookmarks.html Source13: firefox-redhat-default-prefs.js Source20: firefox.desktop Source21: firefox.sh.in Source22: firefox.png Source23: firefox.xpm Source24: firefox.1 Source50: firefox-xremote-client.sh.in Source100: find-external-requires # build patches Patch1: firefox-1.0-prdtoa.patch Patch3: firefox-1.1-nss-system-nspr.patch Patch4: firefox-1.5-with-system-nss.patch Patch5: firefox-1.1-visibility.patch # customization patches Patch20: firefox-redhat-homepage.patch Patch21: firefox-0.7.3-default-plugin-less-annoying.patch Patch22: firefox-0.7.3-psfonts.patch Patch24: firefox-1.1-default-applications.patch Patch25: firefox-1.1-software-update.patch Patch26: firefox-RC1-stock-icons-be.patch Patch27: firefox-RC1-stock-icons-fe.patch Patch28: firefox-RC1-stock-icons-gnomestripe.patch Patch29: firefox-gnomestripe-0.1-livemarks.patch # local bugfixes Patch42: firefox-1.1-uriloader.patch # font system fixes Patch81: firefox-nopangoxft.patch # patches from upstream (Patch100+) # --------------------------------------------------- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} %{?cairo_version:BuildRequires: cairo-devel >= %{cairo_version}, pango-devel} BuildRequires: libpng-devel, libjpeg-devel BuildRequires: zlib-devel, zip BuildRequires: libIDL-devel BuildRequires: desktop-file-utils BuildRequires: gtk2-devel BuildRequires: gnome-vfs2-devel BuildRequires: libgnome-devel BuildRequires: libgnomeui-devel BuildRequires: krb5-devel BuildRequires: freetype-devel >= 2.1.9 # Let rpm auto-req this. -- Rex #Requires: nspr >= %{nspr_version} #Requires: nss >= %{nss_version} # Not *strictly* required, but optional Requires(hint): mathml-fonts #Requires: desktop-file-utils Obsoletes: phoenix, mozilla-firebird, MozillaFirebird Provides: mozilla-firebird = %{epoch}:%{version}, MozillaFirebird = %{epoch}:%{version} Provides: webclient %define ffdir %{_libdir}/firefox-%{version} AutoProv: 0 %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE100} %description Mozilla Firefox is an open-source web browser, designed for standards compliance, performance and portability. %package devel Summary: Development files for Firefox Group: Development/Libraries Obsoletes: mozilla-devel Requires: firefox = %{version}-%{release} Requires: nspr-devel >= %{nspr_version} Requires: nss-devel >= %{nss_version} %description devel Development files for Firefox. This package exists temporarily. When xulrunner has reached version 1.0, firefox-devel will be removed in favor of xulrunner-devel. #--------------------------------------------------------------------- %prep %setup -q -n mozilla #%{__tar} -xzf %{SOURCE1} %patch3 -p1 %patch4 -p1 # Pragma visibility is broken on most platforms for some reason. # It works on i386 so leave it alone there. Disable elsewhere. # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297 %ifnarch i386 %patch5 -p0 %endif %patch20 -p0 %patch21 -p1 %patch22 -p1 %patch24 -p0 #%patch25 -p0 #%patch26 -p0 #%patch27 -p0 #%patch28 -p0 #%patch29 -p1 %patch42 -p0 %patch81 -p1 %{__rm} -f .mozconfig %{__cp} %{SOURCE10} .mozconfig %if %{official_branding} %{__cat} %{SOURCE11} >> .mozconfig %endif %if "%{?cairo_version:1}" != "1" grep -v -e "--enable-system-cairo" .mozconfig > .mozconfig.BAK && mv .mozconfig.BAK .mozconfig grep -v -e "--enable-pango" .mozconfig > .mozconfig.BAK && mv .mozconfig.BAK .mozconfig %endif # set up our default bookmarks %{__cp} %{SOURCE12} $RPM_BUILD_DIR/mozilla/profile/defaults/bookmarks.html #--------------------------------------------------------------------- %build #export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | %{__sed} s/-O2/-Os/` # to help prelink find libmozjs.so,libxpcom.so,libxpcom_core.so LDFLAGS="-Wl,-rpath,'%{ffdir}'" \ MAKE="gmake %{?_smp_mflags}" make -f client.mk build for locale in `cat browser/locales/all-locales` do if [ -d browser/locales/$locale ] ; then %{__perl} -pi -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{indexhtml}|g;" \ browser/locales/$locale/chrome/browser-region/region.properties %{__make} -C browser/locales AB_CD=$locale fi if [ -d toolkit/locales/$locale ] ; then %{__make} -C toolkit/locales AB_CD=$locale fi done #--------------------------------------------------------------------- %install %{__rm} -rf $RPM_BUILD_ROOT cd browser/installer %{__make} STRIP=/bin/true cd - %{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications} %{__tar} -C $RPM_BUILD_ROOT%{_libdir}/ -xzf dist/%{name}-*linux*.tar.gz %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name} $RPM_BUILD_ROOT%{ffdir} %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}-*linux*.tar %{__install} -p -D %{SOURCE22} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png desktop-file-install --vendor mozilla \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Fedora \ --add-category Application \ --add-category Network \ %{SOURCE20} # set up the firefox start script %{__cat} %{SOURCE21} | %{__sed} -e 's,FIREFOX_VERSION,%{version},g' > \ $RPM_BUILD_ROOT%{_bindir}/firefox %{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/firefox # set up our default preferences %{__cat} %{SOURCE13} | %{__sed} -e 's,FIREFOX_RPM_VR,%{version}-%{release},g' > rh-default-prefs %{__cp} rh-default-prefs $RPM_BUILD_ROOT/%{ffdir}/greprefs/all-redhat.js %{__cp} rh-default-prefs $RPM_BUILD_ROOT/%{ffdir}/defaults/pref/all-redhat.js %{__rm} rh-default-prefs # set up our default bookmarks %{__install} -p -D %{SOURCE12} $RPM_BUILD_ROOT%{ffdir}/defaults/profile/bookmarks.html %{__cat} %{SOURCE50} | %{__sed} -e 's,FFDIR,%{ffdir},g' -e 's,LIBDIR,%{_libdir},g' > \ $RPM_BUILD_ROOT%{ffdir}/firefox-xremote-client %{__chmod} 755 $RPM_BUILD_ROOT%{ffdir}/firefox-xremote-client %{__install} -p -D %{SOURCE24} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1 %{__rm} -f $RPM_BUILD_ROOT%{ffdir}/firefox-config cd $RPM_BUILD_ROOT%{ffdir}/chrome find . -name "*" -type d -maxdepth 1 -exec %{__rm} -rf {} \; cd - %{__cat} > $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js << EOF pref("general.useragent.locale", "chrome://global/locale/intl.properties"); EOF %{__chmod} 644 $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js ## Fix app icon, http://bugzilla.redhat.com/190188 -- Rex # first don't replace %{__mkdir_p} $RPM_BUILD_ROOT%{ffdir}/chrome/icons/default/ #%{__cp} %{SOURCE23} $RPM_BUILD_ROOT%{ffdir}/chrome/icons/default/default.xpm #%{__cp} %{SOURCE23} $RPM_BUILD_ROOT%{ffdir}/icons/default.xpm # manually update/fix %{__cp} other-licenses/branding/firefox/default.xpm $RPM_BUILD_ROOT%{ffdir}/chrome/icons/default/default.xpm %{__cp} other-licenses/branding/firefox/default.xpm $RPM_BUILD_ROOT%{ffdir}/icons/default.xpm # own mozilla plugin dir (#135050) %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins # ghost files touch $RPM_BUILD_ROOT%{ffdir}/components/compreg.dat touch $RPM_BUILD_ROOT%{ffdir}/components/xpti.dat #--------------------------------------------------------------------- %clean %{__rm} -rf $RPM_BUILD_ROOT #--------------------------------------------------------------------- %post update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %postun update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %preun # is it a final removal? if [ $1 -eq 0 ]; then %{__rm} -rf %{ffdir}/components %{__rm} -rf %{ffdir}/extensions # find %{ffdir}/plugins -type l -exec %{__rm} -f {} \; ||: fi %files %defattr(-,root,root,-) %{_bindir}/firefox %{_mandir}/man1/* %{_datadir}/applications/mozilla-%{name}.desktop %{_datadir}/pixmaps/firefox.png %{ffdir}/ %{_libdir}/mozilla %ghost %{ffdir}/components/compreg.dat %ghost %{ffdir}/components/xpti.dat #--------------------------------------------------------------------- %changelog * Fri Sep 15 2006 Rex Dieter 1.5.0.7-0.1 - 1.5.0.7 * Fri Jul 28 2006 Rex Dieter 1.5.0.5-0.2 - 1.5.0.5 - fix app icon (rh bug #190188) * Fri Jun 02 2006 Rex Dieter 1.5.0.4-0.1 - 1.5.0.4 * Wed May 03 2006 Rex Dieter 1.5.0.3-0.2 - 1.5.0.3 - Requires(hint): mathml-fonts * Sat Apr 15 2006 Rex Dieter 1.5.0.2-0.1 - 1.5.0.2 * Tue Mar 14 2006 Rex Dieter 1.5.0.1-0.2 - drop hard-coded Requires: nspr, nss * Thu Feb 02 2006 Rex Dieter 1.5.0.1-0.1 - 1.5.0.1 * Tue Jan 31 2006 Rex Dieter 1.5-4.2 - revert usage of -Os * Fri Jan 20 2006 Rex Dieter 1.5-4.1 - LDFLAGS=-Wl,-rpath... to help prelink find missing libs * Fri Jan 13 2006 Rex Dieter - 1.5-4.0 - el4 port * Tue Jan 3 2006 Christopher Aillon - 1.5-4 - Looks like we can build ppc64 again. Happy New Year! * Fri Dec 16 2005 Christopher Aillon - 1.5-3 - Once again, disable ppc64 because of a new issue. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175944 * Thu Dec 15 2005 Christopher Aillon - 1.5-2 - Use the system NSS libraries - Build on ppc64 * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Nov 29 2005 Christopher Aillon - 1.5-1 - Update to Firefox 1.5 * Mon Nov 28 2005 Christopher Aillon - 1.5-0.5.1.rc3 - Fix issue with popup dialogs and other actions causing lockups * Fri Nov 18 2005 Christopher Aillon - 1.5-0.5.0.rc3 - Update to 1.5 rc3 * Thu Nov 3 2005 Christopher Aillon - 1.5-0.5.0.rc1 - Update to 1.5 rc1 - Clean up the default bookmarks * Sat Oct 8 2005 Christopher Aillon - 1.5-0.5.0.beta2 - Update to 1.5 beta 2 * Wed Sep 14 2005 Christopher Aillon - 1.5-0.5.0.beta1 - Update to 1.5 beta 1. - Add patch to svg rendering to adjust for cairo behavior. - Happy birthday, dad! * Sat Aug 27 2005 Christopher Aillon - 1.1-0.2.8.deerpark.alpha2 - Re-enable SVG, canvas, and system cairo. - Fix issue with typing in proxy preference panel * Thu Aug 18 2005 Jeremy Katz - 1.1-0.2.7.deerpark.alpha2.1 - another fix to not use pango_xft * Mon Aug 15 2005 Christopher Aillon 1.1-0.2.6.deerpark.alpha2 - Rebuild * Fri Jul 29 2005 Christopher Aillon 1.1-0.2.5.deerpark.alpha2 - Re-enable ppc now that its binutils are fixed. - Disable SVG and canvas again. The in-tree copy does not build against new pango. - When clicking a link and going back via history, don't keep the link focused. * Fri Jul 22 2005 Christopher Aillon 1.1-0.2.4.deerpark.alpha2 - Add patch from Christian Persch to make the file chooser modal - Change default behavior of opening links from external apps to: New Tab - New build options: --enable-svg --enable-canvas * Wed Jul 20 2005 Christopher Aillon 1.1-0.2.3.deerpark.alpha2 - Update firefox-1.1-uriloader.patch to fix crashes when calling into gnome-vfs2 * Tue Jul 19 2005 Christopher Aillon 1.1-0.2.2.deerpark.alpha2 - Do away with firefox-rebuild-databases.pl * Mon Jul 18 2005 Christopher Aillon 1.1-0.2.1.deerpark.alpha2 - Rebuild * Mon Jul 18 2005 Christopher Aillon 1.1-0.0.1.deerpark.alpha2 - Update to Deer Park Alpha 2 - STILL TODO: - This build is not localized yet. - Theme issues not yet resolved. - Building on ppc platforms is busted, disable them for now. - Forward port all remaining patches. * Sun Jul 17 2005 Christopher Aillon 0:1.0.4-6 - Avoid a crash on 64bit platforms - Use system NSPR * Thu Jun 23 2005 Kristian Høgsberg 0:1.0.4-5 - Add firefox-1.0-pango-cairo.patch to get rid of the last few Xft references, fixing the "no fonts" problem. - Copy over changes from FC4 branch. * Tue May 24 2005 Christopher Aillon 0:1.0.4-4 - Only install searchplugins for en-US, since there isn't any way to dynamically select searchplugins per locale yet. * Mon May 23 2005 Christopher Aillon 0:1.0.4-3 - Add support for locales: af-ZA, ast-ES, ca-AD, cs-CZ, cy-GB, da-DK, de-DE, el-GR, en-GB es-AR, es-ES, eu-ES, fi-FI, fr-FR, ga-IE, he-IL, hu-HU, it-IT, ko-KR, ja-JP, ja-JPM, mk-MK, nb-NO, nl-NL, pa-IN, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI, sq-AL, sv-SE, tr-TR, zh-CN, zh-TW * Wed May 11 2005 Christopher Aillon 0:1.0.4-2 - Update to 1.0.4 * Mon May 9 2005 Christopher Aillon 0:1.0.3-5 - Correctly position the IM candidate window for most locales Note: it is still incorrectly positioned for zh_TW after this fix - Add temporary workaround to not create files in the user's $HOME (#149664) * Tue May 3 2005 Christopher Aillon 0:1.0.3-4 - Rebuild * Tue May 3 2005 Christopher Aillon - Patch from Marcel Mol supporting launching with filenames containing whitespace. * Tue May 3 2005 Christopher Aillon 0:1.0.3-3 - Firefox script fixes to support multilib installs. - Add upstream patch to fix bidi justification of pango - Add patch to fix launching of helper applications * Wed Apr 27 2005 Warren Togami - remove JVM version probing (#116445) - correct confusing PANGO vars in startup script * Fri Apr 15 2005 Christopher Aillon 0:1.0.3-2 - Add patch to properly link against libgfxshared_s.a * Fri Apr 15 2005 Christopher Aillon 0:1.0.3-1 - Update to security release 1.0.3 * Tue Apr 12 2005 Christopher Aillon 0:1.0.2-4 - Update useragent patch to match upstream. - Add nspr-config 64 bit patch from rstrode@redhat.com * Mon Mar 28 2005 Christopher Aillon 0:1.0.2-3 - Updated firefox icon (https://bugzilla.mozilla.org/show_bug.cgi?id=261679) - Fix for some more cursor issues in textareas (149991, 150002, 152089) * Fri Mar 25 2005 Christopher Aillon 0:1.0.2-2 - Make the "browser.link.open_external" pref work (David Fraser) * Wed Mar 23 2005 Christopher Aillon 0:1.0.2-1 - Firefox 1.0.2 * Tue Mar 22 2005 Christopher Aillon 0:1.0.1-6 - Add patch to fix italic rendering errors with certain fonts (e.g. Tahoma) - Re-enable jsd since there is now a venkman version that works with Firefox. * Tue Mar 8 2005 Christopher Aillon 0:1.0.1-5 - Add patch to compile against new fortified glibc macros * Fri Mar 4 2005 Christopher Aillon 0:1.0.1-4 - Build against gcc4, add build patches to do so. * Thu Mar 3 2005 Christopher Aillon 0:1.0.1-3 - Remerge firefox-1.0-pango-selection.patch - Add execshield patches for ia64 and ppc - BuildRequires libgnome-devel, libgnomeui-devel * Sun Feb 27 2005 Christopher Aillon 0:1.0.1-2 - Add upstream fix to reduce round trips to xserver during remote control - Add upstream fix to call g_set_application_name * Thu Feb 24 2005 Christopher Aillon 0:1.0.1-1 - Update to 1.0.1 fixing several security flaws. - Temporarily disable langpacks to workaround startup issues (#145806) - Request the correct system colors from gtk (#143423) * Tue Dec 28 2004 Christopher Aillon 0:1.0-8 - Add upstream langpacks * Sat Dec 25 2004 Christopher Aillon 0:1.0-7 - Make sure we get a URL passed in to firefox (#138861) - Mark some generated files as ghost (#136015) * Wed Dec 15 2004 Christopher Aillon 0:1.0-6 - Don't have downloads "disappear" when downloading to desktop (#139015) - Add RPM version to the useragent - BuildRequires pango-devel * Sat Dec 11 2004 Christopher Aillon 0:1.0-5 - Fix spacing in textareas when using pango for rendering - Enable pango rendering by default. - Enable smooth scrolling by default * Fri Dec 3 2004 Christopher Aillon 0:1.0-4 - Add StartupWMClass patch from Damian Christey (#135830) - Use system colors by default (#137810) - Re-add s390(x) * Sat Nov 20 2004 Christopher Blizzard 0:1.0-3 - Add patch that uses pango for selection. * Fri Nov 12 2004 Christopher Aillon 0:1.0-2 - Fix livemarks icon issue. (#138989) * Tue Nov 8 2004 Christopher Aillon 0:1.0-1 - Firefox 1.0 .