%define pkg_name Email-Send-Test %define pkg_version 2.00 %define rpm_pkg_version 2.00 %define rpm_pkg_release 1.n0i.2 Summary: Captures emails sent via Email::Send for testing Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/A/AD/ADAMK/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) Requires: perl(File::Spec) >= 0.82 Requires: perl(Email::Send) >= 1.42 %{!?_without_test:BuildRequires: perl(File::Spec) >= 0.82} %{!?_without_test:BuildRequires: perl(Email::Send) >= 1.42} %{!?_without_test:BuildRequires: perl(Test::More) >= 0.47} %description Email::Send::Test is a module for testing applications that use Email::Send to send email. In particular, it kind of assumes that you use some sort of configuration file to specify the "channel" to dispatch mail to, or something else that can be easily overloaded or altered in the test script. %prep %setup -n %{pkg_name}-%{pkg_version} find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Fri Dec 30 2005 Marius Feraru 2.00-1.n0i.2 - version 2.00 * Thu Aug 04 2005 Marius Feraru 0.02-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7