File perl-MIME-Lite.spec of Package perl-MIME-Lite

#
# spec file for package perl-MIME-Lite (Version 3.027)
#
# Copyright (c) 2010 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

Url:            http://cpan.org/modules/by-module/MIME/

Name:           perl-MIME-Lite
Version:        3.027
Release:        6
Requires:       perl-Email-Date-Format perl-MailTools perl-MIME-Types
BuildRequires:  dos2unix perl-Email-Date-Format perl-MIME-Types perl-MailTools
BuildRequires:  perl-macros
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Summary:        Module for Generating MIME messages
Source:         MIME-Lite-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
MIME::Lite is intended as a simple, standalone module for generating
(not parsing!) MIME messages... specifically, it allows you to output a
simple, decent single- or multi-part message with text or binary
attachments. It does not require that you have the Mail:: or MIME::
modules installed.



Authors:
--------
    Eryq <eryq@zeegee.com>

%prep
%setup -n MIME-Lite-%{version} -q
dos2unix COPYING INSTALLING LICENSE MANIFEST README examples/* contrib/MailTool.pm
dos2unix contrib/README

%build
perl Makefile.PL
make %{?_smp_mflags}

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 0644 README MANIFEST changes.pod

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING INSTALLING MANIFEST README changes.pod examples contrib
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/MIME
%{perl_vendorlib}/MIME

%changelog
openSUSE Build Service is sponsored by