# TODO:
# - CHECK all features of enigmail
# - separate spec for enigmail
-# - update or remove -myspell.patch
+# - remove -myspell.patch
# - package unpackaged files
# - update branding patch!!!
+# - fix hunspell and enable
#
# Conditional builds
%bcond_without enigmail # don't build enigmail - GPG/PGP support
Summary(pl.UTF-8): Icedove - klient poczty
Name: icedove
Version: 3.0.1
-Release: 0.1
+Release: 0.2
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
Patch5: %{name}-myspell.patch
Patch6: %{name}-prefs.patch
Patch7: %{name}-breakpad.patch
+Patch8: %{name}-libpng.patch
+Patch9: %{name}-condstore.patch
URL: http://www.pld-linux.org/Packages/Icedove
%{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1}
BuildRequires: automake
BuildRequires: freetype-devel >= 1:2.1.8
%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0}
BuildRequires: gtk+2-devel >= 1:2.0.0
+#BuildRequires: hunspell-devel
BuildRequires: libIDL-devel >= 0.8.0
%{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0}
%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
BuildRequires: libjpeg-devel >= 6b
BuildRequires: libpng-devel >= 1.2.0
BuildRequires: libstdc++-devel
-BuildRequires: myspell-devel
BuildRequires: nspr-devel >= 1:4.8
BuildRequires: nss-devel >= 1:3.12.0
BuildRequires: pango-devel >= 1:1.1.0
BuildRequires: sed >= 4.0
BuildRequires: startup-notification-devel >= 0.8
BuildRequires: xorg-lib-libXext-devel
-BuildRequires: xorg-lib-libXft-devel >= 2.1
BuildRequires: xorg-lib-libXinerama-devel
-BuildRequires: xorg-lib-libXp-devel
BuildRequires: xorg-lib-libXt-devel
BuildRequires: zip
Requires: myspell-common
#%patch5 -p1
%patch6 -p0
%patch7 -p1
+%patch8 -p1
+%patch9 -p1
%build
cd comm-1.9.1
ac_add_options --disable-strip
ac_add_options --disable-strip-libs
ac_add_options --enable-system-cairo
-ac_add_options --enable-system-myspell
+#ac_add_options --enable-system-hunspell
ac_add_options --enable-svg
ac_add_options --enable-xft
ac_add_options --enable-application=mail