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