2011-11-17 15:27:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-DateTime-Format-Mail
|
|
|
|
#
|
2013-05-11 22:17:54 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-11-17 15:27:28 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-06-09 15:01:33 +00:00
|
|
|
%define cpan_name DateTime-Format-Mail
|
|
|
|
|
2011-11-17 15:27:28 +00:00
|
|
|
Name: perl-%cpan_name
|
|
|
|
Version: 0.3001
|
2013-05-11 22:17:54 +00:00
|
|
|
Release: 0
|
|
|
|
Provides: %cpan_name = %{version}-%{release}
|
|
|
|
Summary: Convert between DateTime and RFC2822/822 formats
|
|
|
|
License: GPL-1.0+
|
2011-11-17 15:27:28 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/DateTime-Format-Mail/
|
|
|
|
Source: %cpan_name-%{version}.tar.gz
|
2013-05-11 22:17:54 +00:00
|
|
|
BuildRequires: perl-DateTime
|
|
|
|
BuildRequires: perl-DateTime-Locale
|
|
|
|
BuildRequires: perl-DateTime-TimeZone
|
|
|
|
BuildRequires: perl-File-Find-Rule
|
|
|
|
BuildRequires: perl-Module-Build
|
|
|
|
BuildRequires: perl-Params-Validate
|
|
|
|
BuildRequires: perl-Test-Signature
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
|
|
|
Requires: perl-DateTime
|
|
|
|
Requires: perl-DateTime-Locale
|
|
|
|
Requires: perl-DateTime-TimeZone
|
|
|
|
Requires: perl-Params-Validate
|
2011-11-17 15:27:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-10 09:50:30 +00:00
|
|
|
%{perl_requires}
|
2008-06-09 15:01:33 +00:00
|
|
|
|
|
|
|
%description
|
2013-05-11 22:17:54 +00:00
|
|
|
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.
|
2008-06-09 15:01:33 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
|
|
|
|
%build
|
2013-05-11 22:17:54 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
|
|
|
make %{?_smp_mflags}
|
2010-12-22 10:24:43 +00:00
|
|
|
|
|
|
|
%check
|
2008-06-09 15:01:33 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2013-05-11 22:17:54 +00:00
|
|
|
export DESTDIR=%{buildroot}
|
2008-06-09 15:01:33 +00:00
|
|
|
/usr/bin/perl Build --makefile_env_macros 1 install --installdirs vendor
|
|
|
|
#%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
# clean up the hard disc after build
|
2013-05-11 22:17:54 +00:00
|
|
|
rm -rf %{buildroot}
|
2008-06-09 15:01:33 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man?/*
|
2008-12-23 19:24:22 +00:00
|
|
|
%{perl_vendorlib}/DateTime
|
|
|
|
%{perl_vendorarch}/auto/DateTime
|
2008-06-09 15:01:33 +00:00
|
|
|
#/var/adm/perl-modules/%{name}
|
|
|
|
%doc AUTHORS Artistic COPYING CREDITS Changes LICENCE MANIFEST README
|
|
|
|
|
2011-11-17 15:27:28 +00:00
|
|
|
%changelog
|