Name: mozilla Summary: mozilla - an open source web browser Version: 0.0.M14 Release: 1 Copyright: MPL/NPL Source0: mozilla-source-M14-no-crypto.tar.gz Source1: mozilla Patch: mozilla-20000314-sparc.diff Buildroot: /var/tmp/mozilla-root Prefix: /usr Group: Applications/Internet Provides: webclient BuildPrereq: libpng-devel, libjpeg-devel, zlib-devel %package devel Summary: development files for Mozilla Group: Development/Libraries Requires: mozilla = %{version} %description Mozilla is an open-source web browser, designed for standards compliance, performance and portability. %description devel Development files for mozilla %prep %setup -n mozilla %patch -p1 # remove the CVS directories NOW rather than after installing them ;) # find . -type d -name CVS -exec rm -rf {} \; || : %build mkdir logs mkdir build-nspr export MOZILLA_OFFICIAL=1 export BUILD_OFFICIAL=1 ( CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ make -C nsprpub DIST=`pwd`/build-nspr 2>&1 | tee logs/build-nspr.log ) LD_LIBRARY_PATH=`pwd`/build-nspr/lib \ CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ ./configure --verbose --prefix=/usr --disable-debug --disable-profile \ --disable-crypto --disable-netcast --disable-java --disable-oji \ --disable-static --disable-tests --disable-smart-mail --enable-mailnews \ --enable-editor --enable-ldap --enable-optimize --with-pthreads \ --with-jpeg=/usr/include --with-png=/usr/include --with-zlib=/usr/include \ --with-nspr=`pwd`/build-nspr 2>&1 | tee logs/moz-config.log # ./configure --prefix=/usr --enable-optimize --disable-debug --with-pthreads \ # --disable-tests --enable-x11-shm --enable-strip-libs \ # --with-extensions \ # --enable-implicit-archive --disable-dtd-debug --with-jpeg \ # --with-zlib --with-png LD_LIBRARY_PATH=`pwd`/build-nspr/lib \ CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ gmake cd dist/bin strip -R .comment *.so mozilla-bin nsinstall regExport regxpcom vreg \ xpidl xpt_dump xpt_link components/*.so || : chmod -R +rw chrome chmod a+rw default* || : %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/mozilla mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin mkdir -p $RPM_BUILD_ROOT/%{prefix}/include/mozilla/idl cp -r dist/bin/* $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/ cp dist/lib/libgtkmozilla.so.0.0.0 $RPM_BUILD_ROOT/%{prefix}/lib ln -s libgtkmozilla.so.0.0.0 $RPM_BUILD_ROOT/%{prefix}/lib/libgtkmozilla.so.0 ln -s libgtkmozilla.so.0.0.0 $RPM_BUILD_ROOT/%{prefix}/lib/libgtkmozilla.so cp -r dist/include/* $RPM_BUILD_ROOT/%{prefix}/include/mozilla cp -r dist/idl/* $RPM_BUILD_ROOT/%{prefix}/include/mozilla/idl install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{prefix}/bin cp build-nspr/lib/lib*.so $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/ chmod a+x $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/lib*.so || : cd $RPM_BUILD_ROOT/%{prefix}/lib/mozilla LD_LIBRARY_PATH=`pwd` MOZILLA_FIVE_HOME=`pwd` ./regxpcom || \ echo "Register: ./regxpcom failed." %clean #rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/mozilla %files %defattr(-,root,root) %{prefix}/bin/mozilla %dir %{prefix}/lib/mozilla %{prefix}/lib/mozilla/* %{prefix}/lib/libgtkmozilla* %files devel %defattr(-,root,root) %dir %{prefix}/include/mozilla %{prefix}/include/mozilla/* %changelog * Mon Mar 20 2000 Rod m. Stewart - let's try to build and package it on an ARM system (NetWinder). - This build is M14 without crypto. - most things are disabled (currently using the Debian config options, thanks guys). - heavily modified from Bernhard's original * Tue Mar 14 2000 Bernhard Rosenkränzer - initial RPM