#
# spec file for package SUNWfirefox
#
# includes module(s): firefox
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
# DO NOT REMOVE NEXT LINE
# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
#
%use firefox = firefox.spec
#####################################
## Package Information Section ##
#####################################
%define lang_list ar be bg ca cs da de el es-AR es-CL es-ES et fi fr he hi-IN hr hu id is it ja kk ko lt lv mk nb-NO nl nn-NO pl pt-BR pt-PT ro ru sk sl sq sr sv-SE th tr uk vi zh-CN zh-HK zh-TW
SUNW_BaseDir: %{_basedir}
#####################################
## Package Requirements Section ##
#####################################
#%if %option_with_indiana_branding
# comment this out until I can find where to get it
# to install it on the build machines
#Requires: SUNWgetting-started-guide
#%endif
#####################################
## Package Description Section ##
#####################################
SUNW_BaseDir: %{_basedir}
#####################################
## Package Preparation Section ##
#####################################
%prep
cd l10n
cd ..
#####################################
## Package Build Section ##
#####################################
export LDFLAGS="-B direct -z ignore"
export CFLAGS="-xlibmopt"
export OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
export CXXFLAGS="-xlibmil -xlibmopt -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
do
done
# create file list for SUNWfirefox to separate xpidl|xpt_dump|xpt_link
cd $RPM_BUILD_ROOT%{_libdir}
find %{firefox.name} ! -type d | egrep -v "(xpidl|xpt_dump|xpt_link|libsoftokn3\.so|libnssdbm3\.so|libfreebl3\.so|libfreebl_32int_3\.so|libfreebl_32fpu_3\.so|libfreebl_32int64_3\.so)" | \
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
# re-sign these libraries after post process
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libsoftokn3.so
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libnssdbm3.so
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libfreebl_32int_3.so
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libfreebl_32fpu_3.so
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libfreebl_32int64_3.so
%else
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libfreebl3.so
#########################################
## Package Post[Un] Install Section ##
#########################################
%post
exit 0
exit 0
%else
%{_includedir}/%{firefox.name}
- Remove /usr/lib/firefox/components/compreg.dat and /usr/lib/firefox/components/xpti.dat in postinstall and postremove
- Remove -xldscope=symbolic in CFLAGS, CXXFLAGS, use -xldscope=hidden in libpixman Makefile.in instead
- Rename SUNWfirefox3.spec to SUNWfirefox.spec since FF2 has been replaced by FF3 in Nevada and OS for several builds
* Thu Jul 17 2008 - dave.lin@sun.com
- Removed the unnecessary dependency SUNWsolaris-devel-docs(CR6700877),
SUNWfirefox.
* Thu May 22 2008 - dave.lin@sun.com
- Change to build pkg only if "--with-ff3" is specified, otherwise build nothing
- change to build as "SUNWfirefox" and as default browser
* Fri May 16 2008 - damien.carbery@sun.com
- Disable creation of symlink for firefox 3. This means that ff2 is left as
default browser.
* Thu Mar 13 2008 - damien.carbery@sun.com
* Mon Feb 25 2008 - alfred.peng@sun.com
- Add "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" in CXXFLAGS to fix CR#6516110
* Thu Feb 21 2008 - damien.carbery@sun.com
- Rename SUNWsqlite dependency to SUNWsqlite3 to match pkg from SFW.
* Wed Jan 09 2008 - dave.lin@sun.com
- renamed FF 3 spec to *firefox3 to let FF 3 coexist with FF 2
* Fri Dec 28 2007 - dave.lin@sun.com
- deliver .autoreg no matter apoc enabled or not
* Thu Dec 27 2007 - dave.lin@sun.com
- move to 3.0 beta2
- set not building apoc adapter as default
- remove SUNWfirefox-root pkg
- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
* Tue Sep 05 2006 - Matt.Keenan@sun.com
* Thu Jul 27 2006 - damien.carbery@sun.com
* Tue Jun 20 2006 - damien.carbery@sun.com
* Fri Jun 09 2006 - damien.carbery@sun.com
* Mon Feb 20 2006 - damien.carbery@sun.com
* Thu Jan 19 2006 - damien.carbery@sun.com
* Fri Dec 02 2005 - damien.carbery@sun.com
- Add .autoreg file introduced in 1.5.
* Mon Oct 24 2005 - damien.carbery@sun.com
* Mon Sep 26 2005 - halton.huo@sun.com
* Fri Sep 02 2005 - damien.carbery@sun.com