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 http://bugs.opensuse.org/
#



Name:           balsa
Version:        2.4.9
Release:        2
License:        GPLv2+
Summary:        The GNOME Mail Program
Url:            http://balsa.gnome.org/
Group:          Productivity/Networking/Email/Clients
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM balsa-fix-scrollkeeper.patch bgo#636805 vuntz@opensuse.org -- Respect --disable-scrollkeeper
Patch0:         balsa-fix-scrollkeeper.patch
%define TOUCHSCREEN_OPTIMIZATION 0
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

%description
Nice GUI program to manage e-mail.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1

%build
%configure\
%if %TOUCHSCREEN_OPTIMIZATION
	--enable-touch-ui\
%endif
	--disable-scrollkeeper\
	--enable-more-warnings\
	--enable-smime\
	--with-canberra\
	--with-ldap\
	--with-gpgme\
	--with-gtkspell\
	--with-gtksourceview\
	--with-sqlite\
	--with-rubrica\
	--with-ssl\
	--with-gss\
	--with-compface\
	--with-unique\
	--with-html-widget=webkit
make %{?_smp_mflags}

%install
%makeinstall
# 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}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-, root, root)
%doc README COPYING ChangeLog NEWS TODO AUTHORS HACKING
%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
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/balsa
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
%{_datadir}/pixmaps/*.png
%{_datadir}/sounds/balsa
%doc %{_mandir}/man1/balsa.1*
%config %{_sysconfdir}/sound/events/*.soundlist

%files lang -f balsa.lang

%changelog