File balsa.spec of Package balsa

# spec file for package balsa
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           balsa
Version:        2.4.9
Release:        2
License:        GPLv2+
Summary:        The GNOME Mail Program
Group:          Productivity/Networking/Email/Clients
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM balsa-fix-scrollkeeper.patch bgo#636805 -- Respect --disable-scrollkeeper
Patch0:         balsa-fix-scrollkeeper.patch
BuildRequires:  compface
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gpgme-devel
BuildRequires:  intltool
BuildRequires:  krb5-devel
BuildRequires:  libesmtp-devel
BuildRequires:  openldap2-devel
BuildRequires:  openssl-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gmime-2.4)
BuildRequires:  pkgconfig(gnome-icon-theme)
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtksourceview-2.0)
BuildRequires:  pkgconfig(gtkspell-2.0)
BuildRequires:  pkgconfig(libbonobo-2.0)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libgnome-2.0)
BuildRequires:  pkgconfig(libgnomeui-2.0)
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  pkgconfig(webkit-1.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Nice GUI program to manage e-mail.

%setup -q
%patch0 -p1

make %{?_smp_mflags}

# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%suse_update_desktop_file -G "Mail Client" %{name}
%find_lang balsa %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%defattr(-, root, root)
%doc docs/mh-mail-HOWTO docs/vconvert.awk docs/pine2vcard
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%doc %{_mandir}/man1/balsa.1*
%config %{_sysconfdir}/sound/events/*.soundlist

%files lang -f balsa.lang