]>
Commit | Line | Data |
---|---|---|
77378d6c | 1 | # TODO: |
917bba73 | 2 | # - use webkit as html widget? |
0d8f743e | 3 | # |
4 | # Conditional build: | |
42a91aa9 | 5 | %bcond_without ldap # build without LDAP support |
de6d62f9 | 6 | %bcond_with gpgme # build with GPG support (experimental) |
42a91aa9 JB |
7 | %bcond_without esmtp # build without ESMTP support |
8 | %bcond_without gtkhtml # build without HTML support | |
917bba73 | 9 | %bcond_without gtkhtml2 # build with libgtkhtml-2 (default gtkhtml-4) |
f5e059ba SS |
10 | %bcond_with compface # build with Compface |
11 | %bcond_with gtksourceview # build with GtkSourceView | |
8b2233c9 | 12 | %bcond_without gtkspell # build without GtkSpell |
f5e059ba | 13 | %bcond_with sqlite # build with SQLite for GPE address books |
917bba73 | 14 | |
f9e82f3d | 15 | Summary: Balsa Mail Client |
d2600085 ER |
16 | Summary(es.UTF-8): Balsa es un lector de e-mail |
17 | Summary(pl.UTF-8): Balsa - klient poczty | |
18 | Summary(pt_BR.UTF-8): Balsa é um leitor de e-mail | |
28f9a5f4 | 19 | Name: balsa |
a2a1a71c | 20 | Version: 2.4.10 |
cd57a794 | 21 | Release: 2 |
d21801d0 | 22 | License: GPL v3+ |
baeee1cb | 23 | Group: X11/Applications |
ddd73823 | 24 | Source0: http://pawsa.fedorapeople.org/balsa/%{name}-%{version}.tar.bz2 |
a2a1a71c | 25 | # Source0-md5: fa2b7cb9d248912ac2e3dcc08cd6aa5b |
77378d6c | 26 | Patch0: %{name}-desktop.patch |
9f9b6cec | 27 | Patch1: %{name}-gtkhtml4.patch |
35f3bdc7 | 28 | URL: http://balsa.gnome.org/ |
3d60ceab | 29 | BuildRequires: ORBit2-devel >= 1:2.12.4 |
d495817e | 30 | BuildRequires: aspell-devel >= 2:0.50 |
3e27fb1d | 31 | BuildRequires: autoconf >= 2.52 |
3dc1d28f | 32 | BuildRequires: automake |
f5e059ba | 33 | %{?with_compface:BuildRequires: compface-devel} |
b9b91a2a | 34 | BuildRequires: docbook-dtd412-xml |
99a45565 | 35 | BuildRequires: gettext-tools |
ea3deab1 | 36 | BuildRequires: glib2-devel >= 2.6.4-1 |
ddd73823 | 37 | BuildRequires: gmime-devel >= 2.4.0 |
b9b91a2a | 38 | BuildRequires: gnome-doc-utils |
1e27ef7e | 39 | BuildRequires: gnome-icon-theme |
62f0cca9 | 40 | %{?with_gpgme:BuildRequires: gpgme-devel >= 1:0.9.0} |
96b911ba | 41 | BuildRequires: gtk+2-devel >= 2:2.10.0 |
f5e059ba SS |
42 | %{?with_gtksourceview:BuildRequires: gtksourceview-devel} |
43 | %{?with_gtkspell:BuildRequires: gtkspell-devel} | |
7ed9b27e | 44 | BuildRequires: heimdal-devel |
b9b91a2a | 45 | BuildRequires: intltool |
99b8f17c | 46 | %{?with_esmtp:BuildRequires: libesmtp-devel >= 1.0.4} |
21aedbc0 | 47 | %if %{with gtkhtml} |
36601551 | 48 | %{!?with_gtkhtml2:BuildRequires: gtkhtml-devel >= 4.0} |
b9b91a2a | 49 | %{?with_gtkhtml2:BuildRequires: libgtkhtml-devel >= 2.0} |
21aedbc0 | 50 | %endif |
d842a069 | 51 | BuildRequires: libgnomeui-devel >= 2.3.3.1-2 |
99b8f17c | 52 | BuildRequires: libltdl-devel |
96b911ba | 53 | BuildRequires: libnotify-devel |
3e27fb1d | 54 | BuildRequires: libtool |
de4e1b98 | 55 | BuildRequires: libunique-devel |
a2fec028 | 56 | %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6} |
3e27fb1d JB |
57 | BuildRequires: openssl-devel >= 0.9.7d |
58 | BuildRequires: pcre-devel >= 3.0 | |
b9b91a2a | 59 | BuildRequires: pkgconfig |
34b555e5 | 60 | BuildRequires: rpmbuild(macros) >= 1.197 |
3e27fb1d | 61 | BuildRequires: scrollkeeper >= 0.1.4 |
510949b2 SS |
62 | # actually, it requires sqlite >= 2.8 |
63 | %{?with_sqlite:BuildRequires: sqlite3-devel} | |
62f0cca9 | 64 | %{?with_gpgme:Requires: gpgme >= 1:0.9.0} |
1415936a | 65 | Requires(post,postun): scrollkeeper |
0fcc9a77 | 66 | # sr@Latn vs. sr@latin |
67 | Conflicts: glibc-misc < 6:2.7 | |
35f3bdc7 | 68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
892589b5 | 69 | |
70 | %description | |
917bba73 ER |
71 | Balsa is an e-mail reader. This client is part of the GNOME desktop |
72 | environment. It supports local mailboxes, POP3 and IMAP. | |
61fd82f6 | 73 | |
1fa6b67f | 74 | %description -l es.UTF-8 |
0d1fcbaa | 75 | Balsa es un lector de e-mail. Es parte del entorno GNOME. Soporta |
1fa6b67f | 76 | cajas de correo electrónico locales, POP3 y IMAP. |
0d1fcbaa | 77 | |
1fa6b67f JR |
78 | %description -l pl.UTF-8 |
79 | Balsa to klient e-mail. Jest częścią środowiska GNOME. Obsługuje POP3, | |
b9b91a2a | 80 | IMAP oraz lokalne skrzynki pocztowe. |
0d1fcbaa | 81 | |
1fa6b67f JR |
82 | %description -l pt_BR.UTF-8 |
83 | Balsa é um leitor de e-mail, parte do ambiente de desktop GNOME. | |
0d1fcbaa | 84 | Suporta caixas de correio locais, POP3 a IMAP. |
61fd82f6 | 85 | |
892589b5 | 86 | %prep |
28f9a5f4 | 87 | %setup -q |
3e27fb1d | 88 | %patch0 -p1 |
917bba73 | 89 | %{!?with_gtkhtml2:%patch1 -p1} |
bd01d0a6 | 90 | |
892589b5 | 91 | %build |
3e27fb1d JB |
92 | %{__libtoolize} |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__autoconf} | |
b9e2379f | 97 | %configure \ |
3d60ceab | 98 | --with-gss \ |
b9e2379f | 99 | --with-ssl \ |
de4e1b98 | 100 | --with-unique \ |
a2a1a71c | 101 | --disable-silent-rules \ |
4245238a | 102 | %{!?with_esmtp:--without-esmtp} \ |
917bba73 ER |
103 | %if %{with gtkhtml} |
104 | --with-html-widget=%{?with_gtkhtml2:gtkhtml2}%{!?with_gtkhtml2:gtkhtml4} \ | |
105 | %else | |
106 | --disable-gtkhtml \ | |
107 | %endif | |
f9e82f3d | 108 | %{?with_gpgme:--with-gpgme} \ |
f5e059ba SS |
109 | %{?with_compface:--with-compface} \ |
110 | %{?with_gtksourceview:--with-gtksourceview} \ | |
111 | %{?with_gtkspell:--with-gtkspell} \ | |
112 | %{?with_sqlite:--with-sqlite} \ | |
f9e82f3d | 113 | %{?with_ldap:--with-ldap} |
c3d28cac | 114 | %{__make} |
892589b5 | 115 | |
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
efc8067a | 119 | %{__make} install \ |
c3d28cac | 120 | DESTDIR=$RPM_BUILD_ROOT |
28f9a5f4 | 121 | |
0fcc9a77 | 122 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
123 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
35f3bdc7 | 124 | %find_lang %{name} --with-gnome --all-name |
892589b5 | 125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
c8f36180 | 129 | %post |
c8f36180 | 130 | %scrollkeeper_update_post |
131 | ||
132 | %postun | |
c8f36180 | 133 | %scrollkeeper_update_postun |
fbe28c35 | 134 | |
28f9a5f4 | 135 | %files -f %{name}.lang |
136 | %defattr(644,root,root,755) | |
1a50b3e2 | 137 | %doc AUTHORS ChangeLog NEWS README TODO |
917bba73 ER |
138 | %attr(755,root,root) %{_bindir}/balsa |
139 | %attr(755,root,root) %{_bindir}/balsa-ab | |
140 | %dir %{_sysconfdir}/sound/events | |
141 | %{_sysconfdir}/sound/events/balsa.soundlist | |
35f3bdc7 | 142 | %{_datadir}/%{name} |
143 | %{_datadir}/sounds/%{name} | |
917bba73 | 144 | %{_mandir}/man1/balsa.1* |
35f3bdc7 | 145 | %{_omf_dest_dir}/%{name} |
917bba73 ER |
146 | %{_desktopdir}/balsa.desktop |
147 | %{_pixmapsdir}/gnome-balsa2.png | |
34b555e5 | 148 | %{_iconsdir}/hicolor/48x48/mimetypes/*.png |