author | hh150184 |
Thu, 09 Mar 2006 20:57:11 +0000 | |
changeset 6899 | ae2726fcc2f5 |
parent 6616 | 47b25058a763 |
child 6900 | 41c0dec5fd88 |
permissions | -rw-r--r-- |
5667 | 1 |
# |
2 |
# Copyright (c) Sun Microsystems, Inc. |
|
3 |
# |
|
4 |
||
5 |
##################################### |
|
6 |
## Package Information Section ## |
|
7 |
##################################### |
|
8 |
||
9 |
Name: thunderbird |
|
10 |
Summary: Mozilla Thunderbird Standalone E-mail and Newsgroup Client |
|
6242 | 11 |
Version: 1.5 |
6616 | 12 |
%define tarball_version 1.5 |
5667 | 13 |
Release: 0 |
14 |
Copyright: MPL/LGPL |
|
15 |
Group: Applications/Internet |
|
6009
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
16 |
Distribution:Java Desktop System |
5667 | 17 |
Vendor: Sun Microsystems, Inc. |
6242 | 18 |
Source: http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{tarball_version}/source/%{name}-%{tarball_version}-source.tar.bz2 |
5667 | 19 |
Source1: thunderbird-icon.png |
20 |
Source2: thunderbird.desktop |
|
21 |
#Source3: thunderbird-rebuild-databases.in |
|
22 |
#Source4: thunderbird.1 |
|
23 |
#Source5: thunderbird.sh.in |
|
24 |
Patch1: mozilla-01-change-install-dir.diff |
|
25 |
Patch2: mozilla-02-no-patch-checker.diff |
|
5669
e56f7dce459a
switch files in tarball mozilla-s11-src.tar.bz2 to patch files
dave
parents:
5667
diff
changeset
|
26 |
Patch3: mozilla-03-s11s-smkfl.diff |
e56f7dce459a
switch files in tarball mozilla-s11-src.tar.bz2 to patch files
dave
parents:
5667
diff
changeset
|
27 |
Patch4: mozilla-04-s11x-smkfl.diff |
5716 | 28 |
Patch5: mozilla-05-common-tar-option.diff |
6899
ae2726fcc2f5
* patches/mozilla-07-bz307041.diff: Remove unused patch.
hh150184
parents:
6616
diff
changeset
|
29 |
Patch6: thunderbird-06-save-all-attach.diff |
5667 | 30 |
|
31 |
URL: http://www.sun.com/software/javadesktopsystem/ |
|
32 |
||
6242 | 33 |
BuildRoot: %{_tmppath}/%{name}-%{tarball_version}-build |
5667 | 34 |
Prefix: /usr |
35 |
Provides: webclient |
|
36 |
Autoreqprov: on |
|
37 |
||
38 |
##################################### |
|
39 |
## Package Defines Section ## |
|
40 |
##################################### |
|
41 |
||
42 |
%define _unpackaged_files_terminate_build 0 |
|
43 |
%define _tbdir %{_libdir}/%{name} |
|
44 |
%define _gmdatadir %{_datadir} |
|
45 |
%ifos solaris |
|
46 |
%define _gmdatadir %{_basedir}/share |
|
47 |
%endif |
|
48 |
||
49 |
##################################### |
|
50 |
## Package Requirements Section ## |
|
51 |
##################################### |
|
52 |
||
5775 | 53 |
BuildRequires: libpng-devel |
54 |
BuildRequires: libjpeg |
|
55 |
BuildRequires: zlib-devel |
|
56 |
BuildRequires: zip |
|
57 |
BuildRequires: perl |
|
58 |
BuildRequires: autoconf |
|
59 |
BuildRequires: libIDL-devel |
|
60 |
BuildRequires: glib2-devel |
|
61 |
BuildRequires: gtk2-devel |
|
5667 | 62 |
Prereq: fileutils perl |
63 |
Prereq: /usr/bin/killall |
|
64 |
||
65 |
##################################### |
|
66 |
## Package Description Section ## |
|
67 |
##################################### |
|
68 |
||
69 |
%description |
|
70 |
Mozilla Thunderbird is a standalone e-mail and newsgroup client |
|
71 |
that can be used as a companion to Mozilla Firefox or by itself. |
|
72 |
||
73 |
##################################### |
|
74 |
## Package Preparation Section ## |
|
75 |
##################################### |
|
76 |
||
77 |
%prep |
|
78 |
||
6009
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
79 |
%setup -q -c -n %{name} |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
80 |
cd .. |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
81 |
/bin/mv %{name} %{name}.tmp.$$ |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
82 |
/bin/mv %{name}.tmp.$$/mozilla %{name} |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
83 |
rm -rf %{name}.tmp.$$ |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
84 |
cd %{name} |
5667 | 85 |
%patch1 -p1 |
86 |
%patch2 -p1 |
|
5669
e56f7dce459a
switch files in tarball mozilla-s11-src.tar.bz2 to patch files
dave
parents:
5667
diff
changeset
|
87 |
%patch3 -p1 |
e56f7dce459a
switch files in tarball mozilla-s11-src.tar.bz2 to patch files
dave
parents:
5667
diff
changeset
|
88 |
%patch4 -p1 |
5716 | 89 |
%patch5 -p1 |
6899
ae2726fcc2f5
* patches/mozilla-07-bz307041.diff: Remove unused patch.
hh150184
parents:
6616
diff
changeset
|
90 |
%patch6 -p1 |
5667 | 91 |
|
92 |
##################################### |
|
93 |
## Package Build Section ## |
|
94 |
##################################### |
|
95 |
||
96 |
%build |
|
97 |
||
98 |
%ifos linux |
|
99 |
if [ -x /usr/bin/getconf ]; then |
|
100 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
101 |
fi |
|
102 |
%else |
|
103 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
104 |
%endif |
|
105 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
106 |
CPUS=1 |
|
107 |
fi |
|
108 |
||
5861 | 109 |
cat << "EOF" > .mozconfig |
5667 | 110 |
. $topsrcdir/mail/config/mozconfig |
111 |
mk_add_options BUILD_OFFICIAL=1 |
|
112 |
mk_add_options MOZILLA_OFFICIAL=1 |
|
113 |
ac_add_options --prefix=%{_prefix} |
|
114 |
ac_add_options --libdir=%{_libdir} |
|
115 |
ac_add_options --mandir=%{_mandir} |
|
116 |
ac_add_options --enable-xft |
|
117 |
ac_add_options --enable-default-toolkit=gtk2 |
|
6616 | 118 |
ac_add_options --enable-static |
119 |
ac_add_options --disable-shared |
|
5667 | 120 |
ac_add_options --disable-tests |
121 |
ac_add_options --disable-freetype2 |
|
122 |
ac_add_options --disable-auto-deps |
|
123 |
ac_add_options --disable-debug |
|
124 |
EOF |
|
125 |
||
126 |
BUILD_OFFICIAL=1 |
|
127 |
MOZILLA_OFFICIAL=1 |
|
5717
60499fb6305a
Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball format between linux and solaris
dave
parents:
5716
diff
changeset
|
128 |
MOZ_PKG_FORMAT=BZ2 |
5667 | 129 |
#CFLAGS= |
130 |
#CXXFLAGS= |
|
5717
60499fb6305a
Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball format between linux and solaris
dave
parents:
5716
diff
changeset
|
131 |
export BUILD_OFFICIAL MOZILLA_OFFICIAL MOZ_PKG_FORMAT CFLAGS CXXFLAGS |
5667 | 132 |
|
133 |
./configure |
|
134 |
make export |
|
6616 | 135 |
# FIXME: disabled parallel build as it seems to break the build sometimes |
136 |
make libs |
|
5667 | 137 |
|
5861 | 138 |
cd mail/installer |
5667 | 139 |
make |
140 |
cd - |
|
141 |
||
142 |
%install |
|
143 |
/bin/rm -rf $RPM_BUILD_ROOT |
|
144 |
||
145 |
DESTDIR=$RPM_BUILD_ROOT \ |
|
146 |
make install |
|
147 |
/bin/rm -rf $RPM_BUILD_ROOT%{_tbdir} |
|
5861 | 148 |
BUILDDIR=`pwd` |
5680
19b62aabaf43
* firefox.spec: Change gtar to tar; add two necessary mkdir's.
dc144907
parents:
5669
diff
changeset
|
149 |
cd $RPM_BUILD_ROOT%{_libdir} |
5861 | 150 |
/usr/bin/bzip2 -dc $BUILDDIR/dist/thunderbird-*.tar.bz2 | /bin/tar -xf - |
5667 | 151 |
|
152 |
/bin/mkdir -p $RPM_BUILD_ROOT%{_gmdatadir}/applications |
|
153 |
/bin/mkdir -p $RPM_BUILD_ROOT%{_gmdatadir}/pixmaps |
|
154 |
#/bin/mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
|
155 |
install -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_gmdatadir}/pixmaps/thunderbird-icon.png |
|
156 |
install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_gmdatadir}/applications/thunderbird.desktop |
|
157 |
||
158 |
#/bin/cat %{SOURCE3} | /usr/bin/sed -e 's,FFDIR,%{_tbdir},g' > \ |
|
159 |
# $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases |
|
160 |
#/bin/chmod 755 $RPM_BUILD_ROOT%{_tbdir}/thunderbird-rebuild-databases |
|
161 |
||
162 |
/bin/rm -f $RPM_BUILD_ROOT%{_bindir}/thunderbird |
|
163 |
/bin/ln -s ../lib/thunderbird/thunderbird $RPM_BUILD_ROOT%{_bindir}/thunderbird |
|
164 |
||
165 |
# install the man page |
|
166 |
#install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/thunderbird.1 |
|
167 |
||
168 |
# upgrade installed-chrome.txt |
|
169 |
#/bin/cat %{SOURCE5} >> $RPM_BUILD_ROOT%{_tbdir}/chrome/installed-chrome.txt |
|
170 |
||
171 |
||
172 |
%clean |
|
173 |
#/bin/rm -rf $RPM_BUILD_ROOT |
|
174 |
||
175 |
######################################### |
|
176 |
## Package Post[Un] Install Section ## |
|
177 |
######################################### |
|
178 |
||
179 |
%post |
|
180 |
# run ldconfig before regxpcom |
|
181 |
/sbin/ldconfig >/dev/null 2>/dev/null |
|
182 |
||
183 |
%postun |
|
184 |
/sbin/ldconfig >/dev/null 2>/dev/null |
|
185 |
||
186 |
%preun |
|
187 |
||
188 |
##################################### |
|
189 |
## Package Files Section ## |
|
190 |
##################################### |
|
191 |
||
192 |
%files |
|
193 |
%defattr(-,root,root) |
|
194 |
%dir %{_tbdir} |
|
195 |
%{_tbdir}/* |
|
196 |
%{_bindir}/thunderbird |
|
197 |
#%{_mandir}/man1/* |
|
198 |
%{_gmdatadir}/applications/%{name}.desktop |
|
199 |
%{_gmdatadir}/pixmaps/%{name}-icon.png |
|
200 |
||
201 |
%changelog |
|
6899
ae2726fcc2f5
* patches/mozilla-07-bz307041.diff: Remove unused patch.
hh150184
parents:
6616
diff
changeset
|
202 |
* Fri Mar 10 2006 [email protected] |
ae2726fcc2f5
* patches/mozilla-07-bz307041.diff: Remove unused patch.
hh150184
parents:
6616
diff
changeset
|
203 |
- Add patch thunderbird-06-save-all-attach.diff to fix 6373061. |
ae2726fcc2f5
* patches/mozilla-07-bz307041.diff: Remove unused patch.
hh150184
parents:
6616
diff
changeset
|
204 |
|
6616 | 205 |
* Tue Jan 17 2006 - [email protected] |
206 |
- Bump tarball version to 1.5 |
|
207 |
- add two configure options --enable-static, --disable-shared |
|
208 |
- to get rid of intermedia shared libraries |
|
209 |
- disable parallel build option |
|
210 |
||
6262 | 211 |
* Tue Nov 08 2005 - [email protected] |
212 |
- Bump tarball version to 1.5rc1 |
|
213 |
- Remove the patch mozilla-07-bz307041.diff since it's upstreamed in 1.5rc1 already |
|
214 |
||
6242 | 215 |
* Thu Nov 1 2005 - [email protected] |
216 |
- change version to numeric and introduce %tarball_version |
|
217 |
||
6148
415a59f458f7
* thunderbird.spec: Bump to 1.5b2 and patch 307041 from bugzilla.
hh150184
parents:
6009
diff
changeset
|
218 |
* Fri Oct 21 2005 - <[email protected]> |
415a59f458f7
* thunderbird.spec: Bump to 1.5b2 and patch 307041 from bugzilla.
hh150184
parents:
6009
diff
changeset
|
219 |
- Bump to 1.5b2. |
415a59f458f7
* thunderbird.spec: Bump to 1.5b2 and patch 307041 from bugzilla.
hh150184
parents:
6009
diff
changeset
|
220 |
- Add patch 307041 from bugzilla. |
415a59f458f7
* thunderbird.spec: Bump to 1.5b2 and patch 307041 from bugzilla.
hh150184
parents:
6009
diff
changeset
|
221 |
|
6009
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
222 |
* Mon Sep 26 2005 - <[email protected]> |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
223 |
- Bump to 1.5b1. |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
224 |
- Move dir mozilla to thunderbird after tarball unpacking. |
e7cfb0e5975d
* firefox.spec: Bump to 1.5b1, Move dir mozilla to
hh150184
parents:
5861
diff
changeset
|
225 |
|
5775 | 226 |
* Thu Sep 08 2005 - [email protected] |
227 |
- Change BuildPrereq to BuildRequires, a format that build-gnome2 understands. |
|
228 |
||
229 |
* Mon Sep 05 2005 - Dave Lin <[email protected]> |
|
5716 | 230 |
- Add patches to remove the specific gtar options |
5717
60499fb6305a
Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball format between linux and solaris
dave
parents:
5716
diff
changeset
|
231 |
- Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball |
60499fb6305a
Set MOZ_PKG_FORMAT=BZ2 to keep consistent of tarball format between linux and solaris
dave
parents:
5716
diff
changeset
|
232 |
format between linux and solaris |
5716 | 233 |
|
5680
19b62aabaf43
* firefox.spec: Change gtar to tar; add two necessary mkdir's.
dc144907
parents:
5669
diff
changeset
|
234 |
* Fri Sep 02 2005 - [email protected] |
19b62aabaf43
* firefox.spec: Change gtar to tar; add two necessary mkdir's.
dc144907
parents:
5669
diff
changeset
|
235 |
- Change gtar to tar and rework tar command. |
19b62aabaf43
* firefox.spec: Change gtar to tar; add two necessary mkdir's.
dc144907
parents:
5669
diff
changeset
|
236 |
|
19b62aabaf43
* firefox.spec: Change gtar to tar; add two necessary mkdir's.
dc144907
parents:
5669
diff
changeset
|
237 |
* Mon Aug 22 2005 - Dave Lin <[email protected]> |
5667 | 238 |
- initial version of the spec file created |
239 |