File balsa.spec of Package balsa
#
# spec file for package balsa (Version 2.4.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: balsa
#BuildRequires: bind bind-devel cyrus-sasl-gssapi fdupes gnome-doc-utils gnutls-devel intltool pcre-devel postfix scrollkeeper
%define TOUCHSCREEN_OPTIMIZATION 0
BuildRequires: compface
BuildRequires: glib2-devel gtk2-devel
BuildRequires: krb5-devel
BuildRequires: libcanberra-devel
BuildRequires: libesmtp-devel
BuildRequires: libxml2-devel
BuildRequires: libnotify-devel
BuildRequires: libunique-devel
BuildRequires: libwebkit-devel
BuildRequires: perl-XML-Parser
BuildRequires: gmime-2_4-devel
BuildRequires: gpgme-devel
BuildRequires: gtksourceview-devel
BuildRequires: gtkspell-devel
BuildRequires: openldap2-devel
BuildRequires: openssl-devel
BuildRequires: sqlite-devel
BuildRequires: gconf2-devel gnome-keyring-devel libgnome-devel libgnomeui-devel
BuildRequires: docbook_4 gnome-doc-utils-devel
BuildRequires: fdupes translation-update-upstream update-desktop-files
License: GPL v2 or later
Group: Productivity/Networking/Email/Clients
Version: 2.4.1
Release: 2
Requires: %{name}-lang = %{version}
Summary: The GNOME Mail Program
Url: http://balsa.gnome.org/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nice GUI program to manage e-mail.
%lang_package
%prep
%setup -q
translation-update-upstream
sed -i -e "s,sr@Latn,sr@latin," configure.in
mv po/sr@Latn.po po/sr@latin.po
%build
autoreconf -f -i
export CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
%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-webkit\
--with-unique
make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -G "Mail Client" %{name}
%find_lang balsa
%fdupes $RPM_BUILD_ROOT%{_datadir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README COPYING ChangeLog NEWS TODO AUTHORS HACKING
%doc docs/mh-mail-HOWTO docs/vconvert.awk docs/pine2vcard
%{_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