]> git.pld-linux.org Git - packages/balsa.git/blob - balsa.spec
- desktop fixes, rel. 4
[packages/balsa.git] / balsa.spec
1 #
2 # Conditional build:
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
7 #
8 Summary:        balsa - GNOME e-Mail program
9 Summary(pl):    Klient poczty dla GNOME z silnikiem mutt-a
10 Summary(es):    Balsa es un lector de e-mail. Usa el toolkit GTK
11 Summary(pt_BR): Balsa é um leitor de e-mail. Usa o toolkit GTK
12 Name:           balsa
13 Version:        2.0.17
14 Release:        4
15 License:        GPL
16 Group:          X11/Applications
17 Source0:        http://balsa.gnome.org/%{name}-%{version}.tar.bz2
18 # Source0-md5:  851db68728ed9adea615eb2f249fa1ee
19 Patch0:         %{name}-locale-names.patch
20 Patch1:         %{name}-desktop.patch
21 Patch2:         %{name}-iconv-in-libc.patch
22 URL:            http://balsa.gnome.org/
23 BuildRequires:  aspell-devel >= 0.50
24 BuildRequires:  autoconf >= 2.52
25 BuildRequires:  automake
26 %{?with_esmtp:BuildRequires:    libesmtp-devel}
27 BuildRequires:  libgnomeprintui-devel >= 1.106.0
28 %{?with_gpgme:BuildRequires:    gpgme-devel >= 0.4.3}
29 BuildRequires:  gtk+2-devel >= 2.2.0
30 BuildRequires:  intltool
31 # gtkhtml 3.0 is preferred over libgtkhtml-2* if present, but we have gtkhtml 3.1 now
32 %{?with_gtkhtml:BuildRequires:  libgtkhtml-devel >= 2.0}
33 %{?with_gtkhtml:BuildConflicts: gtkhtml-devel < 3.1}
34 BuildRequires:  libltdl-devel
35 BuildRequires:  libgnomeprintui-devel >= 2.1.4
36 BuildRequires:  libgnomeui-devel >= 2.3.3.1-2
37 BuildRequires:  libtool
38 %{?with_ldap:BuildRequires:     openldap-devel}
39 BuildRequires:  openssl-devel >= 0.9.7d
40 BuildRequires:  pcre-devel >= 3.0
41 BuildRequires:  scrollkeeper >= 0.1.4
42 %{?with_gpgme:Requires: gpgme >= 0.4.3}
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 e-Mail program for the GNOME desktop, supporting local mailboxes, POP3
47 and IMAP. GNOME is the GNU Network Object Model Environment. That's a
48 fancy name but really GNOME is a nice GUI desktop environment. It
49 makes using your computer easy, powerful, and easy to configure.
50
51 %description -l es
52 Balsa es un lector de e-mail. Es parte del entorno GNOME. Soporta
53 cajas de correo electrónico locales, POP3 y IMAP.
54
55 %description -l pl
56 Balsa to klient e-mail dla ¶rodowiska GNOME. Obs³uguje POP3, IMAP oraz
57 lokalne skrzynki pocztowe. GNOME to Network Object Model Environment.
58 Mimo osobliwej nazwy jest to naprawdê estetyczne ¶rodowisko graficzne.
59 Dziêki niemu u¿ywanie komputera jest ³atwiejsze; system jest
60 potê¿niejszy i ³atwo go skonfigurowaæ.
61
62 %description -l pt_BR
63 Balsa é um leitor de e-mail, parte do ambiente de desktop GNOME.
64 Suporta caixas de correio locais, POP3 a IMAP.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch1 -p1
70 %patch2 -p1
71
72 mv -f po/{no,nb}.po
73
74 %build
75 intltoolize --copy --force
76 %{__libtoolize}
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 %{__autoconf}
81 %configure \
82         --with-ssl \
83         %{!?with_esmtp:--without-esmtp} \
84         %{?with_gtkhtml:--enable-gtkhtml} \
85         %{!?with_gtkhtml:--disable-gtkhtml}\
86         %{!?with_gpgme:--without-gpgme} \
87         %{?with_ldap:--with-ldap} \
88         %{!?with_ldap:--without-ldap}
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %find_lang %{name} --with-gnome --all-name
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post -p /usr/bin/scrollkeeper-update
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README TODO
108 %attr(755,root,root) %{_bindir}/*
109 %{_sysconfdir}/sound/events/*
110 %{_datadir}/%{name}
111 %{_datadir}/sounds/%{name}
112 %{_libdir}/bonobo/servers/*.server
113 %{_datadir}/idl/*.idl
114 %{_mandir}/man1/*
115 %{_omf_dest_dir}/%{name}
116 %{_desktopdir}/*
117 %{_pixmapsdir}/*
This page took 0.038357 seconds and 3 git commands to generate.