2009-03-05 03:49:42 +00:00
|
|
|
#
|
2010-11-24 17:24:15 +00:00
|
|
|
# spec file for package perl-Email-Date-Format (Version 1.002)
|
2009-03-05 03:49:42 +00:00
|
|
|
#
|
2010-01-12 11:07:10 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-03-05 03:49:42 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-24 17:24:15 +00:00
|
|
|
%bcond_with pod
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
Name: perl-Email-Date-Format
|
2010-11-24 17:24:15 +00:00
|
|
|
%define cpan_name Email-Date-Format
|
|
|
|
Summary: Produce RFC 2822 date strings
|
|
|
|
Version: 1.002
|
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
2009-03-05 03:49:42 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-11-24 17:24:15 +00:00
|
|
|
Url: http://search.cpan.org/dist/Email-Date-Format/
|
|
|
|
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Email-Date-Format-1.002.tar.gz
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
2009-03-05 03:49:42 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 10:53:51 +00:00
|
|
|
BuildRequires: perl
|
2010-11-24 17:24:15 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
|
|
|
%if %{with pod}
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
BuildRequires: perl(Time::Local)
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(Time::Local)
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-24 17:24:15 +00:00
|
|
|
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.)
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2010-11-24 17:24:15 +00:00
|
|
|
Ricardo SIGNES, <_rjbs@cpan.org_>.
|
|
|
|
Adapted from Email::Date, by Casey West.
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%prep
|
2010-11-24 17:24:15 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%build
|
2010-11-24 17:24:15 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%check
|
2010-11-24 17:24:15 +00:00
|
|
|
%{__make} test
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%install
|
2010-11-24 17:24:15 +00:00
|
|
|
%perl_make_install
|
|
|
|
### since 11.4 perl_process_packlist
|
|
|
|
### removes .packlist, perllocal.pod files
|
|
|
|
%if 0%{?suse_version} > 1130
|
2009-03-05 03:49:42 +00:00
|
|
|
%perl_process_packlist
|
2010-11-24 17:24:15 +00:00
|
|
|
%else
|
|
|
|
# do not perl_process_packlist
|
|
|
|
# remove .packlist file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
# remove perllocal.pod file
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
|
|
|
|
%endif
|
|
|
|
%perl_gen_filelist
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%clean
|
2010-11-24 17:24:15 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2009-03-05 03:49:42 +00:00
|
|
|
|
2010-11-24 17:24:15 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README
|
2009-03-05 03:49:42 +00:00
|
|
|
|
|
|
|
%changelog
|