2 # - lots files listed twice
3 # - not packaged /usr/share/locale/ar/LC_MESSAGES/balsa.mo
4 # - problems with id locale
7 %bcond_without ldap # build without LDAP support
8 %bcond_with gpgme # build with GPG support (experimental)
9 %bcond_without esmtp # build without ESMTP support
10 %bcond_without gtkhtml # build without HTML support
11 %bcond_with gtkhtml2 # build with libgtkhtml-2 (default gtkhtml-3)
12 %bcond_with compface # build with Compface
13 %bcond_with gtksourceview # build with GtkSourceView
14 %bcond_with gtkspell # build with GtkSpell
15 %bcond_with sqlite # build with SQLite for GPE address books
17 Summary: Balsa Mail Client
18 Summary(es.UTF-8): Balsa es un lector de e-mail
19 Summary(pl.UTF-8): Balsa - klient poczty
20 Summary(pt_BR.UTF-8): Balsa é um leitor de e-mail
25 Group: X11/Applications
26 Source0: http://balsa.gnome.org/%{name}-%{version}.tar.bz2
27 # Source0-md5: 6a86f8bebc21bd279b9fd4d2a21a36c0
28 Patch0: %{name}-desktop.patch
29 Patch1: %{name}-includes.patch
30 Patch2: %{name}-without_id_lang.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: heimdal-devel
38 %{?with_esmtp:BuildRequires: libesmtp-devel >= 1.0.4}
39 BuildRequires: libgnomeprintui-devel >= 1.106.0
40 BuildRequires: glib2-devel >= 2.6.4-1
41 BuildRequires: gmime-devel >= 2.1.9
42 %{?with_gpgme:BuildRequires: gpgme-devel >= 1:0.9.0}
43 BuildRequires: gtk+2-devel >= 2:2.2.0
44 %{?with_gtksourceview:BuildRequires: gtksourceview-devel}
45 %{?with_gtkspell:BuildRequires: gtkspell-devel}
46 BuildRequires: intltool
48 %{?with_gtkhtml2:BuildRequires: libgtkhtml-devel >= 2.0}
49 %{!?with_gtkhtml2:BuildRequires: gtkhtml-devel >= 3.0}
51 BuildRequires: libltdl-devel
52 BuildRequires: libgnomeprintui-devel >= 2.1.4
53 BuildRequires: libgnomeui-devel >= 2.3.3.1-2
54 BuildRequires: libtool
55 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
56 BuildRequires: openssl-devel >= 0.9.7d
57 BuildRequires: pcre-devel >= 3.0
58 BuildRequires: rpmbuild(macros) >= 1.197
59 BuildRequires: scrollkeeper >= 0.1.4
60 # actually, it requires sqlite >= 2.8
61 %{?with_sqlite:BuildRequires: sqlite3-devel}
62 %{?with_gpgme:Requires: gpgme >= 1:0.9.0}
63 Requires(post,postun): scrollkeeper
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 Balsa is an e-mail reader. This client is part of the GNOME
68 desktop environment. It supports local mailboxes, POP3 and
71 %description -l es.UTF-8
72 Balsa es un lector de e-mail. Es parte del entorno GNOME. Soporta
73 cajas de correo electrónico locales, POP3 y IMAP.
75 %description -l pl.UTF-8
76 Balsa to klient e-mail. Jest częścią środowiska GNOME. Obsługuje POP3,
77 IMAP oraz lokalne skrzynki pocztowe.
79 %description -l pt_BR.UTF-8
80 Balsa é um leitor de e-mail, parte do ambiente de desktop GNOME.
81 Suporta caixas de correio locais, POP3 a IMAP.
100 %{!?with_esmtp:--without-esmtp} \
101 %{!?with_gtkhtml:--disable-gtkhtml}\
102 %{?with_gtkhtml2:--with-gtkhtml=2}\
103 %{?with_gpgme:--with-gpgme} \
104 %{?with_compface:--with-compface} \
105 %{?with_gtksourceview:--with-gtksourceview} \
106 %{?with_gtkspell:--with-gtkspell} \
107 %{?with_sqlite:--with-sqlite} \
108 %{?with_ldap:--with-ldap}
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT
117 %find_lang %{name} --with-gnome --all-name
120 rm -rf $RPM_BUILD_ROOT
123 %scrollkeeper_update_post
126 %scrollkeeper_update_postun
128 %files -f %{name}.lang
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog NEWS README TODO
131 %attr(755,root,root) %{_bindir}/*
132 %{_sysconfdir}/sound/events/*
134 %{_datadir}/sounds/%{name}
135 %{_libdir}/bonobo/servers/*.server
136 %{_datadir}/idl/*.idl
138 %{_omf_dest_dir}/%{name}
139 %{_desktopdir}/*.desktop
141 %{_iconsdir}/hicolor/48x48/mimetypes/*.png