8
0
Files
perl-DateTime-Format-Mail/perl-DateTime-Format-Mail.spec

50 lines
1.6 KiB
RPMSpec
Raw Normal View History

%define cpan_name DateTime-Format-Mail
Name: perl-%cpan_name
Version: 0.3001
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version} perl-DateTime perl-DateTime-Locale perl-DateTime-TimeZone perl-Params-Validate
Group: Development/Libraries/Perl
License: GPL
URL: http://search.cpan.org/dist/DateTime-Format-Mail/
Summary: DateTime::Format::Mail - Convert between DateTime and RFC2822/822 formats
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl-DateTime perl-DateTime-Locale perl-DateTime-TimeZone perl-File-Find-Rule perl-Module-Build perl-Params-Validate perl-Test-Signature
%description
RFCs 2822 and 822 specify date formats to be used by email. This module parses and emits such dates.
RFC2822 (April 2001) introduces a slightly different format of date than that used by RFC822 (August 1982). The main correction is that the preferred format is more limited, and thus easier to parse programmatically.
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
export DESTDIR=$RPM_BUILD_ROOT
/usr/bin/perl Build --makefile_env_macros 1 install --installdirs vendor
#%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/DateTime/Format
%{perl_vendorarch}/auto/DateTime/Format/Mail
#/var/adm/perl-modules/%{name}
%doc AUTHORS Artistic COPYING CREDITS Changes LICENCE MANIFEST README
%changelog -n %{name}
* Sun Jun 08 2008 - gerrit.beine@gmx.de
- first release 0.3001