]> git.pld-linux.org Git - packages/thunderbird.git/blame - icedove.spec
- up to 3.0.1
[packages/thunderbird.git] / icedove.spec
CommitLineData
cd056caa 1#
c4ddd260
PG
2# TODO:
3# - CHECK all features of enigmail
4# - separate spec for enigmail
5# - update or remove -myspell.patch
6# - package unpackaged files
7# - update branding patch!!!
8#
44be9ed4 9# Conditional builds
10%bcond_without enigmail # don't build enigmail - GPG/PGP support
11%bcond_without gnomeui # disable gnomeui support
12%bcond_without gnomevfs # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext.
13%bcond_without gnome # disable all GNOME components (gnome+gnomeui+gnomevfs)
14%bcond_without ldap # disable e-mail address lookups in LDAP directories
d076d93e 15%bcond_without lightning # disable sunbird calendar
44be9ed4 16#
17%if %{without gnome}
18%undefine with_gnomeui
19%undefine with_gnomevfs
20%endif
cadfb931 21%define enigmail_ver 1.0.0
44be9ed4 22
23Summary: Icedove - email client
24Summary(pl.UTF-8): Icedove - klient poczty
25Name: icedove
20547094
AZ
26Version: 3.0.1
27Release: 0.1
44be9ed4 28License: MPL 1.1 or GPL v2+ or LGPL v2.1+
29Group: Applications/Networking
cadfb931 30Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2
20547094 31# Source0-md5: f004aa5ddf2a30b5df96e06df416b0c9
44be9ed4 32Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
cadfb931 33# Source1-md5: e3a6d379f1a72ac023751bdde2de750a
44be9ed4 34Source2: %{name}-branding.tar.bz2
35# Source2-md5: e775b8cb658de32f30b403bc9b7950bf
36Source3: %{name}-rm_nonfree.sh
37Source4: %{name}.desktop
38Source5: %{name}.sh
2f151de0 39Source6: %{name}-enigmail.manifest
44be9ed4 40Patch0: %{name}-branding.patch
faa5c89d
SP
41Patch1: %{name}-enigmail-shared.patch
42Patch2: %{name}-gcc.patch
43Patch3: %{name}-fonts.patch
44Patch4: %{name}-install.patch
45Patch5: %{name}-myspell.patch
46Patch6: %{name}-prefs.patch
0ffa69f3 47Patch7: %{name}-breakpad.patch
4922c320 48URL: http://www.pld-linux.org/Packages/Icedove
44be9ed4 49%{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1}
50BuildRequires: automake
51BuildRequires: freetype-devel >= 1:2.1.8
52%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0}
53BuildRequires: gtk+2-devel >= 1:2.0.0
54BuildRequires: libIDL-devel >= 0.8.0
55%{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0}
56%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
57BuildRequires: libjpeg-devel >= 6b
58BuildRequires: libpng-devel >= 1.2.0
59BuildRequires: libstdc++-devel
60BuildRequires: myspell-devel
cadfb931
SP
61BuildRequires: nspr-devel >= 1:4.8
62BuildRequires: nss-devel >= 1:3.12.0
44be9ed4 63BuildRequires: pango-devel >= 1:1.1.0
64BuildRequires: sed >= 4.0
65BuildRequires: xorg-lib-libXext-devel
66BuildRequires: xorg-lib-libXft-devel >= 2.1
67BuildRequires: xorg-lib-libXinerama-devel
68BuildRequires: xorg-lib-libXp-devel
69BuildRequires: xorg-lib-libXt-devel
70Requires: myspell-common
71Requires: nspr >= 1:4.6.1
72Requires: nss >= 1:3.11.3
73Obsoletes: mozilla-thunderbird
74Obsoletes: mozilla-thunderbird-dictionary-en-US
75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
9e366f18
AM
77%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
78
44be9ed4 79# iceweasel/icedove/iceape provide their own versions
80%define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpcom_core.so libxpistub.so
81%define _noautoprovfiles %{_libdir}/%{name}/components
82# we don't want these to satisfy xulrunner-devel
83%define _noautoprov libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so
84# and as we don't provide them, don't require either
85%define _noautoreq libgtkembedmoz.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxpcom.so libxul.so
86
87%description
88Icedove is an open-source,fast and portable email client.
89
90%description -l pl.UTF-8
91Icedove jest open sourcowym, szybkim i przenośnym klientem poczty.
92
93%package addon-enigmail
94Summary: Extension for the authentication and encryption features provided by GnuPG
95Summary(pl.UTF-8): Rozszerzenie do uwierzytelniania i szyfrowania zapewnianego przez GnuPG
96License: MPL/LGPL
97Group: Applications/Networking
98URL: http://enigmail.mozdev.org/
cd056caa 99Requires: %{name} = %{version}-%{release}
d076d93e 100Requires: gnupg
75991bbb 101Obsoletes: mozilla-thunderbird-addon-enigmail
44be9ed4 102
103%description addon-enigmail
c5e06599 104Enigmail is an extension to the Icedove mail client which allows users
105to access the authentication and encryption features provided by
106GnuPG.
44be9ed4 107
108Main Features:
109- Encrypt/sign mail when sending, decrypt/authenticate received mail
110- Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156)
111- Per-Account based encryption and signing defaults
112- Per-Recipient rules for automated key selection, and
113 enabling/disabling encryption and signing
114- OpenPGP key management interface
115
116%description addon-enigmail -l pl.UTF-8
c5e06599 117Enigmail to rozszerzenie klienta pocztowego Icedove pozwalające
faa5c89d
SP
118użytkownikom na dostęp do uwierzytelniania i szyfrowania zapewnianego
119przez GnuPG.
44be9ed4 120
121Główne możliwości:
122- szyfrowanie/podpisywanie poczty przy wysyłaniu,
123 odszyfrowywanie/uwierzytelnianie poczty odebranej
124- obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156)
125- ustawienia domyślne szyfrowania i podpisywania dla każdego konta
126- reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz
127 podpisywania dla każdego adresata
128- interfejs do zarządzania kluczami OpenPGP
129
130%prep
5c67740b 131%setup -q -c -a2
cadfb931 132cd comm-1.9.1
44be9ed4 133%{?with_enigmail:tar xvfz %{SOURCE1} -C mailnews/extensions}
134/bin/sh %{SOURCE3}
965ee251 135%patch0 -p2
faa5c89d
SP
136%{?with_enigmail:%patch1 -p1}
137%patch2 -p1
4ccc2157 138%patch3 -p1
faa5c89d
SP
139%patch4 -p1
140#%patch5 -p1
141%patch6 -p0
0ffa69f3 142%patch7 -p1
44be9ed4 143
144%build
cadfb931 145cd comm-1.9.1
44be9ed4 146export CFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`"
147export CXXFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`"
148
cadfb931
SP
149cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
150cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
44be9ed4 151cp -f %{_datadir}/automake/config.* directory/c-sdk/config/autoconf
152
153cat << 'EOF' > .mozconfig
cb0e4412
SP
154mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu}
155
59c5a0e8 156# Options for 'configure' (same as command-line options).
44be9ed4 157ac_add_options --prefix=%{_prefix}
158ac_add_options --exec-prefix=%{_exec_prefix}
159ac_add_options --bindir=%{_bindir}
160ac_add_options --sbindir=%{_sbindir}
161ac_add_options --sysconfdir=%{_sysconfdir}
162ac_add_options --datadir=%{_datadir}
163ac_add_options --includedir=%{_includedir}
164ac_add_options --libdir=%{_libdir}
165ac_add_options --libexecdir=%{_libexecdir}
166ac_add_options --localstatedir=%{_localstatedir}
167ac_add_options --sharedstatedir=%{_sharedstatedir}
168ac_add_options --mandir=%{_mandir}
169ac_add_options --infodir=%{_infodir}
170%if %{?debug:1}0
59c5a0e8 171ac_add_options --disable-optimize
44be9ed4 172ac_add_options --enable-debug
173ac_add_options --enable-debug-modules
59c5a0e8
SP
174ac_add_options --enable-debugger-info-modules
175ac_add_options --enable-crash-on-assert
44be9ed4 176%else
177ac_add_options --disable-debug
178ac_add_options --disable-debug-modules
59c5a0e8
SP
179ac_add_options --disable-logging
180ac_add_options --enable-optimize="%{rpmcflags} -Os"
44be9ed4 181%endif
182%if %{with tests}
183ac_add_options --enable-tests
184%else
185ac_add_options --disable-tests
186%endif
187%if %{with gnomeui}
188ac_add_options --enable-gnomeui
189%else
190ac_add_options --disable-gnomeui
191%endif
192%if %{with gnomevfs}
193ac_add_options --enable-gnomevfs
194%else
195ac_add_options --disable-gnomevfs
196%endif
197%if %{with ldap}
198ac_add_options --enable-ldap
199%else
200ac_add_options --disable-ldap
201%endif
59c5a0e8 202ac_add_options --disable-crashreporter
59c5a0e8
SP
203ac_add_options --disable-updater
204ac_add_options --disable-xterm-updates
205ac_add_options --enable-ldap
206ac_add_options --enable-postscript
59c5a0e8 207ac_add_options --enable-startup-notification
d076d93e 208%if %{with lightning}
cb0e4412 209ac_add_options --enable-calendar
d076d93e
SP
210%else
211ac_add_options --disable-calendar
212%endif
44be9ed4 213ac_add_options --disable-installer
214ac_add_options --disable-jsd
215ac_add_options --disable-xprint
cadfb931
SP
216ac_add_options --disable-permissions
217ac_add_options --disable-pref-extensions
44be9ed4 218ac_add_options --enable-canvas
219ac_add_options --enable-crypto
220ac_add_options --enable-default-toolkit="gtk2"
44be9ed4 221ac_add_options --enable-mathml
222ac_add_options --enable-optimize="%{rpmcflags}"
223ac_add_options --enable-pango
224ac_add_options --enable-reorder
5f2ef1b6 225ac_add_options --enable-static
44be9ed4 226ac_add_options --disable-strip
227ac_add_options --disable-strip-libs
228ac_add_options --enable-system-cairo
229ac_add_options --enable-system-myspell
230ac_add_options --enable-svg
231ac_add_options --enable-xft
cadfb931
SP
232ac_add_options --enable-application=mail
233ac_add_options --enable-default-toolkit=cairo-gtk2
44be9ed4 234ac_add_options --enable-xinerama
235ac_add_options --with-system-jpeg
236ac_add_options --with-system-nspr
237ac_add_options --with-system-nss
238ac_add_options --with-system-png
239ac_add_options --with-system-zlib
240ac_add_options --with-pthreads
241ac_add_options --enable-single-profile
242ac_add_options --disable-profilesharing
cb0e4412 243ac_add_options --with-distribution-id=org.pld-linux
36018d06 244#ac_add_options --with-branding=icedove/branding
44be9ed4 245ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
246EOF
247
90e998ba 248%{__make} -j1 -f client.mk build \
d076d93e
SP
249 STRIP="/bin/true" \
250 CC="%{__cc}" \
44be9ed4 251 CXX="%{__cxx}"
252
253%if %{with enigmail}
59c5a0e8 254cd mailnews/extensions/enigmail
d076d93e 255./makemake -r
59c5a0e8 256%{__make} -C ../../../obj-%{_target_cpu}/mailnews/extensions/enigmail \
d076d93e
SP
257 STRIP="/bin/true" \
258 CC="%{__cc}" \
259 CXX="%{__cxx}"
44be9ed4 260%endif
261
262%install
263rm -rf $RPM_BUILD_ROOT
264install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \
60c77977
SP
265 $RPM_BUILD_ROOT%{_datadir}/%{name}
266install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
44be9ed4 267
36018d06 268cd comm-1.9.1
cb0e4412 269%{__make} -C obj-%{_target_cpu}/mail/installer stage-package \
44be9ed4 270 DESTDIR=$RPM_BUILD_ROOT \
271 MOZ_PKG_APPDIR=%{_libdir}/%{name} \
272 PKG_SKIP_STRIP=1
273
274# move arch independant ones to datadir
275mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
276mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
277mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs
59c5a0e8 278#mv $RPM_BUILD_ROOT%{_libdir}/%{name}/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
44be9ed4 279mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
280mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
281ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
282ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
283ln -s ../../share/%{name}/greprefs $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs
59c5a0e8 284#ln -s ../../share/%{name}/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/icons
44be9ed4 285ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
286ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
287
288rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
289ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
290
291%{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove
292ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird
293ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird
294
295install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
296
297%if %{with enigmail}
298_enig_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
299install -d $_enig_dir/chrome
300install -d $_enig_dir/components
301install -d $_enig_dir/defaults/preferences
302mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail.jar $_enig_dir/chrome
44be9ed4 303mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig* $_enig_dir/components
304mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so $_enig_dir/components
305mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt $_enig_dir/components
306mv -f $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences/enigmail.js $_enig_dir/defaults/preferences
307cp -f mailnews/extensions/enigmail/package/install.rdf $_enig_dir
308rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/preferences
309rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-en-US.jar
310rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmail-skin.jar
311rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome/enigmime.jar
312rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/components/enig*
313rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/libenigmime.so
314rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/components/ipc.xpt
2f151de0 315cp -f %{SOURCE6} $_enig_dir/chrome.manifest
60c77977 316#cp -f icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/icedove.png
44be9ed4 317%endif
318
319# win32 stuff
320rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/dirver
321
322%clean
323rm -rf $RPM_BUILD_ROOT
324
325%pretrans
326if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
327 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
328fi
bc9cd18a 329for d in chrome defaults greprefs icons isp res; do
44be9ed4 330 if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then
331 install -d %{_datadir}/%{name}
332 mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d
333 fi
334done
335exit 0
336
337%files
338%defattr(644,root,root,755)
339%attr(755,root,root) %{_bindir}/icedove
340%attr(755,root,root) %{_bindir}/mozilla-thunderbird
341%attr(755,root,root) %{_bindir}/thunderbird
342%dir %{_libdir}/%{name}
60c77977 343%{_libdir}/%{name}/*.ini
44be9ed4 344%dir %{_libdir}/%{name}/components
345%attr(755,root,root) %{_libdir}/%{name}/components/*.so
346%{_libdir}/%{name}/components/*.js
347%{_libdir}/%{name}/components/*.xpt
348%attr(755,root,root) %{_libdir}/%{name}/*.so
349%attr(755,root,root) %{_libdir}/%{name}/*.sh
350%attr(755,root,root) %{_libdir}/%{name}/*-bin
351%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
60c77977 352#%attr(755,root,root) %{_libdir}/%{name}/reg*
bc9cd18a 353%attr(755,root,root) %{_libdir}/%{name}/icedove
44be9ed4 354%{_libdir}/%{name}/*.txt
60c77977 355#%attr(755,root,root) %{_libdir}/%{name}/x*
44be9ed4 356
357# symlinks
358%{_libdir}/%{name}/chrome
359%{_libdir}/%{name}/defaults
360%{_libdir}/%{name}/dictionaries
361%{_libdir}/%{name}/greprefs
59c5a0e8 362#%{_libdir}/%{name}/icons
44be9ed4 363%{_libdir}/%{name}/isp
364%{_libdir}/%{name}/res
365
366%{_libdir}/%{name}/dependentlibs.list
59c5a0e8
SP
367#%{_libdir}/%{name}/updater
368#%{_libdir}/%{name}/update.locale
60c77977 369#%{_pixmapsdir}/*.png
44be9ed4 370%{_desktopdir}/*.desktop
371
372%dir %{_datadir}/%{name}
373%{_datadir}/%{name}/chrome
374%{_datadir}/%{name}/defaults
375%{_datadir}/%{name}/greprefs
59c5a0e8 376#%{_datadir}/%{name}/icons
44be9ed4 377%{_datadir}/%{name}/isp
378%{_datadir}/%{name}/res
379
60c77977
SP
380%dir %{_libdir}/%{name}/modules
381%{_libdir}/%{name}/modules/*.js*
382%dir %{_libdir}/%{name}/modules/activity
383%{_libdir}/%{name}/modules/activity/*.js
384%dir %{_libdir}/%{name}/modules/gloda
385%{_libdir}/%{name}/modules/gloda/*.js
386
44be9ed4 387%dir %{_libdir}/%{name}/extensions
388%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
94402182 389%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
44be9ed4 390
391%if %{with enigmail}
392%files addon-enigmail
393%defattr(644,root,root,755)
394%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
395%endif
This page took 0.314219 seconds and 4 git commands to generate.