Building Mozilla 1.0.1 RPMs

Since neither Mozilla, Red Hat, nor Ximian seems in a hurry to release RPMs of Mozilla 1.0.1, and since I use the 1.0-based Galeon and would like to take advantage of the fixes, I thought I'd try building a set. So far, it seems to have worked.

Because of the size I'm not going to post the whole thing, just the modified .spec file I created and links to the originals. I built this on Red Hat Linux 7.3, but I expect it should work on other RPM-based systems.

Update 9/17/02 - A new version of Galeon is out with support for Mozilla 1.1, which has official RPMs, so this is probably no longer useful exactly as it is - however, the technique should work for upgrading other packages, assuming the list of installed files doesn't change.

Directions

  1. Grab the Mozilla 1.0.1 source tarball and the Mozilla 1.0 SRPM from mozilla.org or from a mirror.
  2. Grab my .spec file: mozilla-1.0.1.spec. The main changes I made were:
  3. Install the Mozilla 1.0 SRPM so you can get the various patches, icons, etc.
    rpm -i mozilla-1.0.0-9.src.rpm
  4. Copy/move the Mozilla 1.0.1 source tarball to the RPM sources directory.
    cp mozilla-source-1.0.1.tar.bz2 /usr/src/redhat/SOURCES
  5. Build the .spec file
    rpm -ba mozilla-1.0.1.spec
    or rpm -ba --target i686 mozilla-1.0.1.spec
    or rpm -ba --target athlon mozilla-1.0.1.spec
    (or something similar)
  6. Install the new RPMS.
    rpm -Uvh /usr/src/redhat/RPMS/(architecture)/mozilla*
  7. Copy/move any plugins from the Mozilla 1.0 directory to the Mozilla 1.0.1 directory.
    mv /usr/lib/mozilla-1.0.0/plugins/* /usr/lib/mozilla-1.0.1/plugins
  8. If you use Galeon, edit the starting script (probably /usr/bin/galeon) and copy the two lines about /usr/lib/mozilla-1.0.0, changing them to 1.0.1 instead. So far the Ximian release of Galeon 1.2.5 seems to work, though I haven't done any serious testing yet. You should have something like:
    elif [ -f /usr/lib/mozilla-1.0.1/chrome/comm.jar ]; then
    	MOZILLA_HOME=/usr/lib/mozilla-1.0.1
    elif [ -f /usr/lib/mozilla-1.0.0/chrome/comm.jar ]; then
    	MOZILLA_HOME=/usr/lib/mozilla-1.0.0
    ...

Back to Software | Home | Search

Last modified December 18, 2006 software@hyperborea.org

W3C Valid XHTML W3C Valid CSS Get Firefox