File perl-MIME-Lite.spec of Package perl-MIME-Lite
#
# spec file for package perl-MIME-Lite
#
# 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/
#
Url: http://cpan.org/modules/by-module/MIME/
Name: perl-MIME-Lite
Version: 3.028
Release: 0
Requires: perl-Email-Date-Format perl-MailTools perl-MIME-Types
BuildRequires: perl-Email-Date-Format
BuildRequires: perl-MIME-Types
BuildRequires: perl-MailTools
BuildRequires: perl-macros
Summary: Module for Generating MIME messages
License: Artistic-1.0 or GPL-2.0+
Group: Development/Libraries/Perl
Source: MIME-Lite-%{version}.tar.gz
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.
%prep
%setup -n MIME-Lite-%{version} -q
%__sed -i 's/\r$//' COPYING INSTALLING LICENSE MANIFEST README examples/* contrib/MailTool.pm 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