%global pkg_name Email-MIME-Attachment-Stripper %global pkg_version 1.314 %global rpm_pkg_version 1.31_4 %global rpm_pkg_release 1.n0i.3 Summary: Strip the attachments from a mail Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 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 BuildRequires: perl(ExtUtils::MakeMaker) %if %{!?_without_test:1}0 BuildRequires: perl(Email::MIME) >= 1.82 BuildRequires: perl(Email::MIME::ContentType) >= 1.0 BuildRequires: perl(Email::MIME::Modifier) >= 1.41 %endif %description Email::MIME::Attachment::Stripper - Strip the attachments from a mail Given a Email::MIME object, detach all attachments from the message. These are then available separately. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %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 * Thu Oct 04 2007 Marius Feraru - 1.31_4-1.n0i.3.1.314 - version 1.314 * Tue May 22 2007 Marius Feraru - 1.31_3-1.n0i.2.1.313 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 1.313 * Thu Aug 04 2005 Marius Feraru 1.31-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7