%global pkg_name Email-MIME %global pkg_version 1.861 %global rpm_pkg_version 1.86_1 %global rpm_pkg_release 1.n0i.5 Summary: Easy MIME message parsing Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl %if %{!?_without_test:1}0 BuildRequires: perl(Email::MIME::ContentType) >= 1.01 BuildRequires: perl(Email::MIME::Encodings) >= 1.3 BuildRequires: perl(Email::Simple) >= 1.99 BuildRequires: perl(Encode) >= 1.99 BuildRequires: perl(MIME::Types) >= 1.13 %endif %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 %{pkg_name}-%{pkg_version} %build %{perl_build} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes LICENSE README %changelog * Wed Nov 07 2007 Marius Feraru - 1.86_1-1.n0i.5.1.861 - version 1.861 - spec update (new reb00t build tools) * Wed Aug 01 2007 Marius Feraru - 1.86_0-1.n0i.4.1.860 - version 1.860 * Tue May 22 2007 Marius Feraru - 1.85_9-1.n0i.3.1.859 - spec file (re)created using N0i::CPAN::RPMizer 1.146 - version 1.859 * Sat Jul 15 2006 Marius Feraru - 1.85-1.n0i.2 - version 1.85 * Wed Aug 03 2005 Marius Feraru 1.82-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7