[521] | 1 | Name: perl-MIME-Lite |
---|
[5876] | 2 | Version: 3.028 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
[521] | 4 | Summary: MIME::Lite - low-calorie MIME generator |
---|
| 5 | |
---|
| 6 | Group: Development/Libraries |
---|
[5876] | 7 | License: GPL+ or Artistic |
---|
[521] | 8 | URL: http://search.cpan.org/dist/MIME-Lite/ |
---|
| 9 | Source0: http://www.cpan.org/authors/id/Y/YV/YVES/MIME-Lite-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | |
---|
| 12 | BuildArch: noarch |
---|
| 13 | BuildRequires: perl >= 1:5.6.1 |
---|
[5876] | 14 | BuildRequires: perl(Carp) |
---|
| 15 | BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More) |
---|
| 16 | BuildRequires: perl(Email::Date::Format) perl(Mail::Address) |
---|
| 17 | BuildRequires: perl(File::Spec) |
---|
| 18 | BuildRequires: perl(MIME::Types) >= 1.28 |
---|
| 19 | # Tests |
---|
| 20 | BuildRequires: perl(Test::More) |
---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 22 | # not detected by automated find-requires: |
---|
| 23 | Requires: perl(Email::Date::Format) |
---|
| 24 | Requires: perl(MIME::Types) >= 1.28 |
---|
[521] | 25 | |
---|
| 26 | %description |
---|
| 27 | MIME::Lite is intended as a simple, standalone module for generating (not |
---|
| 28 | parsing!) MIME messages... specifically, it allows you to output a simple, |
---|
| 29 | decent single- or multi-part message with text or binaryattachments. It does |
---|
| 30 | not require that you have the Mail:: or MIME:: modules installed. |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n MIME-Lite-%{version} |
---|
[5876] | 34 | sed -i 's/\r//' examples/* |
---|
| 35 | sed -i 's/\r//' contrib/README |
---|
[521] | 36 | |
---|
| 37 | %build |
---|
| 38 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 39 | make %{?_smp_mflags} |
---|
| 40 | |
---|
| 41 | %install |
---|
[5876] | 42 | rm -rf %{buildroot} |
---|
| 43 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 44 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 45 | find %{buildroot} -depth -type d -empty -exec rmdir ';' |
---|
[521] | 46 | |
---|
[5876] | 47 | %check |
---|
[521] | 48 | make test |
---|
| 49 | |
---|
| 50 | %clean |
---|
[5876] | 51 | rm -rf %{buildroot} |
---|
[521] | 52 | |
---|
| 53 | %files |
---|
| 54 | %defattr(-,root,root,-) |
---|
[5876] | 55 | %doc changes.pod README examples contrib COPYING LICENSE |
---|
[521] | 56 | %{perl_vendorlib}/* |
---|
| 57 | %{_mandir}/man3/*.3* |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %changelog |
---|
[5876] | 61 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.028-1 |
---|
| 62 | - updated to 3.028 |
---|
| 63 | |
---|
[3739] | 64 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.01-6 |
---|
| 65 | - rebuild with perl-5.12.3 |
---|
| 66 | |
---|
[521] | 67 | * Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.01-5vl1 |
---|
| 68 | - Initial build for Vine Linux |
---|
| 69 | |
---|
| 70 | * Sun Sep 10 2006 Mike McGrath <imlinux@gmail.com> 3.01-5 |
---|
| 71 | - Rebuild |
---|
| 72 | |
---|
| 73 | * Thu Mar 30 2006 Mike McGrath <imlinux@gmail.com> 3.01-4 |
---|
| 74 | - New maintainer |
---|
| 75 | |
---|
| 76 | * Thu Jun 23 2005 Ralf Corsepius <ralf@links2linux.de> 3.01-3 |
---|
| 77 | - Add %%{dist}. |
---|
| 78 | |
---|
| 79 | * Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 3.01-2 |
---|
| 80 | - Review suggestions from José Pedro Oliveira |
---|
| 81 | |
---|
| 82 | * Fri Mar 18 2005 Hunter Matthews <thm@duke.edu> 3.01-1 |
---|
| 83 | - Initial packageing. |
---|