File perl-Email-Folder-Exchange.spec of Package perl-Email-Folder-Exchange

#
# spec file for package perl-Email-Folder-Exchange
#
# Copyright (c) 2016 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/
#


Name:           perl-Email-Folder-Exchange
Version:        2.0
Release:        0
%define cpan_name Email-Folder-Exchange
Summary:        Access your Microsoft Exchange 2000/2003/2007/2010 email from perl
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Email-Folder-Exchange/
Source0:        http://www.cpan.org/authors/id/W/WS/WSMITH/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Authen::NTLM)
BuildRequires:  perl(Crypt::SSLeay)
BuildRequires:  perl(Email::Folder)
BuildRequires:  perl(Email::Simple)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(SOAP::Lite)
BuildRequires:  perl(URI)
Requires:       perl(Authen::NTLM)
Requires:       perl(Crypt::SSLeay)
Requires:       perl(Email::Folder)
Requires:       perl(Email::Simple)
Requires:       perl(LWP::UserAgent)
Requires:       perl(SOAP::Lite)
Requires:       perl(URI)
%{perl_requires}

%description
Add access to Microsoft Exchange to Email::Folder. Contains API
enhancements to allow folder browsing.

Email::Folder::Exchange is a wrapper around two modules [included]:

* Email::Folder::Exchange::WebDAV - Access Exchange 2000/2003 via WebDAV

* Email::Folder::Exchange::EWS - Access Exchange 2007/2010 via EWS

Each module has its own extensions to the Email:Folder protocol.

First, the module tries to connect via EWS. If the server reports a 404
error, the module attempts to fallback to WebDAV.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes Email-Folder-Exchange-undef.tar.gz README test.config

%changelog
openSUSE Build Service is sponsored by