SUNWthunderbird.spec revision 18850
10139N/A#
10139N/A# spec file for package SUNWthunderbird
10139N/A#
12147N/A# includes module(s): thunderbird
10139N/A#
10139N/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#
10139N/A%define owner davelam
10139N/A#
10139N/A# DO NOT REMOVE NEXT LINE
12229N/A# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
10139N/A#
10139N/A%include Solaris.inc
10139N/A%use thunderbird = thunderbird.spec
10139N/A
12219N/A#####################################
10977N/A## Package Information Section ##
11066N/A#####################################
10139N/A
10139N/AName: SUNWthunderbird
10139N/AIPS_package_name: mail/thunderbird
10139N/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}
10139N/ASUNW_Category: THUNDERBIRD,application,%{jds_version}
10139N/ASUNW_Copyright:%{name}.copyright
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/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
10139N/ARequires: SUNWlibtheora
10139N/ABuildRequires: SUNWlibtheora-devel
10139N/ARequires: SUNWogg-vorbis
10139N/ABuildRequires: SUNWogg-vorbis-devel
10139N/ARequires: SUNWsqlite3
10139N/ABuildRequires: SUNWsqlite3
10139N/ARequires: SUNWfontconfig
10139N/ABuildRequires: SUNWfontconfig
10139N/ARequires: SUNWfreetype2
10139N/ABuildRequires: 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: SUNWlibC
10139N/ABuildRequires: SUNWlibC
10139N/ARequires: SUNWlibms
11191N/ABuildRequires: SUNWlibms
10139N/ARequires: SUNWbash
10139N/ABuildRequires: SUNWbash
10139N/ABuildRequires: SUNWzip
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
10139N/ABuildRequires: SUNWaudh
10139N/ABuildRequires: SUNWgsed
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/plugin-lightning
10139N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
10139N/ASummary: %{summary} - Calendar
10139N/AVersion: %{thunderbird.lightning_version}
11204N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/ARequires: SUNWthunderbird
10139N/A%endif
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%thunderbird.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}
10139N/Aexport MSGFMT="/usr/bin/msgfmt"
10139N/Aexport LDFLAGS="-z ignore"
10139N/Aexport CFLAGS="-xlibmopt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/X11/include"
10139N/Aexport CXXFLAGS="-xlibmil -xlibmopt -lCrun -lCstd -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10139N/A
10139N/A%thunderbird.build -d %name-%version
10139N/A
10139N/A%install
10139N/A%thunderbird.install -d %name-%version
10139N/A
10139N/A%if %option_with_lightning
12229N/A# Lightning extension ID
12229N/Aext_id=e2fda1a4-762b-4020-b5ad-a41df1933103
12229N/Aext_id2=calendar-timezones@mozilla.org
12219N/A
12219N/Arm -rf $RPM_BUILD_ROOT/usr/lib/thunderbird/extensions/${ext_id2}
12219N/A
12219N/A# create file list for SUNWthunderbird, SUNWthunderbird-calendar(ie. Lightning)
12147N/Acd $RPM_BUILD_ROOT%{_libdir}
12147N/Afind thunderbird ! -type d | \
12082N/A sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \
12082N/A > /tmp/%{name}-full.list
12082N/A
12147N/Agrep -v "${ext_id}" /tmp/%{name}-full.list > \
12071N/A %{_builddir}/%name-%version/%{name}.list
12071N/Agrep "${ext_id}" /tmp/%{name}-full.list > \
12071N/A %{_builddir}/%name-%version/%{name}-calendar.list
11989N/A
11989N/Arm -f /tmp/%{name}-full.list
11989N/A%endif
11416N/A
11417N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
11416N/Acd %{_builddir}/%name-%version/sun-manpages
11257N/Amake install DESTDIR=$RPM_BUILD_ROOT
11257N/A
11257N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
11234N/A
11234N/A%clean
11234N/Arm -rf $RPM_BUILD_ROOT
11257N/A
11191N/A#########################################
11191N/A## Package Post[Un] Install Section ##
11191N/A#########################################
11191N/A
11191N/A%post
11085N/A%restart_fmri desktop-mime-cache
11085N/A
11085N/A%postun
11066N/A%restart_fmri desktop-mime-cache
11066N/A
11066N/A#####################################
11066N/A## Package Files Section ##
10977N/A#####################################
10977N/A
10977N/A%if %option_with_lightning
10977N/A%files -f SUNWthunderbird.list
10975N/A%else
10975N/A%files
10975N/A%endif
10972N/A
10972N/A%doc -d thunderbird/comm-1.9.1/mozilla README.txt LICENSE
10972N/A%dir %attr (0755, root, other) %{_datadir}/doc
10909N/A
10909N/A%defattr(-, root, bin)
10909N/A%dir %attr (0755, root, bin) %{_bindir}
10909N/A%{_bindir}/thunderbird
10821N/A%dir %attr (0755, root, bin) %{_libdir}
10821N/A%dir %attr (0755, root, sys) %{_datadir}
10821N/A%dir %attr (0755, root, other) %{_datadir}/applications
10810N/A%{_datadir}/applications/thunderbird.desktop
10810N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
10810N/A%{_datadir}/pixmaps/thunderbird-icon.png
10645N/A%dir %attr (0755, root, bin) %{_mandir}
10645N/A%dir %attr (0755, root, bin) %{_mandir}/man1
10645N/A%{_mandir}/man1/*
10645N/A
10435N/A%if %option_with_lightning
10435N/A%files calendar -f SUNWthunderbird-calendar.list
10435N/A%defattr(-, root, bin)
10371N/A%dir %attr (0755, root, bin) %{_libdir}
10371N/A%endif
10371N/A
10270N/A%changelog
10271N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
10270N/A- Updated BuildRequires to fit SourceJuicer.
10200N/A* Tue Jan 12 2009 - brian.lu@sun.com
10200N/A- Remove calendar-timezones extension
10200N/A* Mon Jan 04 2009 - ginn.chen@sun.com
10139N/A- Do not ship calendar-timezones extension, it was not used.
10139N/A* Fri Dec 18 2009 - ginn.chen@sun.com
10139N/A- Move calendar-timezones extensions to SUNWthunderbird-calendar.
10139N/A* Mon May 25 2009 - ginn.chen@sun.com
10139N/A- Move --without-lightning to options.inc.
10139N/A* Fri Apr 3 2009 - laca@sun.com
10139N/A- use desktop-cache instead of postrun
10139N/A* Mon Mar 23 2009 - jeff.cai@sun.com
10139N/A- Since /usr/lib/thunderbird/thunderbird (SUNWthunderbird) requires
10139N/A /usr/bin/bash which is found in SUNWbash, add the dependency.
10139N/A* Thu Sep 19 2008 - brian.lu@sun.com
10139N/A- add %doc section to generate new copyright files
10139N/A* Thu Apr 24 2008 - brian.lu@sun.com
10139N/A- remove wcap-enable.xpi because WCAP is already part of lightning 0.8
10139N/A* Fri Oct 12 2007 - laca@sun.com
10139N/A- add /usr/X11/include to CFLAGS/CXXFLAGS if built with FOX
10139N/A* Tue Apr 24 2007 - laca@sun.com
10139N/A- s/0755/-/ in defattr so that files are not made all executable
10139N/A* Sat Mar 03 2007 - dave.lin@sun.com
10139N/A- enable WCAP in lightning
10139N/A* Fri Jan 26 2007 - dave.lin@sun.com
10139N/A- enable lightning extension(0.3) in Thunderbird
10139N/A- remove BuildRequires: SUNWfirefox-devel since it's not necessary
10139N/A- remove -R%{_libdir}/firefox since is not necessary
10139N/A* Thu Dec 28 2006 - dave.lin@sun.com
10139N/A- remove "Requires: SUNWfirefox" since it's not necessary
10139N/A* Tue Sep 05 2006 - Matt.Keenan@sun.com
10139N/A- New Manpage tarball
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 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.
10139N/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
10139N/A- set -R%{_libdir}/firefox to let thunderbird use the nss,nspr libs delivered
10139N/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
10139N/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