SUNWfirefox.spec revision 18688
18778N/A#
18790N/A# spec file for package SUNWfirefox
18778N/A#
18778N/A# includes module(s): firefox
18790N/A#
18790N/A# Copyright 2009 Sun Microsystems, Inc.
18790N/A# This file and all modifications and additions to the pristine
18790N/A# package are under the same license as the package itself.
18790N/A#
18778N/A%define owner davelam
18790N/A#
18790N/A# DO NOT REMOVE NEXT LINE
18790N/A# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
18778N/A#
18790N/A%include Solaris.inc
18790N/A%use firefox = firefox.spec
18790N/A
18790N/A#####################################
18790N/A## Package Information Section ##
18790N/A#####################################
18790N/A
18778N/AName: SUNWfirefox
18778N/AIPS_package_name: web/browser/firefox
18778N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
18778N/ASummary: Mozilla Firefox Web browser
18778N/AVersion: %{firefox.version}
18778N/ASource: %{name}-manpages-0.1.tar.gz
18778N/ASUNW_BaseDir: %{_basedir}
18778N/ASUNW_Category: FIREFOX,application,%{jds_version}
18778N/ASUNW_Copyright:%{name}.copyright
18778N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18778N/A
18778N/A#####################################
19033N/A## Package Requirements Section ##
19033N/A#####################################
19033N/A
19033N/A%include default-depend.inc
19033N/ARequires: SUNWlibC
19033N/ARequires: SUNWlibms
19033N/ARequires: SUNWbash
19033N/ARequires: SUNWgtk2
19033N/ABuildRequires: SUNWgtk2-devel
19033N/ABuildRequires: SUNWgnome-component-devel
19033N/ARequires: SUNWfontconfig
19033N/ARequires: SUNWfreetype2
19033N/ARequires: SUNWgnome-config
19033N/ABuildRequires: SUNWgnome-config-devel
19033N/ARequires: SUNWgnome-libs
19033N/ABuildRequires: SUNWgnome-libs-devel
19033N/ARequires: SUNWgnome-vfs
19033N/ABuildRequires: SUNWgnome-vfs-devel
19033N/ARequires: SUNWzlib
19033N/ABuildRequires: SUNWzlib
19033N/ARequires: SUNWlibtheora
19033N/ABuildRequires: SUNWlibtheora
19033N/ARequires: SUNWogg-vorbis
19033N/ABuildRequires: SUNWogg-vorbis
19033N/ARequires: SUNWsqlite3
19033N/ABuildRequires: SUNWsqlite3
19033N/ARequires: SUNWlibnotify
19033N/ABuildRequires: SUNWlibnotify
18778N/ARequires: SUNWdbus-glib
18778N/ABuildRequires: SUNWdbus-glib
18778N/ARequires: SUNWdbus-libs
18778N/ABuildRequires: SUNWdbus-libs
18778N/ARequires: SUNWlibffi
18778N/ABuildRequires: SUNWlibffi
18778N/ABuildRequires: SUNWzip
18778N/ABuildRequires: SUNWgtar
18778N/ABuildRequires: SUNWbzip
18778N/A#%if %option_with_indiana_branding
18778N/A# comment this out until I can find where to get it
18778N/A# to install it on the build machines
18778N/A#Requires: SUNWgetting-started-guide
18778N/A#%endif
18778N/A%if %option_without_moz_nss_nspr
18778N/ARequires: SUNWpr
18778N/ABuildRequires: SUNWprd
18778N/ARequires: SUNWtls
18778N/ABuildRequires: SUNWtlsd
18778N/A%endif
18778N/A
18778N/A#####################################
18778N/A## Package Description Section ##
19033N/A#####################################
19033N/A
19033N/A%package devel
19033N/ASummary: %{summary} - development files
19033N/ASUNW_BaseDir: %{_basedir}
19033N/A%include default-depend.inc
19033N/ARequires: %{name}
19033N/A
19033N/A#####################################
19033N/A## Package Preparation Section ##
19033N/A#####################################
19033N/A
19033N/A%prep
19033N/Arm -rf %name-%version
19033N/Amkdir -p %name-%version
19033N/A%firefox.prep -d %name-%version
19033N/Acd %{_builddir}/%name-%version
19033N/Agzcat %SOURCE0 | tar xf -
19033N/A
19033N/A#####################################
19033N/A## Package Build Section ##
19033N/A#####################################
19033N/A
19033N/A%build
19033N/Aexport PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
19033N/Aexport LDFLAGS="-B direct -z ignore"
19033N/Aexport CFLAGS="-xlibmopt"
19033N/Aexport CXXFLAGS="-xlibmil -xlibmopt -lCrun -lCstd -features=tmplrefstatic"
19033N/A
19033N/A%firefox.build -d %name-%version
19033N/A
19033N/A%install
19033N/A%firefox.install -d %name-%version
19033N/A
19033N/A# create file list for SUNWfirefox to separate .autoreg(marked as 'v')
19033N/Acd $RPM_BUILD_ROOT%{_libdir}
18778N/Afind %{firefox.name} ! -type d | egrep -v "(\.autoreg|xpidl|xpt_dump|xpt_link)" | \
18778N/A sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
18778N/A > %{_builddir}/%name-%version/%{name}.list
18778N/A
18778N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
18778N/Acd %{_builddir}/%name-%version/sun-manpages
18778N/Amake install DESTDIR=$RPM_BUILD_ROOT
18778N/A
19033N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
18778N/A
18778N/A%clean
18778N/Arm -rf $RPM_BUILD_ROOT
18778N/A
18778N/A#########################################
18778N/A## Package Post[Un] Install Section ##
18778N/A#########################################
18778N/A
19033N/A%post
19033N/A%restart_fmri desktop-mime-cache || exit 1
19033N/A
18778N/APKGCOND=/usr/bin/pkgcond
18778N/Atest -x $PKGCOND || exit 0
18778N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
18778N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
18778N/A
18778N/A for f in components/compreg.dat components/xpti.dat; do
18778N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
18778N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
18778N/A done
18778N/Afi
18778N/Aexit 0
18778N/A
18778N/A%postun
18778N/A%restart_fmri desktop-mime-cache || exit 1
18778N/A
18778N/APKGCOND=/usr/bin/pkgcond
18778N/Atest -x $PKGCOND || exit 0
18778N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
18778N/A for f in components/compreg.dat components/xpti.dat; do
18778N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
18778N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
18778N/A done
18778N/Afi
18778N/Aexit 0
18778N/A
19033N/A%if %option_with_apoc_adapter
18778N/A%post apoc-adapter
18778N/APKGCOND=/usr/bin/pkgcond
18778N/Atest -x $PKGCOND || exit 0
18778N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
18778N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
18778N/A
18778N/A for f in components/compreg.dat components/xpti.dat; do
18778N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
18778N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
18778N/A done
18778N/Afi
18778N/Aexit 0
18778N/A
18778N/A%postun apoc-adapter
18778N/APKGCOND=/usr/bin/pkgcond
18778N/Atest -x $PKGCOND || exit 0
18778N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
18778N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
18778N/A
18778N/A for f in components/compreg.dat components/xpti.dat; do
18778N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
18778N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
18778N/A done
18778N/Afi
18778N/Aexit 0
18778N/A
18778N/A%endif
18778N/A
18778N/A%files -f SUNWfirefox.list
18778N/A
18778N/A%doc -d firefox/mozilla-1.9.2 README.txt LICENSE
18778N/A%dir %attr (0755, root, other) %{_datadir}/doc
18778N/A
18778N/A%defattr(-, root, bin)
18778N/A%dir %attr (0755, root, bin) %{_bindir}
18778N/A%{_bindir}/firefox
18778N/A%dir %attr (0755, root, bin) %{_libdir}
18778N/A%ghost %{_libdir}/%{firefox.name}/.autoreg
18778N/A
18778N/A%dir %attr (0755, root, sys) %{_datadir}
18778N/A%dir %attr (0755, root, other) %{_datadir}/applications
18778N/A%{_datadir}/applications/firefox.desktop
19033N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
18778N/A%{_datadir}/pixmaps/firefox-icon.png
18778N/A%dir %attr (0755, root, bin) %{_mandir}
18778N/A%dir %attr (0755, root, bin) %{_mandir}/man1
18778N/A%{_mandir}/man1/*
18778N/A
18778N/A%files devel
18778N/A%defattr(-, root, bin)
18778N/A%dir %attr (0755, root, bin) %{_includedir}
18778N/A%{_includedir}/%{firefox.name}
18778N/A%dir %attr (0755, root, sys) %{_datadir}
18778N/A%{_datadir}/idl/%{firefox.name}
18778N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
19033N/A%{_libdir}/pkgconfig/*
18778N/A%{_libdir}/firefox/xpidl
18778N/A%{_libdir}/firefox/xpt_dump
18778N/A%{_libdir}/firefox/xpt_link
18778N/A
18778N/A%changelog
18778N/A* Thu Mar 04 2010 - brian.lu@sun.com
18778N/A- Add Requires: SUNWdbus-glib
18778N/A BuildRequires: SUNWdbus-glib
18778N/A Requires: SUNWdbus-libs
18778N/A BuildRequires: SUNWdbus-libs
18778N/A* Sun Dec 7 2009 - christian.kelly@sun.com
18778N/A- Add BuildRequires SUNWlibxml2-python26.
18778N/A* Wed Nov 26 2009 - ginn.chen@sun.com
18778N/A- Update for Firefox 3.6.
18778N/A* Thu Jun 11 2009 - brian.lu@sun.com
18778N/A- Add '-B direct' option
18778N/A* Mon May 25 2009 - ginn.chen@sun.com
18778N/A- Add SUNWlibtheora and SUNWogg-vorbis to dependency.
19033N/A- Comment out dependency of SUNWsqlite3 until we use that.
18778N/A* Fri Apr 3 2009 - laca@sun.com
18778N/A- use desktop-cache instead of postrun
18778N/A* Mon Mar 30 2009 - ginn.chen@sun.com
18778N/A- Correction for build dependency of nss, nspr.
18778N/A* Mon Mar 23 2009 - jeff.cai@sun.com
18778N/A- Since /usr/lib/firefox/firefox (SUNWfirefox) requires /usr/bin/bash which is
18778N/A found in SUNWbash, add the dependency
18778N/A* Tue Feb 10 2009 - dave.lin@sun.com
19033N/A- Enable apoc adapter as default.
19033N/A* Wed Sep 17 2008 - ginn.chen@sun.com
19033N/A- Remove /usr/lib/firefox/components/compreg.dat and /usr/lib/firefox/components/xpti.dat in postinstall and postremove
19033N/A- Touch /usr/lib/firefox/.autoreg in postinstall
18778N/A- Remove staroffice-mime.types.in, staroffice-mailcap.in
18778N/A* Tue Aug 19 2008 - ginn.chen@sun.com
18778N/A- Remove -xldscope=symbolic in CFLAGS, CXXFLAGS, use -xldscope=hidden in libpixman Makefile.in instead
18778N/A* Mon Aug 18 2008 - dave.lin@sun.com
18778N/A- Rename SUNWfirefox3.spec to SUNWfirefox.spec since FF2 has been replaced by FF3 in Nevada and OS for several builds
19033N/A* Fri Aug 15 2008 - dave.lin@sun.com
19033N/A- add -xldscope=symbolic in CFLAGS, CXXFLAGS to fix the cairo crash issue per Brian's request
19033N/A* Thu Jul 17 2008 - dave.lin@sun.com
18778N/A- Removed the unnecessary dependency SUNWsolaris-devel-docs(CR6700877),
18778N/A SUNWfirefox.
19033N/A* Thu May 22 2008 - dave.lin@sun.com
19033N/A- Change to build pkg only if "--with-ff3" is specified, otherwise build nothing
18778N/A- change to build as "SUNWfirefox" and as default browser
19033N/A* Fri May 16 2008 - damien.carbery@sun.com
19033N/A- Disable creation of symlink for firefox 3. This means that ff2 is left as
19033N/A default browser.
19033N/A* Thu Mar 13 2008 - damien.carbery@sun.com
19033N/A- Add -I/usr/X11/include to CFLAGS after update of SUNWwinc.
18778N/A* Mon Feb 25 2008 - alfred.peng@sun.com
18778N/A- Add "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" in CXXFLAGS to fix CR#6516110
18778N/A* Thu Feb 21 2008 - damien.carbery@sun.com
18778N/A- Rename SUNWsqlite dependency to SUNWsqlite3 to match pkg from SFW.
18778N/A* Wed Jan 09 2008 - dave.lin@sun.com
18778N/A- renamed FF 3 spec to *firefox3 to let FF 3 coexist with FF 2
18778N/A* Fri Dec 28 2007 - dave.lin@sun.com
18778N/A- deliver .autoreg no matter apoc enabled or not
18778N/A* Thu Dec 27 2007 - dave.lin@sun.com
18778N/A- move to 3.0 beta2
18778N/A- set not building apoc adapter as default
18778N/A- remove SUNWfirefox-root pkg
18778N/A- disable apoc adapter since it's not available for 3.0
18778N/A* Thu Dec 27 2007 - dave.lin@sun.com
18778N/A- set no apoc-adapter as default
18778N/A* Sat Oct 20 2007 - laca@sun.com
18778N/A- add indiana getting started guide dependency
18778N/A* Fri Oct 12 2007 - laca@sun.com
18778N/A- add /usr/X11/include to CFLAGS if built with FOX
18778N/A* Fri Sep 28 2007 - laca@sun.com
18778N/A- delete Nevada X deps
18778N/A- disable developer guide dep if sun branding is not requested
18778N/A* Tue Aug 21 2007 - dave.lin@sun.com
18778N/A- made postremove/postinstall script more robust(CR#6594606)
18778N/A* Tue Apr 24 2007 - laca@sun.com
18778N/A- s/0755/-/ in defattr so that files are not made all executable
18778N/A* Tue Apr 10 2007 - dave.lin@sun.com
18778N/A- remove dependency on SUNWstaroffice-menuintegration from SUNWfirefox-root
18778N/A since it caused CR#6530982 fixed failed(see details in bugster)
19033N/A* Mon Mar 26 2007 - dave.lin@sun.com
19033N/A- add new package SUNWfirefox-root to fix bug CR#6530982, the package
19033N/A would just add staroffice entries in /etc/mime.types /etc/mailcap
18778N/A in postinstall
18778N/A* Tue Mar 20 2007 - dave.lin@sun.com
18778N/A- fix bug CR#6521792
18778N/A part1: add file ".autoreg" and add postinstall/postremove scripts in
18778N/A SUNWfirefox-apoc-adapter
18778N/A part2: add patch firefox-12-regenerate-compreg-file.diff
18778N/A* Thu Dec 28 2006 - dave.lin@sun.com
18778N/A- remove %preun to fix bug CR#6502253
18778N/A* Fri Dec 8 2006 - laca@sun.com
18778N/A- add SUNWsolaris-devel-docs dependency
18778N/A* Tue Nov 28 2006 - dave.lin@sun.com
18778N/A- add %if %with_apoc_adapter to conditinoally disable apoc adapter,
19033N/A default: enable apoc adapter, use --without-apoc-adapter to disable it
19033N/A* Mon Nov 27 - dave.lin@sun.com
19033N/A- enable apoc adapter(SUNWfirefox-apoc-adapter), CR#6478680
18778N/A* Tue Sep 05 2006 - Matt.Keenan@sun.com
18778N/A- New Manpage tarball
18778N/A* Thu Jul 27 2006 - damien.carbery@sun.com
18778N/A- Remove 'aclocal' dir from %files as it is now empty.
18778N/A* Fri Jul 14 2006 - laca@sun.com
18778N/A- update %post/%postun/etc scripts to support diskless client setup,
18778N/A part of 6448317
18778N/A* Thu Jul 13 2006 - dave.lin@sun.com
18778N/A- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
18778N/A* Thu Jun 29 2006 - laca@sun.com
18778N/A- update postrun scripts
18778N/A* Tue Jun 20 2006 - damien.carbery@sun.com
18778N/A- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
18778N/A* Mon Jun 12 2006 - dave.lin@sun.com
18778N/A- changed to let firefox use nss,nspr in /usr/lib/mps required by ARC
18778N/A- remove -R%{_libdir}
18778N/A* Sun Jun 11 2006 - laca@sun.com
18778N/A- change group from other to bin/sys
19033N/A* 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