1999-04-11 14:32:45 +04:00
|
|
|
%define ver @MOZ_RPM_VERSION@
|
|
|
|
%define rel @MOZ_RPM_RELEASE@
|
|
|
|
%define prefix @MOZ_RPM_PREFIX@
|
|
|
|
%define tmp @MOZ_RPM_TMP@
|
1999-04-10 03:01:46 +04:00
|
|
|
|
|
|
|
Summary: Mozilla / ButtMonkey / Gecko / Whatever
|
|
|
|
Name: mozilla
|
|
|
|
Version: %ver
|
|
|
|
Release: %rel
|
|
|
|
Copyright: NPL
|
|
|
|
Group: Mozilla
|
|
|
|
Source: mozilla-%{ver}-%{rel}.tar.gz
|
|
|
|
BuildRoot: %{tmp}/%{name}-root
|
|
|
|
Packager: Ramiro Estrugo <ramiro@netscape.com>
|
|
|
|
URL: http://www.mozilla.org/
|
|
|
|
Provides: mozilla
|
|
|
|
Requires: glib >= 1.2.1 gtk+ >= 1.2.1 nspr-pthreads >= 3.1
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mozilla
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Mozilla development crap
|
|
|
|
Group: Mozilla
|
|
|
|
#Requires: mozilla nspr-devel
|
|
|
|
|
|
|
|
#Obsoletes: libnspr-devel
|
|
|
|
#Conflicts: libnspr-userthreads-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Mozilla development libs and headers
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n mozilla
|
|
|
|
|
|
|
|
%build
|
|
|
|
./configure \
|
|
|
|
--with-pthreads \
|
|
|
|
--enable-toolkit=gtk \
|
|
|
|
--disable-build-nspr \
|
1999-04-11 14:32:45 +04:00
|
|
|
@MOZ_RPM_SEAMONKEY_OPTIMIZE@
|
1999-04-10 03:01:46 +04:00
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/mozilla/bin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/include/mozilla
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/mozilla/idl
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/mozilla/components
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/mozilla/res
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
|
|
|
|
|
|
|
cp -rpv dist/bin/components/*.so $RPM_BUILD_ROOT%{prefix}/lib/mozilla/components
|
|
|
|
cp -rpv dist/bin/res/* $RPM_BUILD_ROOT%{prefix}/lib/mozilla/res
|
|
|
|
cp -rpv dist/bin/*.so $RPM_BUILD_ROOT%{prefix}/lib
|
|
|
|
cp -rpv dist/include/* $RPM_BUILD_ROOT%{prefix}/include/mozilla
|
|
|
|
cp -rpv dist/idl/* $RPM_BUILD_ROOT%{prefix}/lib/mozilla/idl
|
|
|
|
cp -rpv dist/lib/*.a $RPM_BUILD_ROOT%{prefix}/lib
|
|
|
|
cp -rpv dist/bin/apprunner $RPM_BUILD_ROOT%{prefix}/lib/mozilla/bin
|
|
|
|
cp -rpv dist/bin/viewer $RPM_BUILD_ROOT%{prefix}/lib/mozilla/bin
|
|
|
|
cp -rpv dist/bin/vreg $RPM_BUILD_ROOT%{prefix}/lib/mozilla/bin
|
|
|
|
|
|
|
|
cp -rpv build/mozilla-viewer.sh $RPM_BUILD_ROOT/usr/bin/mozilla-viewer
|
|
|
|
cp -rpv build/mozilla-apprunner.sh $RPM_BUILD_ROOT/usr/bin/mozilla-apprunner
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
#if grep "/usr/mozilla/lib" /etc/ld.so.conf > /dev/null 2>&1
|
|
|
|
#then
|
|
|
|
# :
|
|
|
|
#else
|
|
|
|
# echo "/usr/mozilla/lib" >> /etc/ld.so.conf
|
|
|
|
#fi
|
|
|
|
#
|
|
|
|
#/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%attr(-, root, root)
|
|
|
|
|
|
|
|
%{prefix}/lib/mozilla/components/*
|
|
|
|
%{prefix}/lib/*.so
|
|
|
|
%{prefix}/lib/mozilla/bin/*
|
|
|
|
%{prefix}/lib/mozilla/res/*
|
|
|
|
%attr(755, root, root)/usr/bin/mozilla-viewer
|
|
|
|
%attr(755, root, root)/usr/bin/mozilla-apprunner
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%attr(-, root, root)
|
|
|
|
|
|
|
|
%{prefix}/lib/*.a
|
|
|
|
%{prefix}/include/mozilla/*
|
|
|
|
%{prefix}/lib/mozilla/idl/*
|