forked from pool/perl-DateTime-Format-Natural
Accepting request 295858 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295858 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-Natural?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
c73184e7df
commit
8b255d286c
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6af346e871f9d7e5f5fc02de08911afa5f7fd6f64585de82a52576a6e13eb2bd
|
|
||||||
size 64596
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8a277322b1d093a8af9fa019e37c7606fa7286a9b0fe38e96808e3de309e5d7c
|
|
||||||
size 67632
|
|
||||||
3
DateTime-Format-Natural-1.02.tar.gz
Normal file
3
DateTime-Format-Natural-1.02.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5479c48ade5eca9712784afee18c58308d56742a204d5ea9040d011f705303e3
|
||||||
|
size 77395
|
||||||
@@ -1,3 +1,306 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 13 18:41:03 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.02
|
||||||
|
see /usr/share/doc/packages/perl-DateTime-Format-Natural/Changes
|
||||||
|
|
||||||
|
1.02 2013-04-30 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
1.01_05 2013-04-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Parse and extract relative durations in reversed order.
|
||||||
|
|
||||||
|
- Document reversed relative durations under examples.
|
||||||
|
|
||||||
|
- Treat for <count> <unit> grammar expressions as durations.
|
||||||
|
|
||||||
|
- Refine gathering idents for from <count> to <count> durations.
|
||||||
|
|
||||||
|
- Use rightmost matching token on left side of duration as type.
|
||||||
|
|
||||||
|
- Split duration string only if accompanied by whitespace.
|
||||||
|
|
||||||
|
- Strengthen matching duration substrings against regexes.
|
||||||
|
|
||||||
|
- Extract regex captured punctuation marks in loop body.
|
||||||
|
|
||||||
|
- Undo some loop indentation in test files.
|
||||||
|
|
||||||
|
- Reorder version number variable in Calc class.
|
||||||
|
|
||||||
|
1.01_04 2013-01-17 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Concatenate duration expression chunks with separator.
|
||||||
|
|
||||||
|
- Merge calls for extracting duration expressions.
|
||||||
|
|
||||||
|
- Distinguish between expression types when finalizing.
|
||||||
|
|
||||||
|
- Simplify finalizing date/grammar duration expressions.
|
||||||
|
|
||||||
|
- Test that expressions do not overlap with duration ones.
|
||||||
|
|
||||||
|
- Strip timespan separators from extract string.
|
||||||
|
|
||||||
|
- Normalize whitespace of duration expressions.
|
||||||
|
|
||||||
|
- Keep duration extract methods private.
|
||||||
|
|
||||||
|
- Don't declare a plan for extract-expression tests.
|
||||||
|
|
||||||
|
- Enhance comment in extract-expression test file.
|
||||||
|
|
||||||
|
1.01_03 2012-12-06 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Fix fatal error from extract tests on 5.{8.9,10.0}.
|
||||||
|
|
||||||
|
- Display extracted strings for dateparse.
|
||||||
|
|
||||||
|
1.01_02 2012-11-29 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Extract relative and rewritten duration expressions.
|
||||||
|
|
||||||
|
- Check parsing of extracted expressions.
|
||||||
|
|
||||||
|
1.01_01 2012-10-25 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Narrow scope of variables in _extract_expressions().
|
||||||
|
|
||||||
|
- Improve finalizing duration expressions.
|
||||||
|
|
||||||
|
1.01 2012-09-07 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
1.00_02 2012-09-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Duplicate and extend types only for grammar expansion.
|
||||||
|
|
||||||
|
- Initialize subscript variable.
|
||||||
|
|
||||||
|
- Remove trailing semicolon in do block.
|
||||||
|
|
||||||
|
1.00_01 2012-07-21 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Extract expanded expressions and add a test.
|
||||||
|
|
||||||
|
1.00 2012-05-30 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
- Replace use of constant pragma with boolean.
|
||||||
|
|
||||||
|
0.99_01 2012-05-20 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Introduce ::Expand which handles expanding grammar.
|
||||||
|
|
||||||
|
- Enhance main grammar loop to enable grammar expansion.
|
||||||
|
|
||||||
|
- Include count of tokens for expanded grammar in lookup map.
|
||||||
|
|
||||||
|
- Add test file for expansions.
|
||||||
|
|
||||||
|
- Make the truncate_to grammar option an array reference.
|
||||||
|
|
||||||
|
- Truncate values after each worker method called.
|
||||||
|
|
||||||
|
- Move truncating code to a separate method.
|
||||||
|
|
||||||
|
- Require Clone as prerequisite.
|
||||||
|
|
||||||
|
- Mention expansion of grammar in docs.
|
||||||
|
|
||||||
|
0.99 2012-04-26 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.98_03 2012-04-22 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Check if daytime exists in _daytime_variant().
|
||||||
|
|
||||||
|
- Load modules in test files where missing.
|
||||||
|
|
||||||
|
0.98_02 2012-04-22 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Add validation rules to allow passing DateTime::TimeZone
|
||||||
|
objects. [Roman Filippov]
|
||||||
|
|
||||||
|
- Test providing a DateTime::TimeZone object.
|
||||||
|
|
||||||
|
- Load DateTime::TimeZone explicitly.
|
||||||
|
|
||||||
|
- Test validation of constructor arguments.
|
||||||
|
|
||||||
|
- List Roman Filippov in credits.
|
||||||
|
|
||||||
|
0.98_01 2012-01-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Mention and link to dateparse in the See also section.
|
||||||
|
|
||||||
|
0.98 2011-10-29 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.97_02 2011-10-27 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Strip leading and trailing spaces from input strings.
|
||||||
|
|
||||||
|
0.97_01 2011-10-25 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Support parsing timestamp. [Xiao Yafeng]
|
||||||
|
|
||||||
|
0.97 2011-08-17 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.96_04 2011-08-16 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Check that the datetime string for dateparse has at most
|
||||||
|
two chunks (date/time); also require DateTime.
|
||||||
|
|
||||||
|
- Elaborate on the format of dateparse's datetime string.
|
||||||
|
|
||||||
|
0.96_03 2011-08-13 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Add the datetime switch to dateparse and document it.
|
||||||
|
|
||||||
|
- Print dateparse's dates formatted according to ISO 8601.
|
||||||
|
|
||||||
|
0.96_02 2011-08-10 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Revert truncating of <count> <unit> ago formats.
|
||||||
|
|
||||||
|
- Add Xiao Yafeng to credits.
|
||||||
|
|
||||||
|
0.96_01 2011-08-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- New supported format: today <count> <unit> ago. [Xiao Yafeng]
|
||||||
|
|
||||||
|
- Truncate for this and other ago formats to day if there is
|
||||||
|
no time component in order to produce more consistent results.
|
||||||
|
|
||||||
|
- Add new and adjust existing regular tests for these formats;
|
||||||
|
moreover, complete the list of parse failure tests.
|
||||||
|
|
||||||
|
- List the added grammar in the documentation.
|
||||||
|
|
||||||
|
0.96 2011-06-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.95_03 2011-05-30 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Add the extract switch to dateparse and document it.
|
||||||
|
|
||||||
|
- Change dateparse's prefer_future option to be not negatable.
|
||||||
|
|
||||||
|
0.95_02 2011-05-28 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Reorder the nested extract loop iterating through the grammar
|
||||||
|
entries to process only one subentry for all matching tokens.
|
||||||
|
|
||||||
|
- Move the check for a date when extracting expressions to a method.
|
||||||
|
|
||||||
|
- Add assert tests for extract_datetime(): one for the context
|
||||||
|
dependant return and another for the nested extract loop fix.
|
||||||
|
|
||||||
|
- Improve code visually of the parse success and failure test files.
|
||||||
|
|
||||||
|
0.95_01 2011-05-19 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Do no longer recommend Test::Pod and Test::Pod::Coverage.
|
||||||
|
|
||||||
|
- Use quantifier which matches 1 or more times when extracting
|
||||||
|
subroutine or method names.
|
||||||
|
|
||||||
|
- Assign a list instead of pushing a string for time entries.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 13 18:40:59 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.98
|
||||||
|
see /usr/share/doc/packages/perl-DateTime-Format-Natural/Changes
|
||||||
|
|
||||||
|
0.98 2011-10-29 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.97_02 2011-10-27 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Strip leading and trailing spaces from input strings.
|
||||||
|
|
||||||
|
0.97_01 2011-10-25 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Support parsing timestamp. [Xiao Yafeng]
|
||||||
|
|
||||||
|
0.97 2011-08-17 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.96_04 2011-08-16 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Check that the datetime string for dateparse has at most
|
||||||
|
two chunks (date/time); also require DateTime.
|
||||||
|
|
||||||
|
- Elaborate on the format of dateparse's datetime string.
|
||||||
|
|
||||||
|
0.96_03 2011-08-13 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Add the datetime switch to dateparse and document it.
|
||||||
|
|
||||||
|
- Print dateparse's dates formatted according to ISO 8601.
|
||||||
|
|
||||||
|
0.96_02 2011-08-10 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Revert truncating of <count> <unit> ago formats.
|
||||||
|
|
||||||
|
- Add Xiao Yafeng to credits.
|
||||||
|
|
||||||
|
0.96_01 2011-08-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- New supported format: today <count> <unit> ago. [Xiao Yafeng]
|
||||||
|
|
||||||
|
- Truncate for this and other ago formats to day if there is
|
||||||
|
no time component in order to produce more consistent results.
|
||||||
|
|
||||||
|
- Add new and adjust existing regular tests for these formats;
|
||||||
|
moreover, complete the list of parse failure tests.
|
||||||
|
|
||||||
|
- List the added grammar in the documentation.
|
||||||
|
|
||||||
|
0.96 2011-06-01 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Merged development version to stable.
|
||||||
|
|
||||||
|
0.95_03 2011-05-30 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Add the extract switch to dateparse and document it.
|
||||||
|
|
||||||
|
- Change dateparse's prefer_future option to be not negatable.
|
||||||
|
|
||||||
|
0.95_02 2011-05-28 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Reorder the nested extract loop iterating through the grammar
|
||||||
|
entries to process only one subentry for all matching tokens.
|
||||||
|
|
||||||
|
- Move the check for a date when extracting expressions to a method.
|
||||||
|
|
||||||
|
- Add assert tests for extract_datetime(): one for the context
|
||||||
|
dependant return and another for the nested extract loop fix.
|
||||||
|
|
||||||
|
- Improve code visually of the parse success and failure test files.
|
||||||
|
|
||||||
|
0.95_01 2011-05-19 <schubiger@cpan.org>
|
||||||
|
|
||||||
|
- Do no longer recommend Test::Pod and Test::Pod::Coverage.
|
||||||
|
|
||||||
|
- Use quantifier which matches 1 or more times when extracting
|
||||||
|
subroutine or method names.
|
||||||
|
|
||||||
|
- Assign a list instead of pushing a string for time entries.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 17 23:10:09 UTC 2011 - pascal.bleser@opensuse.org
|
Tue May 17 23:10:09 UTC 2011 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
|||||||
@@ -1,78 +1,73 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
#
|
||||||
# norootforbuild
|
# spec file for package perl-DateTime-Format-Natural
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-DateTime-Format-Natural
|
Name: perl-DateTime-Format-Natural
|
||||||
Version: 0.95
|
Version: 1.02
|
||||||
Release: 0
|
Release: 0
|
||||||
|
%define cpan_name DateTime-Format-Natural
|
||||||
Summary: Create machine readable date/time with natural parsing logic
|
Summary: Create machine readable date/time with natural parsing logic
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/S/SC/SCHUBIGER/DateTime-Format-Natural-%{version}.tar.gz
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
URL: http://search.cpan.org/dist/DateTime-Format-Natural/
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Perl License
|
Url: http://search.cpan.org/dist/DateTime-Format-Natural/
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
Source: http://www.cpan.org/authors/id/S/SC/SCHUBIGER/%{cpan_name}-%{version}.tar.gz
|
||||||
%{perl_requires}
|
BuildArch: noarch
|
||||||
BuildRequires: make perl
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(Clone)
|
||||||
BuildRequires: perl(Test::MockTime)
|
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
BuildRequires: perl(Test::Pod)
|
|
||||||
BuildRequires: perl(Test::Pod::Coverage)
|
|
||||||
BuildRequires: perl(Scalar::Util)
|
|
||||||
BuildRequires: perl(DateTime)
|
BuildRequires: perl(DateTime)
|
||||||
BuildRequires: perl(Storable)
|
BuildRequires: perl(DateTime::TimeZone)
|
||||||
BuildRequires: perl(Exporter)
|
|
||||||
BuildRequires: perl(Carp)
|
|
||||||
BuildRequires: perl(Term::ReadLine)
|
|
||||||
BuildRequires: perl(Params::Validate)
|
|
||||||
BuildRequires: perl(List::MoreUtils)
|
BuildRequires: perl(List::MoreUtils)
|
||||||
BuildRequires: perl(boolean)
|
BuildRequires: perl(Module::Build) >= 0.38
|
||||||
BuildRequires: perl(Module::Util)
|
BuildRequires: perl(Module::Util)
|
||||||
Requires: perl(Scalar::Util)
|
BuildRequires: perl(Params::Validate)
|
||||||
|
BuildRequires: perl(Test::MockTime)
|
||||||
|
BuildRequires: perl(boolean)
|
||||||
|
Requires: perl(Clone)
|
||||||
Requires: perl(DateTime)
|
Requires: perl(DateTime)
|
||||||
Requires: perl(Storable)
|
Requires: perl(DateTime::TimeZone)
|
||||||
Requires: perl(Exporter)
|
|
||||||
Requires: perl(Carp)
|
|
||||||
Requires: perl(Term::ReadLine)
|
|
||||||
Requires: perl(Params::Validate)
|
|
||||||
Requires: perl(List::MoreUtils)
|
Requires: perl(List::MoreUtils)
|
||||||
|
Requires: perl(Params::Validate)
|
||||||
Requires: perl(boolean)
|
Requires: perl(boolean)
|
||||||
Requires: perl(Module::Util)
|
Recommends: perl(Date::Calc)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
DateTime::Format::Natural takes a string with a human readable date/time and
|
'DateTime::Format::Natural' takes a string with a human readable date/time
|
||||||
creates a machine readable one by applying natural parsing logic.
|
and creates a machine readable one by applying natural parsing logic.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "DateTime-Format-Natural-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Build.PL installdirs=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
|
||||||
%perl_make_install
|
|
||||||
%perl_process_packlist
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__make test
|
./Build test
|
||||||
|
|
||||||
%clean
|
%install
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes README scripts
|
||||||
%{_bindir}/dateparse
|
|
||||||
%doc %{_mandir}/man1/dateparse.1%{ext_man}
|
|
||||||
%dir %{perl_vendorlib}/DateTime
|
|
||||||
%dir %{perl_vendorlib}/DateTime/Format
|
|
||||||
%{perl_vendorlib}/DateTime/Format/Natural.pm
|
|
||||||
%{perl_vendorlib}/DateTime/Format/Natural
|
|
||||||
%dir %{perl_vendorarch}/auto/DateTime
|
|
||||||
%dir %{perl_vendorarch}/auto/DateTime/Format
|
|
||||||
%{perl_vendorarch}/auto/DateTime/Format/Natural
|
|
||||||
%doc %{perl_man3dir}/DateTime::Format::Natural.%{perl_man3ext}%{ext_man}
|
|
||||||
%doc %{perl_man3dir}/DateTime::Format::Natural::*.%{perl_man3ext}%{ext_man}
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user