%define pkg_name DateTime-Format-Mail %define pkg_version 0.3001 %define rpm_pkg_version 0.30_01 %define rpm_pkg_release 1.n0i.8 Summary: Convert between DateTime and RFC2822/822 formats 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/D/DR/DROLSKY/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) Requires: perl(DateTime) >= 0.18 Requires: perl(Params::Validate) >= 0.67 %{!?_without_test:BuildRequires: perl(DateTime) >= 0.18} %{!?_without_test:BuildRequires: perl(Params::Validate) >= 0.67} %{!?_without_test:BuildRequires: perl(Test::More) >= 0.47} %global perl_filter_req '0.1705$' %description RFCs 2822 and 822 specify date formats to be used by email. This module parses and emits such dates. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %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 Artistic AUTHORS Changes COPYING CREDITS LICENCE README %changelog * Fri Aug 31 2007 Marius Feraru - 0.30_01-1.n0i.8.0.3001 - version 0.3001 * Tue May 22 2007 Marius Feraru - 0.30-1.n0i.7 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 0.30 * Sun Jul 24 2005 Marius Feraru 0.29_01-5.n0i.6.0.2901 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Thu Mar 31 2005 Marius FERARU 0:0.29_01-1.n0i.5.0.2901 - rebuild (FC4) * Sun Dec 05 2004 Marius FERARU 0:0.29-1.n0i.4.0.2901 - rebuild (perl 5.8.6) * Wed May 05 2004 Marius Feraru 0:0.29_01-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Sun Feb 01 2004 Marius FERARU 0:0.2901-0.n0i.1 - version 0.2901 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Mon Jun 30 2003 Marius FERARU 0.25-0.n0i - Initial build.