mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
d09af540ef
native or not. Remove a bunch of AC_DEFINE() statements for a previous rpm support checkin I made (it was not needed). Use MOZ_ instead of MOZILLA_ to be consistent with the rest of configure.in. Added build/nsprenv.mk support. Setting the NSPR environment via a file. This doesnt work yet, since it needs 2 small tweaks to NSPR. Added support for non native nspr. Not turned on yet. Until NSPR includes 2 small tweaks. Since comments are free, added a bunch of them.
99 lines
2.4 KiB
RPMSpec
99 lines
2.4 KiB
RPMSpec
%define ver @MOZ_RPM_VERSION@
|
|
%define rel @MOZ_RPM_RELEASE@
|
|
%define prefix @MOZ_RPM_PREFIX@
|
|
%define tmp @MOZ_RPM_TMP@
|
|
|
|
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 \
|
|
@MOZ_RPM_SEAMONKEY_OPTIMIZE@
|
|
|
|
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/*
|