VERSION=0.9.6 BUILD=1 ARCH=i386 TAG=ADD PKGNAME=mozilla-$VERSION-$ARCH-$BUILD MAINTAINER="TG " IGNOREPATH=/tmp:/proc:/dev:/root:/a:/var:/home STRIPLIB=y STRIPBIN=y PROGNAME="Mozilla" DESC="\ mozilla-$VERSION\n\ \n\ The Mozilla web browser. Mozilla is a cousin to Netscape\n\ Communicator that is being developed by the Free Software Community\n\ with the cooperation and support of Netscape. Mozilla uses a next-\n\ generation browser engine known as Gecko. The mozilla package is\n\ required by the GNOME programs Galeon and Nautilus (which also use\n\ Mozilla's Gecko rendering engine)." compile() { rm -rf /usr/src/rpm/SOURCES/* rm -rf /usr/src/rpm/RPMS/$ARCH/* cp -a /work/mozilla/* /usr/src/rpm/SOURCES cd /usr/src/rpm/SOURCES # Hehehe, well this _is_ pretty cheap, but it's # taking the path of least resistance. The # mozilla tarballs always have problems that prevent # a straightforward build, and all the sub-projects # in GNOME build off the semi-official RPMs, so it # makes more sense to build with most of their # patches from a spec file than to waste time trying # to independantly create a set of mozilla patches # that do the same thing... rpm -bb --nodeps mozilla-0.9.6.spec } install() { echo "Nothing to install." } special() { mkdir -p $TMP/built-packages cp /usr/src/rpm/RPMS/$ARCH/mozilla*.rpm $TMP/built-packages cd $TMP/built-packages rpm2targz *.rpm rm -rf *.rpm for pkgfile in *.tar.gz do ( cd $PKG ; explodepkg $TMP/built-packages/$pkgfile ) done }