3 %bcond_without ldap # build without LDAP support
4 %bcond_with gpgme # build with GPG support (experimental)
5 %bcond_without esmtp # build without ESMTP support
6 %bcond_without gtkhtml # build without HTML support
8 Summary: Balsa Mail Client
9 Summary(es.UTF-8): Balsa es un lector de e-mail
10 Summary(pl.UTF-8): Balsa - klient poczty
11 Summary(pt_BR.UTF-8): Balsa é um leitor de e-mail
16 Group: X11/Applications
17 Source0: http://balsa.gnome.org/%{name}-%{version}.tar.bz2
18 # Source0-md5: ccc5f1f11028dd604c6dac97017a1274
19 Patch0: %{name}-locale-names.patch
20 Patch1: %{name}-desktop.patch
21 Patch2: %{name}-includes.patch
22 Patch3: %{name}-no_hooks.patch
23 URL: http://balsa.gnome.org/
24 BuildRequires: ORBit2-devel >= 1:2.12.4
25 BuildRequires: aspell-devel >= 2:0.50
26 BuildRequires: autoconf >= 2.52
27 BuildRequires: automake
28 BuildRequires: heimdal-devel
29 %{?with_esmtp:BuildRequires: libesmtp-devel}
30 BuildRequires: libgnomeprintui-devel >= 1.106.0
31 BuildRequires: glib2-devel >= 2.6.4-1
32 BuildRequires: gmime-devel >= 2.1.9
33 %{?with_gpgme:BuildRequires: gpgme-devel >= 1:0.9.0}
34 BuildRequires: gtk+2-devel >= 2:2.2.0
35 BuildRequires: intltool
36 %{?with_gtkhtml:BuildRequires: libgtkhtml-devel >= 2.0}
37 BuildRequires: libltdl-devel
38 BuildRequires: libgnomeprintui-devel >= 2.1.4
39 BuildRequires: libgnomeui-devel >= 2.3.3.1-2
40 BuildRequires: libtool
41 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
42 BuildRequires: openssl-devel >= 0.9.7d
43 BuildRequires: pcre-devel >= 3.0
44 BuildRequires: rpmbuild(macros) >= 1.197
45 BuildRequires: scrollkeeper >= 0.1.4
46 %{?with_gpgme:Requires: gpgme >= 1:0.9.0}
47 Requires(post,postun): scrollkeeper
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Balsa is an e-mail reader. This client is part of the GNOME
52 desktop environment. It supports local mailboxes, POP3 and
55 %description -l es.UTF-8
56 Balsa es un lector de e-mail. Es parte del entorno GNOME. Soporta
57 cajas de correo electrónico locales, POP3 y IMAP.
59 %description -l pl.UTF-8
60 Balsa to klient e-mail. Jest częścią środowiska GNOME. Obsługuje POP3,
61 IMAP oraz lokalne skrzynki pocztowe.
63 %description -l pt_BR.UTF-8
64 Balsa é um leitor de e-mail, parte do ambiente de desktop GNOME.
65 Suporta caixas de correio locais, POP3 a IMAP.
87 %{!?with_esmtp:--without-esmtp} \
88 %{!?with_gtkhtml:--disable-gtkhtml}\
89 %{?with_gpgme:--with-gpgme} \
90 %{?with_ldap:--with-ldap}
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
99 %find_lang %{name} --with-gnome --all-name
102 rm -rf $RPM_BUILD_ROOT
105 %scrollkeeper_update_post
108 %scrollkeeper_update_postun
110 %files -f %{name}.lang
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog NEWS README TODO
113 %attr(755,root,root) %{_bindir}/*
114 %{_sysconfdir}/sound/events/*
116 %{_datadir}/sounds/%{name}
117 %{_libdir}/bonobo/servers/*.server
118 %{_datadir}/idl/*.idl
120 %{_omf_dest_dir}/%{name}
121 %{_desktopdir}/*.desktop
123 %{_iconsdir}/hicolor/48x48/mimetypes/*.png