author | leon.sha |
Mon, 21 May 2012 08:33:48 +0000 | |
branch | gnome-2-30-s11update |
changeset 22452 | fd11d9f99d18 |
parent 22360 | 23532a109311 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWthunderbird |
|
3 |
# |
|
4 |
# includes module(s): thunderbird |
|
5 |
# |
|
22090 | 6 |
# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
22452 | 10 |
%define owner leon.sha |
9397 | 11 |
# |
12 |
# DO NOT REMOVE NEXT LINE |
|
15582 | 13 |
# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC |
9397 | 14 |
# |
15 |
%include Solaris.inc |
|
16 |
%use thunderbird = thunderbird.spec |
|
17 |
||
18 |
##################################### |
|
19 |
## Package Information Section ## |
|
20 |
##################################### |
|
21 |
||
22262 | 22 |
%define lang_list ar bg ca cs da de el es-AR es-ES et eu fi fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-HK zh-TW |
22452 | 23 |
%define l10n_version 10.0.4 |
22090 | 24 |
|
9397 | 25 |
Name: SUNWthunderbird |
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
26 |
IPS_package_name: mail/thunderbird |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
27 |
Meta(info.classification): %{classification_prefix}:Applications/Internet |
9397 | 28 |
Summary: Mozilla Thunderbird Email/Newsgroup Client |
29 |
Version: %{thunderbird.version} |
|
30 |
Source: %{name}-manpages-0.1.tar.gz |
|
22090 | 31 |
Source1: thunderbirdl10n-%{l10n_version}.tar.gz |
9397 | 32 |
SUNW_BaseDir: %{_basedir} |
33 |
SUNW_Category: THUNDERBIRD,application,%{jds_version} |
|
11921 | 34 |
SUNW_Copyright:%{name}.copyright |
20305 | 35 |
License: MOZILLA PUBLIC LICENSE V1.1 |
9397 | 36 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
37 |
||
38 |
##################################### |
|
39 |
## Package Requirements Section ## |
|
40 |
##################################### |
|
41 |
||
42 |
%include default-depend.inc |
|
22130 | 43 |
%include desktop-incorporation.inc |
22308 | 44 |
BuildRequires: archiver/gnu-tar |
45 |
BuildRequires: codec/libtheora |
|
46 |
BuildRequires: codec/ogg-vorbis |
|
47 |
BuildRequires: compress/zip |
|
48 |
BuildRequires: compress/bzip2 |
|
49 |
BuildRequires: database/sqlite-3 |
|
50 |
BuildRequires: gnome/config/gconf |
|
22452 | 51 |
BuildRequires: library/audio/pulseaudio |
22308 | 52 |
BuildRequires: library/desktop/gtk2 |
53 |
BuildRequires: library/gnome/gnome-component |
|
54 |
BuildRequires: library/gnome/gnome-libs |
|
55 |
BuildRequires: library/gnome/gnome-vfs |
|
56 |
BuildRequires: library/zlib |
|
57 |
BuildRequires: library/libnotify |
|
58 |
BuildRequires: library/libffi |
|
59 |
BuildRequires: text/gnu-sed |
|
60 |
BuildRequires: system/header |
|
61 |
BuildRequires: system/library/libdbus-glib |
|
62 |
BuildRequires: system/library/libdbus |
|
63 |
BuildRequires: system/library/dbus |
|
64 |
BuildRequires: system/library/freetype-2 |
|
65 |
BuildRequires: system/library/fontconfig |
|
66 |
BuildRequires: system/library/math |
|
67 |
BuildRequires: x11/library/mesa |
|
68 |
BuildRequires: x11/library/libxscrnsaver |
|
15804 | 69 |
%if %option_without_moz_nss_nspr |
22204 | 70 |
#BuildRequires: library/nspr |
71 |
#BuildRequires: library/security/nss |
|
15804 | 72 |
%endif |
22262 | 73 |
Requires: system/font/truetype/dejavu |
9397 | 74 |
|
75 |
##################################### |
|
76 |
## Package Description Section ## |
|
77 |
##################################### |
|
78 |
||
15804 | 79 |
%if %option_with_lightning |
9397 | 80 |
%package calendar |
20169 | 81 |
IPS_package_name: mail/thunderbird/plugin/thunderbird-lightning |
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
82 |
Meta(info.classification): %{classification_prefix}:Applications/Internet |
9397 | 83 |
Summary: %{summary} - Calendar |
84 |
Version: %{thunderbird.lightning_version} |
|
85 |
SUNW_BaseDir: %{_basedir} |
|
86 |
%include default-depend.inc |
|
22130 | 87 |
%include desktop-incorporation.inc |
22231 | 88 |
Requires: SUNWthunderbird |
9397 | 89 |
%endif |
90 |
||
91 |
##################################### |
|
92 |
## Package Preparation Section ## |
|
93 |
##################################### |
|
94 |
||
95 |
%prep |
|
96 |
rm -rf %name-%version |
|
97 |
mkdir -p %name-%version |
|
98 |
%thunderbird.prep -d %name-%version |
|
99 |
cd %{_builddir}/%name-%version |
|
100 |
gzcat %SOURCE0 | tar xf - |
|
101 |
||
102 |
##################################### |
|
103 |
## Package Build Section ## |
|
104 |
##################################### |
|
105 |
||
106 |
%build |
|
107 |
||
108 |
%thunderbird.build -d %name-%version |
|
109 |
||
22115 | 110 |
%install |
22090 | 111 |
|
9397 | 112 |
%thunderbird.install -d %name-%version |
113 |
||
14490 | 114 |
# Lightning extension ID |
22308 | 115 |
# rm -rf $RPM_BUILD_ROOT/usr/lib/thunderbird/extensions/[email protected] |
116 |
# rm $RPM_BUILD_ROOT/usr/lib/thunderbird/distribution/extensions/[email protected] |
|
117 |
# rmdir $RPM_BUILD_ROOT/usr/lib/thunderbird/distribution/extensions/ |
|
118 |
# rmdir $RPM_BUILD_ROOT/usr/lib/thunderbird/distribution |
|
17291 | 119 |
|
15300 | 120 |
# create file list for SUNWthunderbird, SUNWthunderbird-calendar(ie. Lightning) |
14490 | 121 |
cd $RPM_BUILD_ROOT%{_libdir} |
22058 | 122 |
find %{thunderbird.name} ! -type d | egrep -v "(%{thunderbird.lightning_dir}|xpidl|xpt_dump|xpt_link|libsoftokn3\.so|libnssdbm3\.so|libfreebl3\.so|libfreebl_32int_3\.so|libfreebl_32fpu_3\.so|libfreebl_32int64_3\.so)" | \ |
14490 | 123 |
sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \ |
22058 | 124 |
> %{_builddir}/%name-%version/%{name}.list |
9397 | 125 |
|
22058 | 126 |
%if %option_with_lightning |
127 |
find %{thunderbird.name}/extensions/%{thunderbird.lightning_dir} ! -type d | |
|
128 |
sed -e 's#{#\\{#g' -e 's#}#\\}#g' -e 's#^.*$#%{_libdir}/&#' \ |
|
129 |
> %{_builddir}/%name-%version/%{name}-calendar.list |
|
9397 | 130 |
%endif |
131 |
||
132 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
133 |
cd %{_builddir}/%name-%version/sun-manpages |
|
134 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
135 |
||
136 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
137 |
||
22058 | 138 |
# CR 7071032 re-sign these libraries after post process |
139 |
SHLIBSIGN=%{_builddir}/%name-%version/%{thunderbird.name}/%{thunderbird.moz_objdir}/mozilla/nss/shlibsign |
|
22262 | 140 |
|
141 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libsoftokn3.so |
|
22058 | 142 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libsoftokn3.so |
22262 | 143 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libnssdbm3.so |
22058 | 144 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libnssdbm3.so |
145 |
||
146 |
%ifarch sparc |
|
22262 | 147 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32int_3.so |
22058 | 148 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32int_3.so |
22262 | 149 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32fpu_3.so |
22058 | 150 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32fpu_3.so |
22262 | 151 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32int64_3.so |
22058 | 152 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl_32int64_3.so |
153 |
%else |
|
22262 | 154 |
mcs -d $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl3.so |
22058 | 155 |
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib/thunderbird $SHLIBSIGN -v -i $RPM_BUILD_ROOT/usr/lib/thunderbird/libfreebl3.so |
156 |
%endif |
|
157 |
||
22115 | 158 |
# L10n stuff |
22262 | 159 |
mkdir -p l10n |
160 |
cd l10n |
|
161 |
gzip -dc %{SOURCE1} | tar -xvf - |
|
22118 | 162 |
chmod 0644 *.xpi |
22115 | 163 |
for lang in %{lang_list} |
164 |
do |
|
165 |
cp $lang.xpi $RPM_BUILD_ROOT/usr/lib/thunderbird/extensions/[email protected] |
|
166 |
done |
|
22090 | 167 |
|
9397 | 168 |
%clean |
169 |
rm -rf $RPM_BUILD_ROOT |
|
170 |
||
171 |
######################################### |
|
172 |
## Package Post[Un] Install Section ## |
|
173 |
######################################### |
|
174 |
||
175 |
%post |
|
22058 | 176 |
%restart_fmri desktop-mime-cache || exit 1 |
9397 | 177 |
|
178 |
%postun |
|
22058 | 179 |
%restart_fmri desktop-mime-cache || exit 1 |
9397 | 180 |
|
181 |
##################################### |
|
182 |
## Package Files Section ## |
|
183 |
##################################### |
|
184 |
||
185 |
%files -f SUNWthunderbird.list |
|
13650
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
186 |
|
22452 | 187 |
%doc -d %{thunderbird.name}/%{thunderbird.moz_srcdir}/mozilla README.txt |
13650
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
188 |
%dir %attr (0755, root, other) %{_datadir}/doc |
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
189 |
|
9780 | 190 |
%defattr(-, root, bin) |
9397 | 191 |
%dir %attr (0755, root, bin) %{_bindir} |
192 |
%{_bindir}/thunderbird |
|
193 |
%dir %attr (0755, root, bin) %{_libdir} |
|
22231 | 194 |
# Empty dirs which is out of SUNWthunderbird.list |
195 |
%dir %attr (0755, root, bin) %{_libdir}/%{thunderbird.name}/jsloader |
|
196 |
%dir %attr (0755, root, bin) %{_libdir}/%{thunderbird.name}/jsloader/resource |
|
22058 | 197 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libsoftokn3.so |
198 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libnssdbm3.so |
|
199 |
%ifarch sparc |
|
200 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libfreebl_32int_3.so |
|
201 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libfreebl_32fpu_3.so |
|
202 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libfreebl_32int64_3.so |
|
203 |
%else |
|
204 |
%ips_tag(com.oracle.elfsign=false) %{_libdir}/%{thunderbird.name}/libfreebl3.so |
|
205 |
%endif |
|
9397 | 206 |
%dir %attr (0755, root, sys) %{_datadir} |
207 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
208 |
%{_datadir}/applications/thunderbird.desktop |
|
209 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
210 |
%{_datadir}/pixmaps/thunderbird-icon.png |
|
211 |
%dir %attr (0755, root, bin) %{_mandir} |
|
212 |
%dir %attr (0755, root, bin) %{_mandir}/man1 |
|
213 |
%{_mandir}/man1/* |
|
214 |
||
22090 | 215 |
%{_libdir}/thunderbird/extensions/langpack-* |
216 |
||
15804 | 217 |
%if %option_with_lightning |
9397 | 218 |
%files calendar -f SUNWthunderbird-calendar.list |
9780 | 219 |
%defattr(-, root, bin) |
9397 | 220 |
%dir %attr (0755, root, bin) %{_libdir} |
221 |
%endif |
|
222 |
||
223 |
%changelog |
|
22452 | 224 |
* Fri May 11 2012 - [email protected] |
225 |
- Bump to Thunderbird 10.0.4 |
|
22308 | 226 |
* Fri Feb 17 2012 - [email protected] |
227 |
- Bump to Thunderbird 10.0.2 |
|
228 |
- Bump to Lightning 1.2.1 |
|
22262 | 229 |
* Tue Jan 10 2012 - [email protected] |
230 |
- Bump to Thunderbird 9.0.1 |
|
231 |
- Bump to Lightning 1.1.1 |
|
232 |
- Update l10n list |
|
22231 | 233 |
* Wen Nov 23 2011 - [email protected] |
234 |
- Bump to 8.0 |
|
22115 | 235 |
* Wen Sep 07 2011 - [email protected] |
236 |
- revise l10n language list and version based on Rebeccas feedback |
|
237 |
- Remove zh-HK lang hack |
|
22090 | 238 |
* Fri Aug 26 2011 - [email protected] |
239 |
- merge l10n content into main package |
|
22058 | 240 |
* Fri July 8 2011 - [email protected] |
241 |
- Bump to 5.0 |
|
20305 | 242 |
* Mon Nov 08 2010 - [email protected] |
243 |
- Add 'License' tag |
|
18099 | 244 |
* Tue Jun 08 2010 - [email protected] |
245 |
- Updated BuildRequires to fit SourceJuicer. |
|
17291 | 246 |
* Tue Jan 12 2009 - [email protected] |
247 |
- Remove calendar-timezones extension |
|
17270 | 248 |
* Mon Jan 04 2009 - [email protected] |
249 |
- Do not ship calendar-timezones extension, it was not used. |
|
17202 | 250 |
* Fri Dec 18 2009 - [email protected] |
251 |
- Move calendar-timezones extensions to SUNWthunderbird-calendar. |
|
15804 | 252 |
* Mon May 25 2009 - [email protected] |
253 |
- Move --without-lightning to options.inc. |
|
15556 | 254 |
* Fri Apr 3 2009 - [email protected] |
255 |
- use desktop-cache instead of postrun |
|
15473 | 256 |
* Mon Mar 23 2009 - [email protected] |
257 |
- Since /usr/lib/thunderbird/thunderbird (SUNWthunderbird) requires |
|
258 |
/usr/bin/bash which is found in SUNWbash, add the dependency. |
|
13650
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
259 |
* Thu Sep 19 2008 - [email protected] |
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
260 |
- add %doc section to generate new copyright files |
28f3cc57eb33
* SUNWthunderbird.spec: add %doc section to generate new copyright files
hawklu
parents:
12660
diff
changeset
|
261 |
* Thu Apr 24 2008 - [email protected] |
12198 | 262 |
- remove wcap-enable.xpi because WCAP is already part of lightning 0.8 |
10655 | 263 |
* Fri Oct 12 2007 - [email protected] |
264 |
- add /usr/X11/include to CFLAGS/CXXFLAGS if built with FOX |
|
9780 | 265 |
* Tue Apr 24 2007 - [email protected] |
266 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9420 | 267 |
* Sat Mar 03 2007 - [email protected] |
268 |
- enable WCAP in lightning |
|
9397 | 269 |
* Fri Jan 26 2007 - [email protected] |
270 |
- enable lightning extension(0.3) in Thunderbird |
|
271 |
- remove BuildRequires: SUNWfirefox-devel since it's not necessary |
|
272 |
- remove -R%{_libdir}/firefox since is not necessary |
|
273 |
* Thu Dec 28 2006 - [email protected] |
|
274 |
- remove "Requires: SUNWfirefox" since it's not necessary |
|
275 |
* Tue Sep 05 2006 - [email protected] |
|
276 |
- New Manpage tarball |
|
277 |
* Fri Jul 14 2006 - [email protected] |
|
278 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
279 |
part of 6448317 |
|
280 |
* Thu Jul 13 2006 - [email protected] |
|
281 |
- add "-lCrun -lCstd" in CXXFLAGS to improve the startup performance |
|
282 |
* Thu Jun 29 2006 - [email protected] |
|
283 |
- update postrun scripts |
|
284 |
* Tue Jun 20 2006 - [email protected] |
|
285 |
- Add SUNWpr and SUNWtls dependencies after check-deps.pl run. |
|
286 |
* Mon Jun 12 2006 - [email protected] |
|
287 |
- changed to let thunderbird use nss,nspr in /usr/lib/mps required by ARC |
|
288 |
- remove -R%{_libdir} |
|
289 |
* Sun Jun 11 2006 - [email protected] |
|
290 |
- change group from other to bin/sys |
|
291 |
* Fri Jun 09 2006 - [email protected] |
|
292 |
- Uncomment man page lines in %files. |
|
293 |
* Thu Jun 08 2006 - [email protected] |
|
294 |
- add man page prepared by Leon Sha |
|
295 |
* Fri May 12 2006 - [email protected] |
|
296 |
- Small update to dependency list after check-deps.pl run. |
|
297 |
* Thu Apr 27 2006 - [email protected] |
|
298 |
- remove the devel pkg since the it's almost the same as firefox's devel pkg |
|
299 |
- set -R%{_libdir}/firefox to let thunderbird use the nss,nspr libs delivered |
|
300 |
by firefox |
|
301 |
* Fri Apr 14 2006 - [email protected] |
|
302 |
- changed pkg category to "THUNDERBIRD" to make it more clear |
|
303 |
* Thu Apr 13 2006 - [email protected] |
|
304 |
- changed the installation location from "/usr/sfw/lib" to "/usr/lib" |
|
305 |
* Mon Feb 20 2006 - [email protected] |
|
306 |
- Update Build/Requires after running check-deps.pl script. |
|
307 |
* Thu Jan 18 2006 - [email protected] |
|
308 |
- add "-lXft -lfontconfig -lfreetype" to support configure opt "enable-static" |
|
309 |
* Sat Dec 3 2005 - [email protected] |
|
310 |
- add %post script that runs update-desktop-database |
|
311 |
* Mon Oct 31 2005 - [email protected] |
|
312 |
- merge -share pkgs into base |
|
313 |
* Mon Sep 26 2005 - [email protected] |
|
314 |
- Change version same with linux verion. |
|
315 |
* Thu Sep 22 2005 - [email protected] |
|
316 |
- add %{_libdir} to %files so that we actually package thunderbird... |
|
317 |
* Fri Sep 02 2005 - [email protected] |
|
318 |
- Fix %files. |
|
319 |
* Fri Aug 26 2005 - [email protected] |
|
320 |
- initial version of the spec file created |