forked from pool/perl-DateTime-Format-Mail
Accepting request 297419 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/297419 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-Mail?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
11131f5cf3
commit
e94e32b468
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3f36b15442ae3e47bf91f45bcdc23e3311dcd2a3c6bc5c691004ad95986af72
|
||||
size 176473
|
3
DateTime-Format-Mail-0.401.tar.gz
Normal file
3
DateTime-Format-Mail-0.401.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0668cc6547f0af8f02bb8e1cd09f69ec9f396a153a5fee97e38f651aec953b2
|
||||
size 172403
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@@ -1,3 +1,33 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 16 20:55:30 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.401
|
||||
see /usr/share/doc/packages/perl-DateTime-Format-Mail/Changes
|
||||
|
||||
0.401 2014-05-03
|
||||
|
||||
- Fix the tests to accomodate the new 1-digit format for days of month
|
||||
before the tenth. Thanks to Dagfinn Ilmari Mannsåker for the patch.
|
||||
|
||||
- add some more sample dates to t/sample_dates
|
||||
and run one test per sample date in t/sample.t
|
||||
|
||||
0.400 2014-04-13
|
||||
|
||||
- New maintainer - Philippe Bruhat (BooK)
|
||||
|
||||
- Now depends on DateTime 0.18. RT #74580.
|
||||
|
||||
- Moved POD tests to the release stage.
|
||||
|
||||
- format_datetime() now uses 1-digit numbers for day of month < 10.
|
||||
Dates with unrecognized timezones lead to the creation of a DateTime
|
||||
object with a floating timezone.
|
||||
UTC is now formatted as +0000, floating is formatted as -0000.
|
||||
RT #94556.
|
||||
|
||||
- Now packaged using Dist::Zilla. Moved back to three-digit version numbers.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 11 22:16:54 UTC 2013 - lars@linux-schulserver.de
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-DateTime-Format-Mail
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,66 +16,86 @@
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name DateTime-Format-Mail
|
||||
|
||||
Name: perl-%cpan_name
|
||||
Version: 0.3001
|
||||
Name: perl-DateTime-Format-Mail
|
||||
Version: 0.401
|
||||
Release: 0
|
||||
Provides: %cpan_name = %{version}-%{release}
|
||||
%define cpan_name DateTime-Format-Mail
|
||||
Summary: Convert between DateTime and RFC2822/822 formats
|
||||
License: GPL-1.0+
|
||||
License: Artistic-1.0 or 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
|
||||
Source0: http://www.cpan.org/authors/id/B/BO/BOOK/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(DateTime) >= 0.18
|
||||
BuildRequires: perl(Params::Validate)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
Requires: perl(DateTime) >= 0.18
|
||||
Requires: perl(Params::Validate)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
RFCs 2822 and 822 specify date formats to be used by email. This module parses
|
||||
and emits such dates.
|
||||
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.
|
||||
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.
|
||||
|
||||
Despite the ease of generating and parsing perfectly valid RFC822 and
|
||||
RFC2822 people still get it wrong. So this module provides four things for
|
||||
those handling mail dates:
|
||||
|
||||
* 1
|
||||
|
||||
A strict parser that will only accept RFC2822 dates, so you can see where
|
||||
you're right.
|
||||
|
||||
* 2
|
||||
|
||||
A strict formatter, so you can generate the right stuff to begin with.
|
||||
|
||||
* 3
|
||||
|
||||
A _loose_ parser, so you can take the misbegotten output from other
|
||||
programs and turn it into something useful. This includes various minor
|
||||
errors as well as some somewhat more bizarre mistakes. The file
|
||||
_t/sample_dates_ in this module's distribution should give you an idea of
|
||||
what's valid, while _t/invalid.t_ should do the same for what's not.
|
||||
Those regarded as invalid are just a bit *too* strange to allow.
|
||||
|
||||
* 4
|
||||
|
||||
Interoperation with the rest of the the DateTime manpage suite. These are
|
||||
a collection of modules to handle dates in a modern and accurate fashion.
|
||||
In particular, they make it trivial to parse, manipulate and then format
|
||||
dates. Shifting timezones is a doddle, and converting between formats is
|
||||
a cinch.
|
||||
|
||||
As a future direction, I'm contemplating an even stricter parser that will
|
||||
only accept dates with no obsolete elements.
|
||||
|
||||
%prep
|
||||
%setup -q -n %cpan_name-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
export DESTDIR=%{buildroot}
|
||||
/usr/bin/perl Build --makefile_env_macros 1 install --installdirs vendor
|
||||
#%perl_process_packlist
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%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
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes CREDITS LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user