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