%bcond_without gnomevfs # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext.
%bcond_without gnome # disable all GNOME components (gnome+gnomeui+gnomevfs)
%bcond_without ldap # disable e-mail address lookups in LDAP directories
+%bcond_without lightning # disable sunbird calendar
#
%if %{without gnome}
%undefine with_gnomeui
Summary: Icedove - email client
Summary(pl.UTF-8): Icedove - klient poczty
Name: icedove
-Version: 3.0
-Release: 0.2
+Version: 3.0.1
+Release: 0.1
License: MPL 1.1 or GPL v2+ or LGPL v2.1+
Group: Applications/Networking
Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2
-# Source0-md5: 9a564ac2489b1b0f9348dc298b913f6c
+# Source0-md5: f004aa5ddf2a30b5df96e06df416b0c9
Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
# Source1-md5: e3a6d379f1a72ac023751bdde2de750a
Source2: %{name}-branding.tar.bz2
Group: Applications/Networking
URL: http://enigmail.mozdev.org/
Requires: %{name} = %{version}-%{release}
+Requires: gnupg
Obsoletes: mozilla-thunderbird-addon-enigmail
%description addon-enigmail
cd comm-1.9.1
%{?with_enigmail:tar xvfz %{SOURCE1} -C mailnews/extensions}
/bin/sh %{SOURCE3}
-%patch0 -p1
+%patch0 -p2
%{?with_enigmail:%patch1 -p1}
%patch2 -p1
%patch3 -p1
ac_add_options --enable-ldap
ac_add_options --enable-postscript
ac_add_options --enable-startup-notification
+%if %{with lightning}
ac_add_options --enable-calendar
+%else
+ac_add_options --disable-calendar
+%endif
ac_add_options --disable-installer
ac_add_options --disable-jsd
ac_add_options --disable-xprint
EOF
%{__make} -j1 -f client.mk build \
- STRIP="/bin/true" \
- CC="%{__cc}" \
+ STRIP="/bin/true" \
+ CC="%{__cc}" \
CXX="%{__cxx}"
%if %{with enigmail}
cd mailnews/extensions/enigmail
-./makemake -r
+./makemake -r
%{__make} -C ../../../obj-%{_target_cpu}/mailnews/extensions/enigmail \
- STRIP="/bin/true" \
- CC="%{__cc}" \
- CXX="%{__cxx}"
+ STRIP="/bin/true" \
+ CC="%{__cc}" \
+ CXX="%{__cxx}"
%endif
%install
%dir %{_libdir}/%{name}/extensions
%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
%if %{with enigmail}
%files addon-enigmail