9397
|
1 |
#
|
|
2 |
# spec file for package SUNWthunderbird
|
|
3 |
#
|
|
4 |
# includes module(s): thunderbird
|
|
5 |
#
|
10654
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: davelam
|
|
11 |
#
|
|
12 |
# DO NOT REMOVE NEXT LINE
|
|
13 |
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
|
|
14 |
#
|
|
15 |
%include Solaris.inc
|
|
16 |
# use --without-lightning to disable building lightning
|
|
17 |
# default: build lightning
|
|
18 |
%define with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
|
|
19 |
%use thunderbird = thunderbird.spec
|
|
20 |
|
|
21 |
#####################################
|
|
22 |
## Package Information Section ##
|
|
23 |
#####################################
|
|
24 |
|
|
25 |
Name: SUNWthunderbird
|
|
26 |
Summary: Mozilla Thunderbird Email/Newsgroup Client
|
|
27 |
Version: %{thunderbird.version}
|
|
28 |
Source: %{name}-manpages-0.1.tar.gz
|
|
29 |
SUNW_BaseDir: %{_basedir}
|
|
30 |
SUNW_Category: THUNDERBIRD,application,%{jds_version}
|
11921
|
31 |
SUNW_Copyright:%{name}.copyright
|
9397
|
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
33 |
|
|
34 |
#####################################
|
|
35 |
## Package Requirements Section ##
|
|
36 |
#####################################
|
|
37 |
|
|
38 |
%include default-depend.inc
|
|
39 |
Requires: SUNWjdsrm
|
|
40 |
Requires: SUNWj5rt
|
|
41 |
Requires: SUNWgnome-base-libs
|
|
42 |
Requires: SUNWdtbas
|
|
43 |
Requires: SUNWfontconfig
|
|
44 |
Requires: SUNWfreetype2
|
|
45 |
Requires: SUNWgnome-config
|
|
46 |
Requires: SUNWgnome-libs
|
|
47 |
Requires: SUNWgnome-vfs
|
|
48 |
Requires: SUNWlibC
|
|
49 |
Requires: SUNWlibms
|
|
50 |
Requires: SUNWpostrun
|
|
51 |
Requires: SUNWpr
|
|
52 |
Requires: SUNWtls
|
|
53 |
BuildRequires: SUNWzip
|
|
54 |
BuildRequires: SUNWgnome-config-devel
|
|
55 |
BuildRequires: SUNWgnome-libs-devel
|
|
56 |
BuildRequires: SUNWgnome-vfs-devel
|
|
57 |
BuildRequires: SUNWgnome-component-devel
|
|
58 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
59 |
|
|
60 |
#####################################
|
|
61 |
## Package Description Section ##
|
|
62 |
#####################################
|
|
63 |
|
|
64 |
%if %with_lightning
|
|
65 |
%package calendar
|
|
66 |
Summary: %{summary} - Calendar
|
|
67 |
Version: %{thunderbird.lightning_version}
|
|
68 |
SUNW_BaseDir: %{_basedir}
|
|
69 |
%include default-depend.inc
|
|
70 |
Requires: SUNWthunderbird
|
|
71 |
%endif
|
|
72 |
|
|
73 |
#####################################
|
|
74 |
## Package Preparation Section ##
|
|
75 |
#####################################
|
|
76 |
|
|
77 |
%prep
|
|
78 |
rm -rf %name-%version
|
|
79 |
mkdir -p %name-%version
|
|
80 |
%thunderbird.prep -d %name-%version
|
|
81 |
cd %{_builddir}/%name-%version
|
|
82 |
gzcat %SOURCE0 | tar xf -
|
|
83 |
|
|
84 |
#####################################
|
|
85 |
## Package Build Section ##
|
|
86 |
#####################################
|
|
87 |
|
|
88 |
%build
|
|
89 |
export PKG_CONFIG_PATH=${_libdir}/pkgconfig:%{_pkg_config_path}
|
|
90 |
export MSGFMT="/usr/bin/msgfmt"
|
|
91 |
export LDFLAGS="-z ignore -L%{_libdir} -L/usr/sfw/lib -R'\$\$ORIGIN:\$\$ORIGIN/..' -R%{_libdir}/mps -lXft -lfontconfig -lfreetype"
|
|
92 |
export CFLAGS="-xlibmil"
|
|
93 |
export CXXFLAGS="-norunpath -xlibmil -xlibmopt -features=tmplife -lCrun -lCstd"
|
|
94 |
%ifarch sparc
|
|
95 |
export CFLAGS="$CFLAGS -xO5"
|
|
96 |
export CXXFLAGS="$CXXFLAGS -xO5"
|
|
97 |
%else
|
|
98 |
export CFLAGS="$CFLAGS -xO3"
|
|
99 |
export CXXFLAGS="$CXXFLAGS -xO3"
|
|
100 |
%endif
|
10655
|
101 |
%if %option_with_fox
|
|
102 |
export CFLAGS="$CFLAGS -I/usr/X11/include"
|
|
103 |
export CXXFLAGS="$CXXFLAGS -I/usr/X11/include"
|
|
104 |
%endif
|
9397
|
105 |
|
|
106 |
%thunderbird.build -d %name-%version
|
|
107 |
|
|
108 |
%install
|
|
109 |
%thunderbird.install -d %name-%version
|
|
110 |
|
|
111 |
%if %with_lightning
|
|
112 |
# creat file list for SUNWthunderbird
|
|
113 |
cd $RPM_BUILD_ROOT%{_libdir}
|
|
114 |
find thunderbird ! -type d | sed -e 's#{#\\{#g' -e 's#}#\\}#g' \
|
|
115 |
-e 's#^.*$#%{_libdir}/&#' \
|
|
116 |
> %{_builddir}/%name-%version/%{name}.list
|
|
117 |
|
|
118 |
# install lightning under extensions directory
|
|
119 |
install -d $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions/lightning_ext_id
|
|
120 |
cd $RPM_BUILD_ROOT%{_libdir}/thunderbird/extensions/lightning_ext_id
|
9420
|
121 |
unzip -o %{_builddir}/%name-%version/thunderbird/dist/xpi-stage/lightning.xpi
|
9397
|
122 |
ext_id=`sed -n -e '/<em:id>/{h;}' -e '/<em:name>[Ll]ightning/{g;p;q;}' install.rdf | \
|
|
123 |
sed 's/^.*\({.*}\).*$/\1/'`
|
|
124 |
cd ..
|
|
125 |
mv lightning_ext_id $ext_id
|
|
126 |
|
|
127 |
# creat file list for SUNWthunderbird-calendar
|
|
128 |
find $ext_id ! -type d | sed -e 's#{#\\{#g' -e 's#}#\\}#g' \
|
|
129 |
-e 's#^.*$#%{_libdir}/thunderbird/extensions/&#' \
|
|
130 |
> %{_builddir}/%name-%version/%{name}-calendar.list
|
|
131 |
%endif
|
|
132 |
|
|
133 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
134 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
135 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
136 |
|
|
137 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
138 |
|
|
139 |
%clean
|
|
140 |
rm -rf $RPM_BUILD_ROOT
|
|
141 |
|
|
142 |
#########################################
|
|
143 |
## Package Post[Un] Install Section ##
|
|
144 |
#########################################
|
|
145 |
|
|
146 |
%post
|
|
147 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
148 |
echo '/usr/bin/update-desktop-database'
|
|
149 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
150 |
|
|
151 |
%postun
|
|
152 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
153 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
154 |
echo '/usr/bin/update-desktop-database'
|
|
155 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
156 |
|
|
157 |
#####################################
|
|
158 |
## Package Files Section ##
|
|
159 |
#####################################
|
|
160 |
|
|
161 |
%if %with_lightning
|
|
162 |
%files -f SUNWthunderbird.list
|
|
163 |
%else
|
|
164 |
%files
|
|
165 |
%endif
|
9780
|
166 |
%defattr(-, root, bin)
|
9397
|
167 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
168 |
%{_bindir}/thunderbird
|
|
169 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
170 |
%if %with_lightning
|
|
171 |
#%{_libdir}/thunderbird
|
|
172 |
%else
|
|
173 |
%{_libdir}/thunderbird
|
|
174 |
%endif
|
|
175 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
176 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
177 |
%{_datadir}/applications/thunderbird.desktop
|
|
178 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
179 |
%{_datadir}/pixmaps/thunderbird-icon.png
|
|
180 |
%dir %attr (0755, root, bin) %{_mandir}
|
|
181 |
%dir %attr (0755, root, bin) %{_mandir}/man1
|
|
182 |
%{_mandir}/man1/*
|
|
183 |
|
|
184 |
%if %with_lightning
|
|
185 |
%files calendar -f SUNWthunderbird-calendar.list
|
9780
|
186 |
%defattr(-, root, bin)
|
9397
|
187 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
188 |
%endif
|
|
189 |
|
|
190 |
%changelog
|
12198
|
191 |
* Thu Apri 24 2008 - [email protected]
|
|
192 |
- remove wcap-enable.xpi because WCAP is already part of lightning 0.8
|
10655
|
193 |
* Fri Oct 12 2007 - [email protected]
|
|
194 |
- add /usr/X11/include to CFLAGS/CXXFLAGS if built with FOX
|
9780
|
195 |
* Tue Apr 24 2007 - [email protected]
|
|
196 |
- s/0755/-/ in defattr so that files are not made all executable
|
9420
|
197 |
* Sat Mar 03 2007 - [email protected]
|
|
198 |
- enable WCAP in lightning
|
9397
|
199 |
* Fri Jan 26 2007 - [email protected]
|
|
200 |
- enable lightning extension(0.3) in Thunderbird
|
|
201 |
- remove BuildRequires: SUNWfirefox-devel since it's not necessary
|
|
202 |
- remove -R%{_libdir}/firefox since is not necessary
|
|
203 |
* Thu Dec 28 2006 - [email protected]
|
|
204 |
- remove "Requires: SUNWfirefox" since it's not necessary
|
|
205 |
* Tue Sep 05 2006 - [email protected]
|
|
206 |
- New Manpage tarball
|
|
207 |
* Fri Jul 14 2006 - [email protected]
|
|
208 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
209 |
part of 6448317
|
|
210 |
* Thu Jul 13 2006 - [email protected]
|
|
211 |
- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance
|
|
212 |
* Thu Jun 29 2006 - [email protected]
|
|
213 |
- update postrun scripts
|
|
214 |
* Tue Jun 20 2006 - [email protected]
|
|
215 |
- Add SUNWpr and SUNWtls dependencies after check-deps.pl run.
|
|
216 |
|
|
217 |
* Mon Jun 12 2006 - [email protected]
|
|
218 |
- changed to let thunderbird use nss,nspr in /usr/lib/mps required by ARC
|
|
219 |
- remove -R%{_libdir}
|
|
220 |
|
|
221 |
* Sun Jun 11 2006 - [email protected]
|
|
222 |
- change group from other to bin/sys
|
|
223 |
|
|
224 |
* Fri Jun 09 2006 - [email protected]
|
|
225 |
- Uncomment man page lines in %files.
|
|
226 |
|
|
227 |
* Thu Jun 08 2006 - [email protected]
|
|
228 |
- add man page prepared by Leon Sha
|
|
229 |
|
|
230 |
* Fri May 12 2006 - [email protected]
|
|
231 |
- Small update to dependency list after check-deps.pl run.
|
|
232 |
|
|
233 |
* Thu Apr 27 2006 - [email protected]
|
|
234 |
- remove the devel pkg since the it's almost the same as firefox's devel pkg
|
|
235 |
- set -R%{_libdir}/firefox to let thunderbird use the nss,nspr libs delivered
|
|
236 |
by firefox
|
|
237 |
* Fri Apr 14 2006 - [email protected]
|
|
238 |
- changed pkg category to "THUNDERBIRD" to make it more clear
|
|
239 |
* Thu Apr 13 2006 - [email protected]
|
|
240 |
- changed the installation location from "/usr/sfw/lib" to "/usr/lib"
|
|
241 |
|
|
242 |
* Mon Feb 20 2006 - [email protected]
|
|
243 |
- Update Build/Requires after running check-deps.pl script.
|
|
244 |
|
|
245 |
* Thu Jan 18 2006 - [email protected]
|
|
246 |
- add "-lXft -lfontconfig -lfreetype" to support configure opt "enable-static"
|
|
247 |
|
|
248 |
* Sat Dec 3 2005 - [email protected]
|
|
249 |
- add %post script that runs update-desktop-database
|
|
250 |
|
|
251 |
* Mon Oct 31 2005 - [email protected]
|
|
252 |
- merge -share pkgs into base
|
|
253 |
|
|
254 |
* Mon Sep 26 2005 - [email protected]
|
|
255 |
- Change version same with linux verion.
|
|
256 |
|
|
257 |
* Thu Sep 22 2005 - [email protected]
|
|
258 |
- add %{_libdir} to %files so that we actually package thunderbird...
|
|
259 |
|
|
260 |
* Fri Sep 02 2005 - [email protected]
|
|
261 |
- Fix %files.
|
|
262 |
|
|
263 |
* Fri Aug 26 2005 - [email protected]
|
|
264 |
- initial version of the spec file created
|