%define modname Email-Date-Format %define modver 1.005 Summary: Produce RFC 2822 date strings Name: perl-%{modname} Version: %perl_convert_version %{modver} Release: 6 License: GPLv2+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{modname} Source0: http://www.cpan.org/modules/by-module/Email/%{modname}-%{modver}.tar.gz BuildArch: noarch BuildRequires: perl(Test::More) BuildRequires: perl(Capture::Tiny) BuildRequires: perl(Time::Local) BuildRequires: perl-devel %description This module provides a simple means for generating an RFC 2822 compliant datetime string. (In case you care, they're not RFC 822 dates, because they use a four digit year, which is not allowed in RFC 822.) %prep %setup -qn %{modname}-%{modver} %build %__perl Makefile.PL INSTALLDIRS=vendor %make %check make test %install %makeinstall_std %files %doc Changes LICENSE README %{perl_vendorlib}/Email %{_mandir}/man3/*