SUNWfirefox.spec revision 20818
10139N/A#
10139N/A# spec file for package SUNWfirefox
10139N/A#
10139N/A# includes module(s): firefox
10139N/A#
10139N/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
12172N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner ginnchen
10139N/A#
10139N/A# DO NOT REMOVE NEXT LINE
11251N/A# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
10139N/A#
10139N/A%include Solaris.inc
10139N/A%use firefox = firefox.spec
10139N/A
11251N/A#####################################
10139N/A## Package Information Section ##
10139N/A#####################################
10139N/A
10139N/AName: SUNWfirefox
10139N/AIPS_package_name: web/browser/firefox
10139N/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
10139N/ASUNW_BaseDir: %{_basedir}
10139N/ASUNW_Category: FIREFOX,application,%{jds_version}
10139N/ASUNW_Copyright:%{name}.copyright
10139N/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
10139N/A%include gnome-consolidation.inc
10139N/ARequires: SUNWlibC
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWbash
10139N/ARequires: SUNWgtk2
10139N/ABuildRequires: SUNWgtk2-devel
10139N/ABuildRequires: SUNWgnome-component-devel
10139N/ABuildRequires: SUNWaudh
10139N/ARequires: SUNWfontconfig
10139N/ARequires: SUNWfreetype2
10139N/ARequires: SUNWgnome-config
10139N/ABuildRequires: SUNWgnome-config-devel
10139N/ARequires: SUNWgnome-libs
10139N/ABuildRequires: SUNWgnome-libs-devel
10139N/ARequires: SUNWgnome-vfs
10139N/ABuildRequires: SUNWgnome-vfs-devel
10139N/ARequires: SUNWzlib
10139N/ABuildRequires: SUNWzlib
10139N/ARequires: SUNWlibtheora
10318N/ABuildRequires: SUNWlibtheora
10318N/ARequires: SUNWogg-vorbis
10318N/ABuildRequires: SUNWogg-vorbis
10318N/ARequires: SUNWsqlite3
10139N/ABuildRequires: SUNWsqlite3
10318N/ARequires: SUNWlibnotify
10318N/ABuildRequires: SUNWlibnotify
10139N/ARequires: SUNWdbus-glib
10139N/ABuildRequires: SUNWdbus-glib
10139N/ARequires: SUNWdbus-libs
10139N/ABuildRequires: SUNWdbus-libs
10139N/ARequires: SUNWlibffi
10139N/ABuildRequires: SUNWlibffi
10139N/ARequires: SUNWdbus
10139N/ABuildRequires: SUNWdbus
10139N/ABuildRequires: SUNWzip
10139N/ABuildRequires: SUNWgtar
10139N/ABuildRequires: SUNWbzip
10139N/A#%if %option_with_indiana_branding
10139N/A# comment this out until I can find where to get it
10139N/A# to install it on the build machines
10139N/A#Requires: SUNWgetting-started-guide
10139N/A#%endif
10139N/A%if %option_without_moz_nss_nspr
10139N/ARequires: SUNWpr
10139N/ABuildRequires: SUNWprd
10139N/ARequires: SUNWtls
10139N/ABuildRequires: SUNWtlsd
10139N/A%endif
10139N/ABuildRequires: SUNWxorg-mesa
10139N/ABuildRequires: x11/library/libxscrnsaver
10139N/A#####################################
10139N/A## Package Description Section ##
10139N/A#####################################
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
12172N/ASUNW_BaseDir: %{_basedir}
12172N/A%include default-depend.inc
11251N/A%include gnome-consolidation.inc
11251N/ARequires: %{name}
10972N/A
10972N/A#####################################
10746N/A## Package Preparation Section ##
10746N/A#####################################
10605N/A
10605N/A%prep
10553N/Arm -rf %name-%version
10553N/Amkdir -p %name-%version
10318N/A%firefox.prep -d %name-%version
10318N/Acd %{_builddir}/%name-%version
10307N/Agzcat %SOURCE0 | tar xf -
10307N/A
10264N/A#####################################
10264N/A## Package Build Section ##
10139N/A#####################################
10139N/A
10139N/A%build
10139N/Aexport PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
10139N/Aexport LDFLAGS="-B direct -z ignore"
10139N/Aexport CFLAGS="-xlibmopt"
10139N/Aexport OS_DEFINES="-D__USE_LEGACY_PROTOTYPES__"
10139N/Aexport CXXFLAGS="-xlibmil -xlibmopt -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
10139N/A
10139N/A%firefox.build -d %name-%version
10139N/A
10139N/A%install
10139N/A%firefox.install -d %name-%version
10139N/A
10139N/A# create file list for SUNWfirefox to separate xpidl|xpt_dump|xpt_link
10139N/Acd $RPM_BUILD_ROOT%{_libdir}
10139N/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
10139N/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
10139N/A# re-sign these libraries after post process
10139N/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
10139N/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
10139N/A
10139N/A%ifarch sparc
10139N/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
10139N/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
10139N/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
10139N/A%else
10139N/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
10139N/A%endif
10139N/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
10139N/A%post
10139N/A%restart_fmri desktop-mime-cache || exit 1
10139N/Aexit 0
10139N/A
10139N/A%postun
10139N/A%restart_fmri desktop-mime-cache || exit 1
10139N/Aexit 0
10139N/A
10139N/A%files -f SUNWfirefox.list
10139N/A
10139N/A%doc -d firefox/mozilla-release README.txt LICENSE
10139N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A
10139N/A%defattr(-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/firefox
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libsoftokn3.so
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libnssdbm3.so
10139N/A%ifarch sparc
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32int_3.so
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32fpu_3.so
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl_32int64_3.so
10139N/A%else
10139N/A%ips_tag(com.oracle.elfsign=false) %{_libdir}/firefox/libfreebl3.so
10139N/A%endif
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
%dir %attr (0755, root, bin) %{_mandir}
%dir %attr (0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%files devel
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/%{firefox.name}
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/idl/%{firefox.name}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%{_libdir}/firefox/xpidl
%{_libdir}/firefox/xpt_dump
%{_libdir}/firefox/xpt_link
%changelog
* Tue Jul 26 2011 - ginn.chen@oracle.com
- Fix CR 7071032.
* Tue Jul 12 2011 - ginn.chen@oracle.com
- Update to Firefox 5.0.
* Thu Jun 09 2011 - ginn.chen@oracle.com
- Add -D__USE_LEGACY_PROTOTYPES__ to make it compile on snv_166.
* Fri Apr 29 2011 - ginn.chen@oracle.com
- Update to Firefox 4.0.1.
* Mon Nov 08 2010 - brian.lu@oracle.com
- Add "License" tag
* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
- Updated BuildRequires to fit SourceJuicer.
* Thu Mar 04 2010 - brian.lu@sun.com
- Add Requires: SUNWdbus-glib
BuildRequires: SUNWdbus-glib
Requires: SUNWdbus-libs
BuildRequires: SUNWdbus-libs
* Sun Dec 7 2009 - christian.kelly@sun.com
- Add BuildRequires SUNWlibxml2-python26.
* Wed Nov 26 2009 - ginn.chen@sun.com
- Update for Firefox 3.6.
* Thu Jun 11 2009 - brian.lu@sun.com
- Add '-B direct' option
* Mon May 25 2009 - ginn.chen@sun.com
- Add SUNWlibtheora and SUNWogg-vorbis to dependency.
- Comment out dependency of SUNWsqlite3 until we use that.
* Fri Apr 3 2009 - laca@sun.com
- use desktop-cache instead of postrun
* Mon Mar 30 2009 - ginn.chen@sun.com
- Correction for build dependency of nss, nspr.
* Mon Mar 23 2009 - jeff.cai@sun.com
- Since /usr/lib/firefox/firefox (SUNWfirefox) requires /usr/bin/bash which is
found in SUNWbash, add the dependency
* Tue Feb 10 2009 - dave.lin@sun.com
- Enable apoc adapter as default.
* Wed Sep 17 2008 - ginn.chen@sun.com
- Remove /usr/lib/firefox/components/compreg.dat and /usr/lib/firefox/components/xpti.dat in postinstall and postremove
- Touch /usr/lib/firefox/.autoreg in postinstall
- Remove staroffice-mime.types.in, staroffice-mailcap.in
* Tue Aug 19 2008 - ginn.chen@sun.com
- Remove -xldscope=symbolic in CFLAGS, CXXFLAGS, use -xldscope=hidden in libpixman Makefile.in instead
* Mon Aug 18 2008 - dave.lin@sun.com
- Rename SUNWfirefox3.spec to SUNWfirefox.spec since FF2 has been replaced by FF3 in Nevada and OS for several builds
* Fri Aug 15 2008 - dave.lin@sun.com
- add -xldscope=symbolic in CFLAGS, CXXFLAGS to fix the cairo crash issue per Brian's request
* 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
- Add -I/usr/X11/include to CFLAGS after update of SUNWwinc.
* 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
- disable apoc adapter since it's not available for 3.0
* Thu Dec 27 2007 - dave.lin@sun.com
- set no apoc-adapter as default
* Sat Oct 20 2007 - laca@sun.com
- add indiana getting started guide dependency
* Fri Oct 12 2007 - laca@sun.com
- add /usr/X11/include to CFLAGS if built with FOX
* Fri Sep 28 2007 - laca@sun.com
- delete Nevada X deps
- disable developer guide dep if sun branding is not requested
* Tue Aug 21 2007 - dave.lin@sun.com
- made postremove/postinstall script more robust(CR#6594606)
* Tue Apr 24 2007 - laca@sun.com
- s/0755/-/ in defattr so that files are not made all executable
* Tue Apr 10 2007 - dave.lin@sun.com
- remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root
since it caused CR#6530982 fixed failed(see details in bugster)
* Mon Mar 26 2007 - dave.lin@sun.com
- add new package SUNWfirefox-root to fix bug CR#6530982, the package
would just add staroffice entries in /etc/mime.types /etc/mailcap
in postinstall
* Tue Mar 20 2007 - dave.lin@sun.com
- fix bug CR#6521792
part1: add file ".autoreg" and add postinstall/postremove scripts in
SUNWfirefox-apoc-adapter
part2: add patch firefox-12-regenerate-compreg-file.diff
* Thu Dec 28 2006 - dave.lin@sun.com
- remove %preun to fix bug CR#6502253
* Fri Dec 8 2006 - laca@sun.com
- add SUNWsolaris-devel-docs dependency
* Tue Nov 28 2006 - dave.lin@sun.com
- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
default: enable apoc adapter, use --without-apoc-adapter to disable it
* Mon Nov 27 - dave.lin@sun.com
- enable apoc adapter(SUNWfirefox-apoc-adapter), CR#6478680
* Tue Sep 05 2006 - Matt.Keenan@sun.com
- New Manpage tarball
* Thu Jul 27 2006 - damien.carbery@sun.com
- Remove 'aclocal' dir from %files as it is now empty.
* Fri Jul 14 2006 - laca@sun.com
- update %post/%postun/etc scripts to support diskless client setup,
part of 6448317
* Thu Jul 13 2006 - dave.lin@sun.com
- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
* Thu Jun 29 2006 - laca@sun.com
- update postrun scripts
* Tue Jun 20 2006 - damien.carbery@sun.com
- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
* Mon Jun 12 2006 - dave.lin@sun.com
- changed to let firefox use nss,nspr in /usr/lib/mps required by ARC
- remove -R%{_libdir}
* Sun Jun 11 2006 - laca@sun.com
- change group from other to bin/sys
* Fri Jun 09 2006 - damien.carbery@sun.com
- Uncomment man page lines in %files.
* Thu Jun 08 2006 - dave.lin@sun.com
- add man page prepared by Leon Sha
* Thu Apr 13 2006 - dave.lin@sun.com
- changed installation location from "/usr/sfw/lib" to "/usr/lib"
* Fri Feb 24 2006 - dave.lin@sun.com
- Changed package category to FIREFOX
- Improved preremove script, using ${BASEDIR} instead of absolute path
* Mon Feb 20 2006 - damien.carbery@sun.com
- Update Build/Requires after running check-deps.pl script.
* Thu Jan 19 2006 - damien.carbery@sun.com
- Add BuildRequires SUNWgnome-base-libs-devel.
* Sat Dec 3 2005 - laca@sun.com
- add %post script that runs update-desktop-database
* Fri Dec 02 2005 - damien.carbery@sun.com
- Add .autoreg file introduced in 1.5.
* Mon Oct 31 2005 - laca@sun.com
- Merge share pkgs into base
* Mon Oct 24 2005 - damien.carbery@sun.com
- Add BuildRequires SUNWgtar because source tarball needs GNU tar.
* Mon Sep 26 2005 - halton.huo@sun.com
- Change version same with linux verion.
* Fri Sep 02 2005 - damien.carbery@sun.com
- Correct ownership of %{_libdir}/pkgconfig directory.
* Fri Aug 26 2005 - dave.lin@sun.com
- initial version of the spec file created