File sylpheed.spec of Package sylpheed
#
# spec file for package sylpheed
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%define MAJORVER 3
%define MINORVER 7
%define REV 0
Name:           sylpheed
Version:        %{MAJORVER}.%{MINORVER}.%{REV}
Release:        0
Summary:        A GTK+ based, lightweight, and fast e-mail client
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Email/Clients
URL:            http://sylpheed.sraoss.jp/
Source:         http://sylpheed.sraoss.jp/sylpheed/v%{MAJORVER}.%{MINORVER}/%{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-typemismatch.patch
BuildRequires:  compface
BuildRequires:  libassuan-devel
BuildRequires:  libgpgme-devel
BuildRequires:  libopenssl-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
%if 0%{?suse_version} != 1600
# Leap 16.0 does not provide them
BuildRequires:  gtkspell-devel
BuildRequires:  pkgconfig(enchant)
%endif
%description
Sylpheed is an e-mail client (and news reader) based on GTK+, running on
X Window System, and aiming for
 * Quick response
 * Simple, graceful, and well-polished interface
 * Easy configuration
 * Intuitive operation
 * Abundant features
The appearance and interface are similar to some popular e-mail clients for
Windows, such as Outlook Express, Becky!, and Datula. The interface is also
designed to emulate the mailers on Emacsen, and almost all commands are
accessible with the keyboard.
The messages are managed by MH format, and you'll be able to use it together
with another mailer based on MH format (like Mew). You can also utilize
fetchmail or/and procmail, and external programs on receiving (like inc or
imget).
[Packager Note] this package was compiled with GnuPG, OpenSSL, iconv, compface, IPv6, gtkspell (openSUSE 11.1 or later only). JPilot, LDAP, Oniguruma supprt was not included yet.
%package devel
Summary:        A GTK+ based, lightweight, and fast e-mail client
Group:          Development/Libraries/Other
Requires:       sylpheed = %{version}
%description devel
Sylpheed is an e-mail client (and news reader) based on GTK+, running on
X Window System
%prep
%setup -q
%if 0%{?suse_version} > 1600
%patch -P 0 -p1
%endif
%build
%if 0%{?suse_version} >= 1101
  %define gtkspell_config "--enable-gtkspell"
%else
  %define gtkspell_config "--disable-gtkspell"
%endif
%configure %{gtkspell_config}
make %{?_smp_mflags}
%suse_update_desktop_file %{name}
%install
%make_install
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 *.png %{buildroot}%{_datadir}/pixmaps
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%post
ldconfig
%postun
ldconfig
%lang_package
%files lang -f %{name}.lang
%files
%license COPYING COPYING.LIB LICENSE
%doc AUTHORS ChangeLog ChangeLog.ja ChangeLog-1.0 ChangeLog-1.0.ja README README.es README.ja NEWS NEWS-1.0 NEWS-2.0 TODO TODO.ja
%{_bindir}/%{name}
%{_libdir}/libsylph-0.so.1*
%{_libdir}/libsylpheed-plugin-0.so.1*
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/faq/
%dir %{_datadir}/%{name}/faq/*/
%dir %{_datadir}/%{name}/manual/
%dir %{_datadir}/%{name}/manual/*/
%{_datadir}/%{name}/*/*/%{name}*.html
%{_datadir}/pixmaps/%{name}*.png
%{_datadir}/applications/%{name}.desktop
%files devel
%{_includedir}/%{name}
%{_libdir}/libsylph-0.so
%{_libdir}/libsylpheed-plugin-0.so
%changelog