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