SUNWfirefox.spec revision 19142
10139N/A#
10139N/A# spec file for package SUNWfirefox
10139N/A#
10139N/A# includes module(s): firefox
10139N/A#
16307N/A# Copyright 2009 Sun Microsystems, Inc.
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#
17185N/A%define owner davelam
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
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
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
19142N/A%include gnome-consolidation.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
13898N/ARequires: SUNWpr
16277N/ABuildRequires: SUNWprd
14376N/ARequires: SUNWtls
16277N/ABuildRequires: SUNWtlsd
13898N/A%endif
10139N/A
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
19142N/A%include gnome-consolidation.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
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"
17811N/Aexport CFLAGS="-xlibmopt"
19078N/A%if %option_with_debug
18573N/Aexport CXXFLAGS="-xlibmil -xlibmopt -lCrun -lCstd -features=tmplrefstatic"
19078N/A%else
19078N/Aexport CXXFLAGS="-DNDEBUG -xlibmil -xlibmopt -lCrun -lCstd -features=tmplrefstatic"
19078N/A%endif
10139N/A
10139N/A%firefox.build -d %name-%version
10139N/A
10139N/A%install
10139N/A%firefox.install -d %name-%version
10139N/A
14376N/A# create file list for SUNWfirefox to separate .autoreg(marked as 'v')
10139N/Acd $RPM_BUILD_ROOT%{_libdir}
17811N/Afind %{firefox.name} ! -type d | egrep -v "(\.autoreg|xpidl|xpt_dump|xpt_link)" | \
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
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
14421N/A
14414N/APKGCOND=/usr/bin/pkgcond
14414N/Atest -x $PKGCOND || exit 0
14414N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
14421N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
14421N/A
14414N/A for f in components/compreg.dat components/xpti.dat; do
14414N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
14414N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
14414N/A done
14414N/Afi
14414N/Aexit 0
14414N/A
10139N/A%postun
16307N/A%restart_fmri desktop-mime-cache || exit 1
10139N/A
14376N/APKGCOND=/usr/bin/pkgcond
14376N/Atest -x $PKGCOND || exit 0
14376N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
14414N/A for f in components/compreg.dat components/xpti.dat; do
14414N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
14414N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
14414N/A done
14376N/Afi
14376N/Aexit 0
13898N/A
16554N/A%if %option_with_apoc_adapter
10330N/A%post apoc-adapter
10330N/APKGCOND=/usr/bin/pkgcond
10330N/Atest -x $PKGCOND || exit 0
13898N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
13898N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
14421N/A
14421N/A for f in components/compreg.dat components/xpti.dat; do
14421N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
14421N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
14421N/A done
10330N/Afi
14414N/Aexit 0
10330N/A
10330N/A%postun apoc-adapter
10330N/APKGCOND=/usr/bin/pkgcond
10330N/Atest -x $PKGCOND || exit 0
13898N/Aif $PKGCOND is_path_writable $BASEDIR/lib/%{firefox.name} > /dev/null 2>&1 ; then
13898N/A touch $BASEDIR/lib/%{firefox.name}/.autoreg
14421N/A
14421N/A for f in components/compreg.dat components/xpti.dat; do
14421N/A test -f $BASEDIR/lib/%{firefox.name}/$f && \
14421N/A rm -f $BASEDIR/lib/%{firefox.name}/$f
14421N/A done
10330N/Afi
14414N/Aexit 0
11096N/A
10330N/A%endif
10330N/A
10139N/A%files -f SUNWfirefox.list
10139N/A
17811N/A%doc -d firefox/mozilla-1.9.2 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}
13898N/A%ghost %{_libdir}/%{firefox.name}/.autoreg
10139N/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
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
13898N/A%{_libdir}/firefox/xpt_dump
13898N/A%{_libdir}/firefox/xpt_link
10139N/A
10139N/A%changelog
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