SUNWthunderbird.spec revision 19142
10139N/A#
10139N/A# spec file for package SUNWthunderbird
10139N/A#
11089N/A# includes module(s): thunderbird
10139N/A#
10139N/A# Copyright 2009 Sun Microsystems, Inc.
16307N/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#
10139N/A%define owner davelam
17185N/A#
10139N/A# DO NOT REMOVE NEXT LINE
10139N/A# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
11089N/A#
10139N/A%include Solaris.inc
10139N/A%use thunderbird = thunderbird.spec
10139N/A
10139N/A#####################################
10139N/A## Package Information Section ##
10139N/A#####################################
10139N/A
10139N/AName: SUNWthunderbird
18688N/AIPS_package_name: mail/thunderbird
18688N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
10139N/ASummary: Mozilla Thunderbird Email/Newsgroup Client
10139N/AVersion: %{thunderbird.version}
10139N/ASource: %{name}-manpages-0.1.tar.gz
10139N/ASUNW_BaseDir: %{_basedir}
12675N/ASUNW_Category: THUNDERBIRD,application,%{jds_version}
19094N/ASUNW_Copyright:%{name}.copyright
10139N/ALicense: MOZILLA PUBLIC LICENSE V1.1
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
16401N/A#####################################
10139N/A## Package Requirements Section ##
10139N/A#####################################
10139N/A
10139N/A%include default-depend.inc
10654N/A%include gnome-consolidation.inc
10139N/ABuildRequires: SUNWgnome-component-devel
10139N/ARequires: SUNWgtk2
10139N/ABuildRequires: SUNWgtk2-devel
10139N/ARequires: SUNWglib2
10139N/ABuildRequires: SUNWglib2-devel
10139N/ARequires: SUNWdbus-glib
10139N/ARequires: SUNWdbus-libs
10139N/ABuildRequires: SUNWdbus-glib
10139N/ABuildRequires: SUNWdbus-libs
10139N/ABuildRequires: SUNWdbus-devel
16307N/ARequires: SUNWlibtheora
11458N/ABuildRequires: SUNWlibtheora-devel
13456N/ARequires: SUNWogg-vorbis
16224N/ABuildRequires: SUNWogg-vorbis-devel
16296N/ARequires: SUNWsqlite3
16401N/ABuildRequires: SUNWsqlite3
10139N/ARequires: SUNWfontconfig
10139N/ABuildRequires: SUNWfontconfig
10139N/ARequires: SUNWfreetype2
10139N/ABuildRequires: SUNWfreetype2
10139N/ARequires: SUNWgnome-config
10654N/ABuildRequires: SUNWgnome-config-devel
10139N/ARequires: SUNWgnome-libs
11458N/ABuildRequires: SUNWgnome-libs-devel
13456N/ARequires: SUNWgnome-vfs
16296N/ABuildRequires: SUNWgnome-vfs-devel
18850N/ARequires: SUNWlibC
10139N/ABuildRequires: SUNWlibC
10139N/ARequires: SUNWlibms
10139N/ABuildRequires: SUNWlibms
10139N/ARequires: SUNWbash
10139N/ABuildRequires: SUNWbash
16307N/ABuildRequires: SUNWzip
10139N/ABuildRequires: SUNWunzip
10139N/ABuildRequires: SUNWgtar
10139N/ABuildRequires: SUNWbzip
10139N/A%if %option_without_moz_nss_nspr
10139N/ARequires: SUNWpr
10139N/ABuildRequires: SUNWprd
10139N/ARequires: SUNWtls
10139N/ABuildRequires: SUNWtlsd
10139N/A%endif
16401N/ABuildRequires: SUNWaudh
10139N/ABuildRequires: SUNWgsed
10139N/ABuildRequires: SUNWlibnotify
10139N/A
10139N/A#####################################
10139N/A## Package Description Section ##
10139N/A#####################################
10139N/A
10139N/A%if %option_with_lightning
10139N/A%package calendar
10139N/AIPS_package_name: mail/thunderbird/plugin/thunderbird-lightning
10139N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
10139N/ASummary: %{summary} - Calendar
10139N/AVersion: %{thunderbird.lightning_version}
10139N/ASUNW_BaseDir: %{_basedir}
11089N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/ARequires: SUNWthunderbird
10139N/A%endif
10139N/A
18226N/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%thunderbird.prep -d %name-%version
10139N/Acd %{_builddir}/%name-%version
18185N/Agzcat %SOURCE0 | tar xf -
11455N/A
11455N/A#####################################
11455N/A## Package Build Section ##
11455N/A#####################################
11455N/A
10139N/A%build
10139N/Aexport PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
10139N/Aexport MSGFMT="/usr/bin/msgfmt"
13470N/Aexport LDFLAGS="-z ignore"
11089N/Aexport CFLAGS="-xlibmopt -I/usr/X11/include"
10139N/A%if %option_with_debug
10139N/Aexport CXXFLAGS="-xlibmil -xlibmopt -lCrun -lCstd -features=tmplrefstatic"
10139N/A%else
10139N/Aexport CXXFLAGS="-DNDEBUG -xlibmil -xlibmopt -lCrun -lCstd -features=tmplrefstatic"
18226N/A%endif
10139N/A
10139N/A%thunderbird.build -d %name-%version
10139N/A
10139N/A%install
10139N/A%thunderbird.install -d %name-%version
11089N/A
10139N/A%if %option_with_lightning
10139N/A# Lightning extension ID
10139N/Aext_id=e2fda1a4-762b-4020-b5ad-a41df1933103
10139N/Aext_id2=calendar-timezones@mozilla.org
18226N/A
10139N/Arm -rf $RPM_BUILD_ROOT/usr/lib/thunderbird/extensions/${ext_id2}
10139N/A
10139N/A# create file list for SUNWthunderbird, SUNWthunderbird-calendar(ie. Lightning)
10139N/Acd $RPM_BUILD_ROOT%{_libdir}
10139N/Afind thunderbird ! -type d | \
10139N/A sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
10139N/A > /tmp/%{name}-full.list
10139N/A
10139N/Agrep -v "${ext_id}" /tmp/%{name}-full.list > \
10139N/A %{_builddir}/%name-%version/%{name}.list
10139N/Agrep "${ext_id}" /tmp/%{name}-full.list > \
10139N/A %{_builddir}/%name-%version/%{name}-calendar.list
10139N/A
10139N/Arm -f /tmp/%{name}-full.list
10139N/A%endif
11089N/A
11089N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
11089N/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
10139N/A%post
16361N/A%restart_fmri desktop-mime-cache
10139N/A
10578N/A%postun
10578N/A%restart_fmri desktop-mime-cache
10503N/A
10503N/A#####################################
10578N/A## Package Files Section ##
10139N/A#####################################
10139N/A
10139N/A%if %option_with_lightning
10578N/A%files -f SUNWthunderbird.list
10578N/A%else
10578N/A%files
10578N/A%endif
10139N/A
10578N/A%doc -d thunderbird/comm-1.9.2/mozilla README.txt LICENSE
10578N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A
10139N/A%defattr(-, root, bin)
14280N/A%dir %attr (0755, root, bin) %{_bindir}
14280N/A%{_bindir}/thunderbird
14280N/A%dir %attr (0755, root, bin) %{_libdir}
14280N/A%dir %attr (0755, root, sys) %{_datadir}
14280N/A%dir %attr (0755, root, other) %{_datadir}/applications
14280N/A%{_datadir}/applications/thunderbird.desktop
14280N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
14280N/A%{_datadir}/pixmaps/thunderbird-icon.png
14280N/A%dir %attr (0755, root, bin) %{_mandir}
14280N/A%dir %attr (0755, root, bin) %{_mandir}/man1
14280N/A%{_mandir}/man1/*
14280N/A
14280N/A%if %option_with_lightning
14280N/A%files calendar -f SUNWthunderbird-calendar.list
14280N/A%defattr(-, root, bin)
14280N/A%dir %attr (0755, root, bin) %{_libdir}
14280N/A%endif
14280N/A
14280N/A%changelog
14280N/A* Mon Nov 08 2010 - brian.lu@oracle.com
14280N/A- Add 'License' tag
14280N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
14280N/A- Updated BuildRequires to fit SourceJuicer.
14280N/A* Tue Jan 12 2009 - brian.lu@sun.com
14280N/A- Remove calendar-timezones extension
14280N/A* Mon Jan 04 2009 - ginn.chen@sun.com
14280N/A- Do not ship calendar-timezones extension, it was not used.
14280N/A* Fri Dec 18 2009 - ginn.chen@sun.com
14280N/A- Move calendar-timezones extensions to SUNWthunderbird-calendar.
14280N/A* Mon May 25 2009 - ginn.chen@sun.com
14280N/A- Move --without-lightning to options.inc.
14280N/A* Fri Apr 3 2009 - laca@sun.com
14280N/A- use desktop-cache instead of postrun
14280N/A* Mon Mar 23 2009 - jeff.cai@sun.com
14280N/A- Since /usr/lib/thunderbird/thunderbird (SUNWthunderbird) requires
14280N/A /usr/bin/bash which is found in SUNWbash, add the dependency.
14280N/A* Thu Sep 19 2008 - brian.lu@sun.com
14280N/A- add %doc section to generate new copyright files
18224N/A* Thu Apr 24 2008 - brian.lu@sun.com
14280N/A- remove wcap-enable.xpi because WCAP is already part of lightning 0.8
10522N/A* Fri Oct 12 2007 - laca@sun.com
10139N/A- add /usr/X11/include to CFLAGS/CXXFLAGS if built with FOX
11089N/A* Tue Apr 24 2007 - laca@sun.com
11089N/A- s/0755/-/ in defattr so that files are not made all executable
11089N/A* Sat Mar 03 2007 - dave.lin@sun.com
11089N/A- enable WCAP in lightning
11089N/A* Fri Jan 26 2007 - dave.lin@sun.com
11089N/A- enable lightning extension(0.3) in Thunderbird
11089N/A- remove BuildRequires: SUNWfirefox-devel since it's not necessary
11089N/A- remove -R%{_libdir}/firefox since is not necessary
11089N/A* Thu Dec 28 2006 - dave.lin@sun.com
11089N/A- remove "Requires: SUNWfirefox" since it's not necessary
11089N/A* Tue Sep 05 2006 - Matt.Keenan@sun.com
11089N/A- New Manpage tarball
11089N/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 thunderbird 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* Fri May 12 2006 - damien.carbery@sun.com
10139N/A- Small update to dependency list after check-deps.pl run.
15759N/A* Thu Apr 27 2006 - dave.lin@sun.com
10139N/A- remove the devel pkg since the it's almost the same as firefox's devel pkg
11089N/A- set -R%{_libdir}/firefox to let thunderbird use the nss,nspr libs delivered
11089N/A by firefox
10139N/A* Fri Apr 14 2006 - dave.lin@sun.com
10139N/A- changed pkg category to "THUNDERBIRD" to make it more clear
11271N/A* Thu Apr 13 2006 - dave.lin@sun.com
10139N/A- changed the installation location from "/usr/sfw/lib" to "/usr/lib"
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 18 2006 - dave.lin@sun.com
10139N/A- add "-lXft -lfontconfig -lfreetype" to support configure opt "enable-static"
10139N/A* Sat Dec 3 2005 - laca@sun.com
10139N/A- add %post script that runs update-desktop-database
10139N/A* Mon Oct 31 2005 - laca@sun.com
10139N/A- merge -share pkgs into base
10139N/A* Mon Sep 26 2005 - halton.huo@sun.com
10139N/A- Change version same with linux verion.
10139N/A* Thu Sep 22 2005 - laca@sun.com
10139N/A- add %{_libdir} to %files so that we actually package thunderbird...
10139N/A* Fri Sep 02 2005 - damien.carbery@sun.com
10139N/A- Fix %files.
10139N/A* Fri Aug 26 2005 - dave.lin@sun.com
10139N/A- initial version of the spec file created
10139N/A
10139N/A