> > Could it be possible for mandrake to provide rpm's of the mozilla
> > nightly builds? Just automate the building process on it (shouldn't
> > be too difficult, I'll even have a go at it) and provide it as
> > the hackmozilla contrib RPM.

>  maybe someone has the bandwidth to provide this service ... the rpms (if
> any) on the mozilla site will suck ...

> it's easy, set up a dummy acct for d/l mozilla and run from cron that does
> building.
True.

I could do it for the alpha (that computer is always on here), but would
that be usefull??

> > PS: building & running mozilla on intel goes fine. It sometimes
> > crashes. On the alpha building goes fine, but it is by far not
> > as stable as on intel.

> mozilla code really sucks, 
Hey! a bit more respect for the people working on it... ;-) Mozilla 
isn't yet where it's supposed to be (on everyones desktop, IMHO), but 
they're getting there. A few months ago mozilla wouldn't last more 
than a few minutes, now you can opt to use it as your primary browser.

A lot of things are really nice in it. For one: Chinese support. It
works out of the box (might make it easier to get my girlfriend on
Linux).

> gcc doesn't actually barf at the code but tehre
> are a lot of warnings :(
true...
 
> oh thx for getting mozilla to build, i was just going to try out 
> on my intel today (big big source :(  )
you might want to use this .spec file, I forgot to put
/usr/share/icons/*
in the %files section.

Good luck,

Stefan
%define name mozilla
%define version 5.0
%define mdk 2mdk
%define mozrel NB20000609
%define release 0.%{mozrel}.%{mdk}
%define officialrelease M16

Name: hack%{name}
Summary: Mozilla
Version: %{version}
Release: %{release}
Serial: 0
Copyright: MPL/NPL
Source0: ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.bz2
Source1: mozilla.sh
Source2: mozilla.xpm
Buildroot: /var/tmp/%{name}-buildroot
Prefix: /usr
Provides: webclient mozilla
Group: Networking/WWW
Url: http://www.mozilla.org
BuildRequires: egcs

%description
Mozilla is an open-source web browser, designed for standards
compliance, performance and portability.

%package devel
Summary: mozilla development files
Group: Development/Libraries
%description devel
Development files for mozilla

%prep
rm -rf $RPM_BUILD_ROOT

%setup -n mozilla
./configure     --enable-optimize --disable-debug --with-extensions \
                        --enable-strip-libs

%build
export NSDISTMODE=copy

if [ -x /usr/bin/getconf ] ; then
    NRPROC=$(/usr/bin/getconf _NPROCESSORS_ONLN)
    if [ $NRPROC -eq 0 ] ; then
        NRPROC=1
    fi
else
    NRPROC=1
fi

make export
make libs MAKE="make -j $NRPROC"
make install

%install
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{prefix}/include/mozilla/idl
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/mozilla/components
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/icons/large
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/icons/mini
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/icons/large
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/chrome
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/defaults/pref
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/defaults/profile
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/icons
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/res
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/mozilla/searchplugins

cd $RPM_BUILD_DIR/mozilla

cp dist/bin/mozilla $RPM_BUILD_ROOT%{prefix}/bin/
cp %{SOURCE1} $RPM_BUILD_ROOT%{prefix}/bin/mozilla
cp dist/bin/mozilla-bin $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/mozilla-config $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/mozilla-installer-bin $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/nsTestSample $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/regExport $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/regxpcom $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/splash.xpm $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/TestGtkEmbed $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/timebombgen $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/vreg $RPM_BUILD_ROOT%{prefix}/bin/
strip --strip-all $RPM_BUILD_ROOT%{prefix}/bin/vreg
cp dist/bin/xpidl $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/xpt_dump $RPM_BUILD_ROOT%{prefix}/bin/
cp dist/bin/xpt_link $RPM_BUILD_ROOT%{prefix}/bin/

cp -R dist/include/* $RPM_BUILD_ROOT%{prefix}/include/mozilla/
cp -R dist/idl/* $RPM_BUILD_ROOT%{prefix}/include/mozilla/idl/
cp dist/bin/lib*.so $RPM_BUILD_ROOT%{prefix}/lib/
chmod 755 $RPM_BUILD_ROOT%{prefix}/lib/lib*.so
cp -r dist/bin/components/* $RPM_BUILD_ROOT%{prefix}/lib/mozilla/components/
cp -r dist/bin/chrome/* $RPM_BUILD_ROOT%{prefix}/share/mozilla/chrome/
cp -r dist/bin/defaults/* $RPM_BUILD_ROOT%{prefix}/share/mozilla/defaults/
cp -r dist/bin/icons/* $RPM_BUILD_ROOT%{prefix}/share/mozilla/icons/
cp -r dist/bin/res/* $RPM_BUILD_ROOT%{prefix}/share/mozilla/res/
cp -r dist/bin/searchplugins/* $RPM_BUILD_ROOT%{prefix}/share/mozilla/searchplugins/

ln -sf ../../share/mozilla/chrome $RPM_BUILD_ROOT%{prefix}/lib/mozilla/chrome
ln -sf ../../share/mozilla/defaults $RPM_BUILD_ROOT%{prefix}/lib/mozilla/defaults
ln -sf ../../share/mozilla/icons $RPM_BUILD_ROOT%{prefix}/lib/mozilla/icons
ln -sf ../../share/mozilla/res $RPM_BUILD_ROOT%{prefix}/lib/mozilla/res
cp %{SOURCE2} $RPM_BUILD_ROOT%{prefix}/share/icons/
ln -sf ../../mozilla/icons/mozicon16.xpm 
$RPM_BUILD_ROOT%{prefix}/share/icons/mini/mozilla.xpm
ln -sf ../../mozilla/icons/mozicon50.xpm 
$RPM_BUILD_ROOT%{prefix}/share/icons/large/mozilla.xpm

install -m 755 -d $RPM_BUILD_ROOT%{prefix}/lib/menu
(cd $RPM_BUILD_ROOT
mkdir -p ./usr/lib/menu
cat > ./usr/lib/menu/mozilla <<EOF
?package(mozilla):\
command="/usr/bin/mozilla"\
icon="mozilla.xpm"\
title="Mozilla"\
longtitle="Open Source Web Browser"\
needs="x11"\
section="Networking/WWW"
EOF
)

%clean
rm -rf $RPM_BUILD_ROOT

%post
ldconfig
MOZILLA_FIVE_HOME=/usr/lib/mozilla %{prefix}/bin/regxpcom

## menu
if [ -x /usr/bin/update-menus ]; then
                /usr/bin/update-menus
        fi
 
%postun
ldconfig
rm -f %{prefix}/lib/mozilla/component.reg

## menu
if [ "$1" = 0 ]; then
                if [ -x /usr/bin/update-menus ]; then
                /usr/bin/update-menus
        fi
fi

%files
%defattr (-,root,root)
%{prefix}/bin/*
%{prefix}/lib/*
%{prefix}/share/icons/*
%{prefix}/share/mozilla/*

%files devel
%defattr(-,root,root)
%{prefix}/include/mozilla/*

%changelog
* Sat Jun 10 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- added /usr/share/icons/* in %files section

* Fri Jun 09 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- added menu

* Tue Jun 06 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- restructured the package to adapt to the current 
  nightly builds.

* Thu Mar 09 2000 Geoffrey Lee <[EMAIL PROTECTED]>
- provides mozilla
- reset back to 1mdk since 1,2,3,4mdk were never released to public
- changed source url to point to cvs version
- take run-mozilla.sh off files, it's not needed

* Sun Mar 05 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- restructured packages, now we only have browser & devel.

* Sat Mar 04 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- CVS20000303
- minor changes to .spec file

* Thu Mar 02 2000 Geoffrey Lee <[EMAIL PROTECTED]>
- add hackmozilla-mail to hackmozilla-browser requires, sorry folks, without
  files from the mail package it will cause segfault for some reason :-(
- add devel package
- mv /usr/bin/netscape.cfg to /usr/lib/mozilla, it doesn't belong there
- strip /usr/bin/vreg
- add args support in /usr/bin/mozilla sh script
- add misc stuff in /usr/bin/mozilla sh script

* Thu Mar 02 2000 Geoffrey Lee <[EMAIL PROTECTED]>
- fixed Stefan's package. Mozilla is naughty: no icons for it will cause
  segfault!!
- add M14 official release define
- ./configure --enable-strip-libs
- Changed program group to Applications Internet
- changed prereq : it needs hackmozilla, not mozilla
- buildrequires : egcs
- provides: webclient
- ln -sf instead of ln -s
- spec file is gross, even more gross now, maybe
- mv mozilla.spec hackmozilla.spec

* Fri Feb 25 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- further improved naming
- CVS20000225

* Sun Feb 13 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- fixed version-naming --> mozilla-browser needs mozilla-install, not
  mozilla-M13-install.

* Sun Feb 13 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- M13

* Wed Jan 05 2000 Lenny Cartier <[EMAIL PROTECTED]>
- used srpm from mozilla.org
- bz2 archive
- remove the paths in the post sections
- modified the install section

Reply via email to