diff --git a/README.md b/README.md index c108328..7f904e1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Email-MIME +This is an extension of the Email::Simple module, to handle MIME encoded messages. It takes a message as a string, splits it up into its constituent parts, and allows you access to various parts of the message. Headers are decoded from MIME encoding. + diff --git a/perl-Email-MIME.spec b/perl-Email-MIME.spec new file mode 100644 index 0000000..2812aa4 --- /dev/null +++ b/perl-Email-MIME.spec @@ -0,0 +1,102 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Email-MIME +Version: 1.925 +Release: 1mamba +Summary: Email::MIME - Easy MIME message parsing. +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://bo.mirror.garr.it/mirrors/CPAN/authors/id/R/RJ/RJBS/Email-MIME-%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +BuildRequires: perl-Email-MIME-ContentType +BuildRequires: perl-Email-MIME-Encodings +## AUTOBUILDREQ-END +BuildRequires: perl-Email-Simple +BuildRequires: perl-MIME-Types +Provides: perl-Email-MIME-Modifier +Obsoletes: perl-Email-MIME-Modifier +Provides: perl-Email-MIME-Creator +Obsoletes: perl-Email-MIME-Creator +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is an extension of the Email::Simple module, to handle MIME encoded messages. It takes a message as a string, splits it up into its constituent parts, and allows you access to various parts of the message. Headers are decoded from MIME encoding. + +%prep + +%setup -q -n Email-MIME-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Thu Dec 12 2013 Automatic Build System 1.925-1mamba +- automatic update by autodist + +* Mon Aug 12 2013 Automatic Build System 1.924-1mamba +- automatic update by autodist + +* Sun Jun 23 2013 Automatic Build System 1.920-1mamba +- automatic version update by autodist + +* Thu Apr 11 2013 Automatic Build System 1.912_01-1mamba +- automatic version update by autodist + +* Sat Aug 11 2012 Automatic Build System 1.911-1mamba +- automatic version update by autodist + +* Wed Apr 25 2012 Automatic Build System 1.910-1mamba +- automatic version update by autodist + +* Sun Jun 19 2011 Automatic Build System 1.908-1mamba +- automatic update by autodist + +* Wed Feb 09 2011 Automatic Build System 1.907-1mamba +- automatic update by autodist + +* Wed Nov 10 2010 Automatic Build System 1.906-1mamba +- automatic update by autodist + +* Sun Sep 12 2010 Automatic Build System 1.905-1mamba +- automatic update by autodist + +* Thu Jan 14 2010 Silvan Calarco 1.903-2mamba +- provide and obsoleted integrated modules perl-Email-MIME-Modifier and perl-Email-MIME-Creator + +* Wed Jan 13 2010 Automatic Build System 1.903-1mamba +- automatic update by autodist + +* Mon Mar 02 2009 Silvan Calarco 1.863-1mamba +- automatic update by autodist + +* Sat Jan 03 2009 Silvan Calarco 1.861-1mamba +- package created by autospec