1
0
forked from perl/perl-Mail-Box
Files
perl-Mail-Box/perl-Mail-Box.spec

136 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Mail-Box
#
# 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/
#
# norootforbuild
Name: perl-Mail-Box
%define cpan_name Mail-Box
Summary: Manage a mailbox, a folder with messages
Version: 2.101
Release: 0
License: Artistic License, GPL (see LICENSE file)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Mail-Box/
Source0: http://mirror.netcologne.de/cpan/authors/id/M/MA/MARKOV/Mail-Box-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Errno)
BuildRequires: perl(File::Spec) >= 0.7
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(TAP::Harness) >= 3.00
# testing
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Pod) >= 1.00
# other not perl || perl-base
BuildRequires: perl(Date::Format)
BuildRequires: perl(Digest::HMAC_MD5)
## this would only allow build for o:F
%if 0%{?suse_version} > 1120
BuildRequires: perl(Encode) >= 2.26
%else
BuildRequires: perl(Encode)
%endif
BuildRequires: perl(File::Remove) >= 0.20
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(MIME::Types) >= 1.004
BuildRequires: perl(Mail::Address)
BuildRequires: perl(Object::Realize::Later) >= 0.14
BuildRequires: perl(Scalar::Util) >= 1.13
BuildRequires: perl(URI) >= 1.23
BuildRequires: perl(User::Identity) >= 0.93
# optional
BuildRequires: perl(HTML::FormatText) >= 2.01
BuildRequires: perl(HTML::TreeBuilder) >= 3.13
BuildRequires: perl(MIME::Entity) >= 3.00
#BuildRequires: perl(Mail::IMAPClient) >= 3.00
BuildRequires: perl(Mail::Internet) >= 2.01
#BuildRequires: perl(Mail::Transport::Dbx) >= 0.04
BuildRequires: perl(Time::HiRes) >= 1.51
##
Requires: perl(Errno)
Requires: perl(File::Spec) >= 0.7
Requires: perl(MIME::Base64)
Requires: perl(Sys::Hostname)
Requires: perl(TAP::Harness) >= 3.00
# other not perl || perl-base
Requires: perl(Date::Format)
Requires: perl(Digest::HMAC_MD5)
## this would only allow usage for o:F
%if 0%{?suse_version} > 1120
Requires: perl(Encode) >= 2.26
%else
Requires: perl(Encode)
%endif
Requires: perl(File::Remove) >= 0.20
Requires: perl(IO::Scalar)
Requires: perl(MIME::Types) >= 1.004
Requires: perl(Mail::Address)
Requires: perl(Object::Realize::Later) >= 0.14
Requires: perl(Scalar::Util) >= 1.13
Requires: perl(URI) >= 1.23
Requires: perl(User::Identity) >= 0.93
# optional
Recommends: perl(HTML::FormatText) >= 2.01
Recommends: perl(HTML::TreeBuilder) >= 3.13
Recommends: perl(MIME::Entity) >= 3.00
Recommends: perl(Mail::IMAPClient) >= 3.00
Recommends: perl(Mail::Internet) >= 2.01
Recommends: perl(Mail::Transport::Dbx) >= 0.04
Recommends: perl(Time::HiRes) >= 1.51
%description
The Mail::Box folder is a modern mail-folder manager --at least at the
moment of this writing ;) It is written to be a replacement of MailTools
and Mail::Folder, an alternative to the Email::* set of modules.
The most important modules are Mail::Box::Manager, Mail::Box, and
Mail::Message. Their documentation explain the features in more detail
than this document. The Mail::Box-Overview page describe each set of
modules in more detail.
Author:
-------
Mark Overmeer
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-, root, root)
%doc ChangeLog LICENSE README* MANIFEST TODO.v2
%changelog