2 # - not packaged /usr/share/locale/ar/LC_MESSAGES/balsa.mo
3 # - problems with id locale
5 # Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
8 %bcond_without ldap # build without LDAP support
9 %bcond_with gpgme # build with GPG support (experimental)
10 %bcond_without esmtp # build without ESMTP support
11 %bcond_without gtkhtml # build without HTML support
12 %bcond_with gtkhtml2 # build with libgtkhtml-2 (default gtkhtml-3)
13 %bcond_with compface # build with Compface
14 %bcond_with gtksourceview # build with GtkSourceView
15 %bcond_without gtkspell # build without GtkSpell
16 %bcond_with sqlite # build with SQLite for GPE address books
18 Summary: Balsa Mail Client
19 Summary(es.UTF-8): Balsa es un lector de e-mail
20 Summary(pl.UTF-8): Balsa - klient poczty
21 Summary(pt_BR.UTF-8): Balsa é um leitor de e-mail
26 Group: X11/Applications
27 Source0: http://pawsa.fedorapeople.org/balsa/%{name}-%{version}.tar.bz2
28 # Source0-md5: bd7ac44f0cf3117a5fdb46d17dac2b51
29 Patch0: %{name}-desktop.patch
30 Patch1: %{name}-gtkhtml4.patch
31 URL: http://balsa.gnome.org/
32 BuildRequires: ORBit2-devel >= 1:2.12.4
33 BuildRequires: aspell-devel >= 2:0.50
34 BuildRequires: autoconf >= 2.52
35 BuildRequires: automake
36 %{?with_compface:BuildRequires: compface-devel}
37 BuildRequires: docbook-dtd412-xml
38 BuildRequires: gettext-devel
39 BuildRequires: glib2-devel >= 2.6.4-1
40 BuildRequires: gmime-devel >= 2.4.0
41 BuildRequires: gnome-doc-utils
42 %{?with_gpgme:BuildRequires: gpgme-devel >= 1:0.9.0}
43 BuildRequires: gtk+2-devel >= 2:2.10.0
44 %{?with_gtksourceview:BuildRequires: gtksourceview-devel}
45 %{?with_gtkspell:BuildRequires: gtkspell-devel}
46 BuildRequires: heimdal-devel
47 BuildRequires: intltool
48 %{?with_esmtp:BuildRequires: libesmtp-devel >= 1.0.4}
50 %{!?with_gtkhtml2:BuildRequires: gtkhtml-devel >= 3.14}
51 %{?with_gtkhtml2:BuildRequires: libgtkhtml-devel >= 2.0}
53 BuildRequires: libgnomeui-devel >= 2.3.3.1-2
54 BuildRequires: libltdl-devel
55 BuildRequires: libnotify-devel
56 BuildRequires: libtool
57 BuildRequires: libunique-devel
58 %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
59 BuildRequires: openssl-devel >= 0.9.7d
60 BuildRequires: pcre-devel >= 3.0
61 BuildRequires: pkgconfig
62 BuildRequires: rpmbuild(macros) >= 1.197
63 BuildRequires: scrollkeeper >= 0.1.4
64 # actually, it requires sqlite >= 2.8
65 %{?with_sqlite:BuildRequires: sqlite3-devel}
66 %{?with_gpgme:Requires: gpgme >= 1:0.9.0}
67 Requires(post,postun): scrollkeeper
68 # sr@Latn vs. sr@latin
69 Conflicts: glibc-misc < 6:2.7
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 Balsa is an e-mail reader. This client is part of the GNOME
74 desktop environment. It supports local mailboxes, POP3 and
77 %description -l es.UTF-8
78 Balsa es un lector de e-mail. Es parte del entorno GNOME. Soporta
79 cajas de correo electrónico locales, POP3 y IMAP.
81 %description -l pl.UTF-8
82 Balsa to klient e-mail. Jest częścią środowiska GNOME. Obsługuje POP3,
83 IMAP oraz lokalne skrzynki pocztowe.
85 %description -l pt_BR.UTF-8
86 Balsa é um leitor de e-mail, parte do ambiente de desktop GNOME.
87 Suporta caixas de correio locais, POP3 a IMAP.
104 %{!?with_esmtp:--without-esmtp} \
105 %{!?with_gtkhtml:--disable-gtkhtml}\
106 %{?with_gtkhtml2:--with-gtkhtml=2}\
107 %{?with_gpgme:--with-gpgme} \
108 %{?with_compface:--with-compface} \
109 %{?with_gtksourceview:--with-gtksourceview} \
110 %{?with_gtkspell:--with-gtkspell} \
111 %{?with_sqlite:--with-sqlite} \
112 %{?with_ldap:--with-ldap}
116 rm -rf $RPM_BUILD_ROOT
119 DESTDIR=$RPM_BUILD_ROOT
121 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
122 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
123 %find_lang %{name} --with-gnome --all-name
126 rm -rf $RPM_BUILD_ROOT
129 %scrollkeeper_update_post
132 %scrollkeeper_update_postun
134 %files -f %{name}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog NEWS README TODO
137 %attr(755,root,root) %{_bindir}/*
138 %{_sysconfdir}/sound/events/*
140 %{_datadir}/sounds/%{name}
142 %{_omf_dest_dir}/%{name}
143 %{_desktopdir}/*.desktop
145 %{_iconsdir}/hicolor/48x48/mimetypes/*.png