File claws-mail-maildir.spec of Package claws-mail-maildir

#
# spec file for package claws-mail-maildir
#
# Copyright (c) 2012-2019 Peter Conrad <obs@quisquis.de>
#
# 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/

Summary: Maildir++ Plugin for Claws Mail
Name: claws-mail-maildir
Version: 0.24.4cvs18
Release: 1
License: GPL-2.0+
Group: Productivity/Networking/Email/Clients
Source: http://claws-mail.org/snapshots/plugins/maildir-%{version}.tar.gz
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch0: maildir-scantree.patch
# PATCH-FEATURE-UPSTREAM: conrad@quisquis.de
Patch1: maildir-scanrequired.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch2: maildir-claws390.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch3: maildir-claws3160.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch4: maildir-include.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch5: maildir-claws3170.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch6: maildir-claws3175.patch
# PATCH-FIX-UPSTREAM: conrad@quisquis.de
Patch7: maildir-claws410.patch
URL: http://claws-mail.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: claws-mail
BuildRequires: claws-mail-devel db-devel pinentry-qt5 gtk2-devel
%if 0%{?sle_version} == 150100 && 0%{?is_opensuse}
BuildRequires: enchant-devel
%endif

%description
The Maildir++ plugin for Claws Mail provides direct access to
Maildir++ Mailboxes used by IMAP-Servers like Courier-IMAP,
BincIMAP or Dovecot without having all the IMAP overhead of a
connection to 'localhost'.

%prep
%setup -q -n maildir-%{version}
%patch -P 0 -p0
%patch -P 1 -p1
%patch -P 4 -p1
%if 0%{?suse_version} >= 1230
%patch -P 2 -p0
%endif
%if 0%{?sle_version} >= 150000 || 0%{?suse_version} >= 1501
%patch -P 3 -p1
%endif
%if 0%{?sle_version} >= 150100 && 0%{?is_opensuse} || 0%{?suse_version} >= 1501
%patch -P 5 -p0
%endif
%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} || 0%{?suse_version} >= 1501
%patch -P 6 -p1
%endif
%if 0%{?sle_version} > 150400 && 0%{?is_opensuse} || 0%{?suse_version} > 1504
%patch -P 7 -p1
%endif

%build
%configure
touch config.h
%__make INCLUDES="-I/usr/include/enchant-2 -I/usr/include/gtk-3.0"

%install
%make_install
rm -f %{buildroot}%{_libdir}/claws-mail/plugins/maildir.a
rm -f %{buildroot}%{_libdir}/claws-mail/plugins/maildir.la

%clean
test "%{buildroot}" = "/" || rm -rf "%{buildroot}"

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/claws-mail/plugins/maildir.so

%changelog
openSUSE Build Service is sponsored by