10139N/A#
10139N/A# spec file for package SUNWfirefox
10139N/A#
10139N/A# includes module(s): firefox
10139N/A#
20829N/A# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
20255N/A%define owner ginnchen
10139N/A#
10139N/A# DO NOT REMOVE NEXT LINE
16333N/A# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
10139N/A#
10139N/A%include Solaris.inc
10139N/A%use firefox = firefox.spec
10139N/A
10139N/A#####################################
10139N/A## Package Information Section ##
10139N/A#####################################
10139N/A
20857N/A%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
20857N/A%define l10n_version 6.0.2
20829N/A
10139N/AName: SUNWfirefox
18688N/AIPS_package_name: web/browser/firefox
18688N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
10139N/ASummary: Mozilla Firefox Web browser
10139N/AVersion: %{firefox.version}
10139N/ASource: %{name}-manpages-0.1.tar.gz
20829N/ASource1: firefoxl10n-%{l10n_version}.tar.gz
10139N/ASUNW_BaseDir: %{_basedir}
10139N/ASUNW_Category: FIREFOX,application,%{jds_version}
12663N/ASUNW_Copyright:%{name}.copyright
19078N/ALicense: MOZILLA PUBLIC LICENSE V1.1
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A#####################################
10139N/A## Package Requirements Section ##
10139N/A#####################################
10139N/A
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
17964N/ARequires: SUNWlibC
17964N/ARequires: SUNWlibms
17964N/ARequires: SUNWbash
16401N/ARequires: SUNWgtk2
17964N/ABuildRequires: SUNWgtk2-devel
17964N/ABuildRequires: SUNWgnome-component-devel
18850N/ABuildRequires: SUNWaudh
10139N/ARequires: SUNWfontconfig
10139N/ARequires: SUNWfreetype2
10139N/ARequires: SUNWgnome-config
17964N/ABuildRequires: SUNWgnome-config-devel
10139N/ARequires: SUNWgnome-libs
17964N/ABuildRequires: SUNWgnome-libs-devel
10139N/ARequires: SUNWgnome-vfs
17964N/ABuildRequires: SUNWgnome-vfs-devel
17964N/ARequires: SUNWzlib
17964N/ABuildRequires: SUNWzlib
17964N/ARequires: SUNWlibtheora
17964N/ABuildRequires: SUNWlibtheora
17964N/ARequires: SUNWogg-vorbis
17964N/ABuildRequires: SUNWogg-vorbis
17964N/ARequires: SUNWsqlite3
17964N/ABuildRequires: SUNWsqlite3
17964N/ARequires: SUNWlibnotify
17964N/ABuildRequires: SUNWlibnotify
18381N/ARequires: SUNWdbus-glib
18381N/ABuildRequires: SUNWdbus-glib
18381N/ARequires: SUNWdbus-libs
18381N/ABuildRequires: SUNWdbus-libs
17964N/ARequires: SUNWlibffi
17964N/ABuildRequires: SUNWlibffi
19142N/ARequires: SUNWdbus
19142N/ABuildRequires: SUNWdbus
10139N/ABuildRequires: SUNWzip
10139N/ABuildRequires: SUNWgtar
17964N/ABuildRequires: SUNWbzip
18360N/A#%if %option_with_indiana_branding
18110N/A# comment this out until I can find where to get it
18110N/A# to install it on the build machines
18110N/A#Requires: SUNWgetting-started-guide
18360N/A#%endif
16554N/A%if %option_without_moz_nss_nspr
20829N/ARequires: library/nspr
20829N/ARequires: library/security/nss
13898N/A%endif
20258N/ABuildRequires: SUNWxorg-mesa
20341N/ABuildRequires: x11/library/libxscrnsaver
10139N/A#####################################
10139N/A## Package Description Section ##
10139N/A#####################################
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10364N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
13898N/ARequires: %{name}
10139N/A
10139N/A#####################################
10139N/A## Package Preparation Section ##
10139N/A#####################################
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
10139N/Amkdir -p %name-%version
10139N/A%firefox.prep -d %name-%version
10139N/Acd %{_builddir}/%name-%version
10139N/Agzcat %SOURCE0 | tar xf -
10139N/A
20829N/Amkdir -p l10n
20829N/Acd l10n
20829N/Agzip -dc %{SOURCE1} | tar -xvf -
20829N/Acd ..
20829N/A
10139N/A#####################################
10139N/A## Package Build Section ##
10139N/A#####################################
10139N/A
10139N/A%build
10139N/Aexport PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
16639N/Aexport LDFLAGS="-B direct -z ignore"
20351N/Aexport CFLAGS="-xlibmopt"
20351N/Aexport OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
20255N/Aexport CXXFLAGS="-xlibmil -xlibmopt -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
10139N/A
10139N/A%firefox.build -d %name-%version
10139N/A
20829N/Acd %{_builddir}/%{name}-%{version}/l10n
20829N/Afor lang in %{lang_list}
20829N/Ado
20829N/A mv $lang.xpi langpack-$lang@firefox.mozilla.org.xpi
20829N/Adone
20829N/A
10139N/A%install
10139N/A%firefox.install -d %name-%version
10139N/A
20255N/A# create file list for SUNWfirefox to separate xpidl|xpt_dump|xpt_link
10139N/Acd $RPM_BUILD_ROOT%{_libdir}
20818N/Afind %{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)" | \
10139N/A sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
10139N/A > %{_builddir}/%name-%version/%{name}.list
10330N/A
10139N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
10139N/Acd %{_builddir}/%name-%version/sun-manpages
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
10139N/A
20814N/A# re-sign these libraries after post process
20814N/ALD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libsoftokn3.so
20814N/ALD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libnssdbm3.so
20814N/A
20814N/A%ifarch sparc
20814N/ALD_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
20814N/ALD_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
20814N/ALD_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
20814N/A%else
20814N/ALD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/firefox %{_builddir}/%name-%version/obj/nss/shlibsign -v -i $RPM_BUILD_ROOT/usr/lib/firefox/libfreebl3.so
20814N/A%endif
20814N/A
20829N/Acd %{_builddir}/%{name}-%{version}/l10n
20857N/Achmod 0644 *.xpi
20829N/Amkdir -p $RPM_BUILD_ROOT/usr/lib/firefox/extensions
20829N/Acp *.xpi $RPM_BUILD_ROOT/usr/lib/firefox/extensions/
20829N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A#########################################
10139N/A## Package Post[Un] Install Section ##
10139N/A#########################################
10139N/A
14421N/A%post
16307N/A%restart_fmri desktop-mime-cache || exit 1
14414N/Aexit 0
14414N/A
10139N/A%postun
16307N/A%restart_fmri desktop-mime-cache || exit 1
14376N/Aexit 0
13898N/A
10139N/A%files -f SUNWfirefox.list
10139N/A
20814N/A%doc -d firefox/mozilla-release README.txt LICENSE
14296N/A%dir %attr (0755, root, other) %{_datadir}/doc
14296N/A
10522N/A%defattr(-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/firefox
10139N/A%dir %attr (0755, root, bin) %{_libdir}
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libsoftokn3.so
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libnssdbm3.so
20818N/A%ifarch sparc
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32int_3.so
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32fpu_3.so
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32int64_3.so
20818N/A%else
20818N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl3.so
20818N/A%endif
20829N/A
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%dir %attr (0755, root, other) %{_datadir}/applications
10139N/A%{_datadir}/applications/firefox.desktop
10139N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
10139N/A%{_datadir}/pixmaps/firefox-icon.png
10139N/A%dir %attr (0755, root, bin) %{_mandir}
10139N/A%dir %attr (0755, root, bin) %{_mandir}/man1
10139N/A%{_mandir}/man1/*
10139N/A
20829N/A%{_libdir}/firefox/extensions/langpack-*
20829N/A
10139N/A%files devel
10522N/A%defattr(-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_includedir}
13898N/A%{_includedir}/%{firefox.name}
13898N/A%dir %attr (0755, root, sys) %{_datadir}
13898N/A%{_datadir}/idl/%{firefox.name}
12169N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
12169N/A%{_libdir}/pkgconfig/*
13898N/A%{_libdir}/firefox/xpidl
10139N/A
10139N/A%changelog
20857N/A* Fri Sep 09 2011 - ginn.chen@oralce.com
20857N/A- Fix lang pack permissions.
20857N/A* Thu Sep 08 2011 - ginn.chen@oracle.com
20857N/A- Update to Firefox 6.0.2.
20829N/A* Fri Aug 26 2011 - laszlo.peter@oracle.com
20829N/A- merge l10n content into main package
20829N/A* Fri Aug 12 2011 - ginn.chen@oracle.com
20829N/A- Update to Firefox 6.0.
20814N/A* Tue Jul 26 2011 - ginn.chen@oracle.com
20814N/A- Fix CR 7071032.
20814N/A* Tue Jul 12 2011 - ginn.chen@oracle.com
20814N/A- Update to Firefox 5.0.
20350N/A* Thu Jun 09 2011 - ginn.chen@oracle.com
20350N/A- Add -D__USE_LEGACY_PROTOTYPES__ to make it compile on snv_166.
20255N/A* Fri Apr 29 2011 - ginn.chen@oracle.com
20255N/A- Update to Firefox 4.0.1.
19078N/A* Mon Nov 08 2010 - brian.lu@oracle.com
19078N/A- Add "License" tag
18850N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
18850N/A- Updated BuildRequires to fit SourceJuicer.
18381N/A* Thu Mar 04 2010 - brian.lu@sun.com
18381N/A- Add Requires: SUNWdbus-glib
18381N/A BuildRequires: SUNWdbus-glib
18381N/A Requires: SUNWdbus-libs
18381N/A BuildRequires: SUNWdbus-libs
17878N/A* Sun Dec 7 2009 - christian.kelly@sun.com
17878N/A- Add BuildRequires SUNWlibxml2-python26.
17811N/A* Wed Nov 26 2009 - ginn.chen@sun.com
17811N/A- Update for Firefox 3.6.
16639N/A* Thu Jun 11 2009 - brian.lu@sun.com
16639N/A- Add '-B direct' option
16553N/A* Mon May 25 2009 - ginn.chen@sun.com
16553N/A- Add SUNWlibtheora and SUNWogg-vorbis to dependency.
16553N/A- Comment out dependency of SUNWsqlite3 until we use that.
16307N/A* Fri Apr 3 2009 - laca@sun.com
16307N/A- use desktop-cache instead of postrun
16277N/A* Mon Mar 30 2009 - ginn.chen@sun.com
16277N/A- Correction for build dependency of nss, nspr.
16224N/A* Mon Mar 23 2009 - jeff.cai@sun.com
16224N/A- Since /usr/lib/firefox/firefox (SUNWfirefox) requires /usr/bin/bash which is
16224N/A found in SUNWbash, add the dependency
15797N/A* Tue Feb 10 2009 - dave.lin@sun.com
15797N/A- Enable apoc adapter as default.
14376N/A* Wed Sep 17 2008 - ginn.chen@sun.com
14376N/A- Remove /usr/lib/firefox/components/compreg.dat and /usr/lib/firefox/components/xpti.dat in postinstall and postremove
14376N/A- Touch /usr/lib/firefox/.autoreg in postinstall
14376N/A- Remove staroffice-mime.types.in, staroffice-mailcap.in
13914N/A* Tue Aug 19 2008 - ginn.chen@sun.com
13914N/A- Remove -xldscope=symbolic in CFLAGS, CXXFLAGS, use -xldscope=hidden in libpixman Makefile.in instead
13898N/A* Mon Aug 18 2008 - dave.lin@sun.com
13898N/A- Rename SUNWfirefox3.spec to SUNWfirefox.spec since FF2 has been replaced by FF3 in Nevada and OS for several builds
13898N/A* Fri Aug 15 2008 - dave.lin@sun.com
13898N/A- add -xldscope=symbolic in CFLAGS, CXXFLAGS to fix the cairo crash issue per Brian's request
13898N/A* Thu Jul 17 2008 - dave.lin@sun.com
13898N/A- Removed the unnecessary dependency SUNWsolaris-devel-docs(CR6700877),
13898N/A SUNWfirefox.
13086N/A* Thu May 22 2008 - dave.lin@sun.com
13898N/A- Change to build pkg only if "--with-ff3" is specified, otherwise build nothing
13898N/A- change to build as "SUNWfirefox" and as default browser
13898N/A* Fri May 16 2008 - damien.carbery@sun.com
13898N/A- Disable creation of symlink for firefox 3. This means that ff2 is left as
13898N/A default browser.
12601N/A* Thu Mar 13 2008 - damien.carbery@sun.com
12601N/A- Add -I/usr/X11/include to CFLAGS after update of SUNWwinc.
13898N/A* Mon Feb 25 2008 - alfred.peng@sun.com
13898N/A- Add "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" in CXXFLAGS to fix CR#6516110
13898N/A* Thu Feb 21 2008 - damien.carbery@sun.com
13898N/A- Rename SUNWsqlite dependency to SUNWsqlite3 to match pkg from SFW.
12169N/A* Wed Jan 09 2008 - dave.lin@sun.com
13898N/A- renamed FF 3 spec to *firefox3 to let FF 3 coexist with FF 2
12099N/A* Fri Dec 28 2007 - dave.lin@sun.com
12099N/A- deliver .autoreg no matter apoc enabled or not
12097N/A* Thu Dec 27 2007 - dave.lin@sun.com
12097N/A- move to 3.0 beta2
12097N/A- set not building apoc adapter as default
12097N/A- remove SUNWfirefox-root pkg
12097N/A- disable apoc adapter since it's not available for 3.0
12097N/A* Thu Dec 27 2007 - dave.lin@sun.com
12097N/A- set no apoc-adapter as default
11425N/A* Sat Oct 20 2007 - laca@sun.com
11425N/A- add indiana getting started guide dependency
11391N/A* Fri Oct 12 2007 - laca@sun.com
11391N/A- add /usr/X11/include to CFLAGS if built with FOX
11314N/A* Fri Sep 28 2007 - laca@sun.com
11314N/A- delete Nevada X deps
11314N/A- disable developer guide dep if sun branding is not requested
11096N/A* Tue Aug 21 2007 - dave.lin@sun.com
11096N/A- made postremove/postinstall script more robust(CR#6594606)
10522N/A* Tue Apr 24 2007 - laca@sun.com
10522N/A- s/0755/-/ in defattr so that files are not made all executable
10448N/A* Tue Apr 10 2007 - dave.lin@sun.com
10448N/A- remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root
10448N/A since it caused CR#6530982 fixed failed(see details in bugster)
10364N/A* Mon Mar 26 2007 - dave.lin@sun.com
10364N/A- add new package SUNWfirefox-root to fix bug CR#6530982, the package
10364N/A would just add staroffice entries in /etc/mime.types /etc/mailcap
10364N/A in postinstall
10330N/A* Tue Mar 20 2007 - dave.lin@sun.com
10330N/A- fix bug CR#6521792
10330N/A part1: add file ".autoreg" and add postinstall/postremove scripts in
10330N/A SUNWfirefox-apoc-adapter
10330N/A part2: add patch firefox-12-regenerate-compreg-file.diff
10139N/A* Thu Dec 28 2006 - dave.lin@sun.com
10139N/A- remove %preun to fix bug CR#6502253
10139N/A* Fri Dec 8 2006 - laca@sun.com
10139N/A- add SUNWsolaris-devel-docs dependency
10139N/A* Tue Nov 28 2006 - dave.lin@sun.com
10139N/A- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
10139N/A default: enable apoc adapter, use --without-apoc-adapter to disable it
10139N/A* Mon Nov 27 - dave.lin@sun.com
10139N/A- enable apoc adapter(SUNWfirefox-apoc-adapter), CR#6478680
10139N/A* Tue Sep 05 2006 - Matt.Keenan@sun.com
10139N/A- New Manpage tarball
10139N/A* Thu Jul 27 2006 - damien.carbery@sun.com
10139N/A- Remove 'aclocal' dir from %files as it is now empty.
10139N/A* Fri Jul 14 2006 - laca@sun.com
10139N/A- update %post/%postun/etc scripts to support diskless client setup,
10139N/A part of 6448317
10139N/A* Thu Jul 13 2006 - dave.lin@sun.com
10139N/A- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
10139N/A* Thu Jun 29 2006 - laca@sun.com
10139N/A- update postrun scripts
10139N/A* Tue Jun 20 2006 - damien.carbery@sun.com
10139N/A- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
10139N/A* Mon Jun 12 2006 - dave.lin@sun.com
10139N/A- changed to let firefox use nss,nspr in /usr/lib/mps required by ARC
10139N/A- remove -R%{_libdir}
10139N/A* Sun Jun 11 2006 - laca@sun.com
10139N/A- change group from other to bin/sys
10139N/A* Fri Jun 09 2006 - damien.carbery@sun.com
10139N/A- Uncomment man page lines in %files.
10139N/A* Thu Jun 08 2006 - dave.lin@sun.com
10139N/A- add man page prepared by Leon Sha
10139N/A* Thu Apr 13 2006 - dave.lin@sun.com
10139N/A- changed installation location from "/usr/sfw/lib" to "/usr/lib"
10139N/A* Fri Feb 24 2006 - dave.lin@sun.com
10139N/A- Changed package category to FIREFOX
10139N/A- Improved preremove script, using ${BASEDIR} instead of absolute path
10139N/A* Mon Feb 20 2006 - damien.carbery@sun.com
10139N/A- Update Build/Requires after running check-deps.pl script.
10139N/A* Thu Jan 19 2006 - damien.carbery@sun.com
10139N/A- Add BuildRequires SUNWgnome-base-libs-devel.
10139N/A* Sat Dec 3 2005 - laca@sun.com
10139N/A- add %post script that runs update-desktop-database
10139N/A* Fri Dec 02 2005 - damien.carbery@sun.com
10139N/A- Add .autoreg file introduced in 1.5.
10139N/A* Mon Oct 31 2005 - laca@sun.com
10139N/A- Merge share pkgs into base
10139N/A* Mon Oct 24 2005 - damien.carbery@sun.com
10139N/A- Add BuildRequires SUNWgtar because source tarball needs GNU tar.
10139N/A* Mon Sep 26 2005 - halton.huo@sun.com
10139N/A- Change version same with linux verion.
10139N/A* Fri Sep 02 2005 - damien.carbery@sun.com
10139N/A- Correct ownership of %{_libdir}/pkgconfig directory.
10139N/A* Fri Aug 26 2005 - dave.lin@sun.com
10139N/A- initial version of the spec file created
16401N/A
19195N/A
19512N/A