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

82 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-DateTime-Format-Mail
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
%define cpan_name DateTime-Format-Mail
Name: perl-%cpan_name
Version: 0.3001
Release: 0
Provides: %cpan_name = %{version}-%{release}
Summary: Convert between DateTime and RFC2822/822 formats
License: GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Format-Mail/
Source: %cpan_name-%{version}.tar.gz
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%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="%{optflags} -Wall"
make %{?_smp_mflags}
%check
make test
%install
export DESTDIR=%{buildroot}
/usr/bin/perl Build --makefile_env_macros 1 install --installdirs vendor
#%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorlib}/DateTime
%{perl_vendorarch}/auto/DateTime
#/var/adm/perl-modules/%{name}
%doc AUTHORS Artistic COPYING CREDITS Changes LICENCE MANIFEST README
%changelog