%define pkg_name Mail-SMTP-Honeypot %define pkg_version 0.06 %define rpm_pkg_version 0.06 %define rpm_pkg_release 1.n0i.2 Summary: Dummy mail server Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/M/MI/MIKER/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Net::DNS::Codes) >= 0.08 BuildRequires: perl(Net::DNS::ToolKit) >= 0.24 BuildRequires: perl(Net::NBsocket) >= 0.12 BuildRequires: perl(Proc::PidUtil) >= 0.07 BuildRequires: perl(Sys::Hostname::FQDN) >= 0.07 BuildRequires: perl(Unix::Syslog) >= 0.97 %description Mail::SMTP::Honeypot is a perl module that appears to provide all the functionality of a standard SMTP server except that when the targeted command state is detected (default DATA), it terminates the connection with a temporary failure. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_mod} # fix @$%^$ attempt to modify PID %{__perl} -pi -e 's{(\$\$ =)}{# $1}m' t/parseSMTP.t %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 GPL rc.honeypot.pl.sample rc.honeypot.sample README %changelog * Tue May 22 2007 Marius Feraru - 0.06-1.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 0.06 * Sat Feb 04 2006 Marius Feraru 0.01-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.10 - rebuild on perl 5.8.8