8
0

Compare commits

...

12 Commits

Author SHA256 Message Date
97b3a9e66c Accepting request 1285247 from devel:languages:perl
- Normalize CPAN version
  See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/request/show/1285247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=15
2025-06-13 16:44:39 +00:00
fd044d9232 Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration-Parse?expand=0&rev=16
2025-06-12 18:19:17 +00:00
1aef050e3b Accepting request 894579 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/894579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=14
2021-05-20 17:25:28 +00:00
Stephan Kulow
c648b996dc Accepting request 894577 from devel:languages:perl:autoupdate
- updated to 0.16
   see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
  0.16 2021-05-19 NEILB
      - Switched to plain Exporter, instead of Exporter::Lite.
        Thanks to Graham Knop for PR.

OBS-URL: https://build.opensuse.org/request/show/894577
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration-Parse?expand=0&rev=14
2021-05-20 09:31:13 +00:00
b0e581b2f9 Accepting request 703879 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/703879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=13
2019-05-20 08:28:30 +00:00
Stephan Kulow
5a32636016 Accepting request 702528 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/702528
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration-Parse?expand=0&rev=12
2019-05-18 07:01:50 +00:00
c276cf4b45 Accepting request 623049 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/623049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=12
2018-07-28 10:39:51 +00:00
Stephan Kulow
24a8a81d50 Accepting request 619896 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/619896
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration-Parse?expand=0&rev=10
2018-07-16 06:51:17 +00:00
ada9afda3a Accepting request 341217 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/341217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=11
2015-10-28 16:31:01 +00:00
Stephan Kulow
25e1755f1b Accepting request 341164 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/341164
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration-Parse?expand=0&rev=8
2015-10-27 17:40:04 +00:00
Stephan Kulow
be25fad698 Accepting request 315153 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/315153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=10
2015-07-08 04:59:31 +00:00
Stephan Kulow
1f8ffb69f0 Accepting request 250232 from devel:languages:perl
- updated to 0.11
     - Min perl version now set to 5.6.0
     - Added description of DateTime::Format::Duration to SEE ALSO
 
 0.10 2014-03-24
     - Switched to Dist::Zilla. The Module::Install Makefile.PL was resulting
       in dependency problems and CPAN Testers fails, and I'm not familiar with
       it. Easier to switch. Thanks to ZEFRAM for pointing out the problem.
 
 0.09 2014-03-23
     - Test::More and Time::Duration were listed as build_requires;
       changed them to test_requires, with versions. Wonder if this was
       the cause of the small number of CPAN Testers fails?
     - Added more more modules to the SEE ALSO section in the pod.
 
 0.08 2014-03-23
     - Can now have a leading '+', as in '+2h'.
       Suggested by MSCHWERN in RT#66572
     - Added github repo to metadata (thanks dsteinbrunner)
     - Added github repo to pod
     - Added Time::Duration::Parse::More to SEE ALSO
 
 0.07 2014-03-21
     - Added 'use warnings'
     - Specified min perl version as 5.6.0 in Makefile.PL
     - Fixed pod error reported in RT#86904
     - Added license type 'perl' to metadata via Makefile.PL
     - Reformatted this file as per CPAN::Changes::Spec

OBS-URL: https://build.opensuse.org/request/show/250232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Time-Duration-Parse?expand=0&rev=9
2014-09-22 09:11:19 +00:00
4 changed files with 72 additions and 23 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a61800d5e757c4a766a48cff3efae4c4c1504c496947d99b529e8ee0eefae7b
size 11340

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1084a6463ee2790f99215bd76b135ca45afe2bfa6998fa6fd5470b69e1babc12
size 11810

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Thu Jun 12 18:19:12 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Thu May 20 03:07:35 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.16
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
0.16 2021-05-19 NEILB
- Switched to plain Exporter, instead of Exporter::Lite.
Thanks to Graham Knop for PR.
-------------------------------------------------------------------
Mon May 13 05:29:03 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.15
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
0.15 2019-05-12 NEILB
- Added support for fractional parts of seconds in hh:mm:ss.ssss
- Added L<> links to Time::Duration and duration_exact in that module.
- Fixed grammar in doc
-------------------------------------------------------------------
Sat Jun 30 06:07:49 UTC 2018 - coolo@suse.com
- updated to 0.14
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
0.14 2018-06-29 NEILB
- Added "hrs" as another form for "hours". Thanks to Stig for the PR.
-------------------------------------------------------------------
Tue Oct 27 10:37:36 UTC 2015 - coolo@suse.com
- updated to 0.13
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
0.13 2015-10-25 NEILB
- Added additional abbrevations for 'months': 'mo', 'mon', 'mons'.
Thanks to PERLANCAR.
- Rewrote the main testsuite to be data driven, to make it easy to
add test cases, as for the above change.
- Updated github repo URL after changing my github username
-------------------------------------------------------------------
Sat Jul 4 08:57:50 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Time-Duration-Parse
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,36 +12,36 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Time-Duration-Parse
Version: 0.12
Release: 0
%define cpan_name Time-Duration-Parse
Name: perl-Time-Duration-Parse
Version: 0.160.0
Release: 0
# 0.16 -> normalize -> 0.160.0
%define cpan_version 0.16
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Parse string that represents time duration
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Time-Duration-Parse/
Source0: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Exporter::Lite)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Time::Duration)
Requires: perl(Exporter::Lite)
Provides: perl(Time::Duration::Parse) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Time::Duration::Parse is a module to parse human readable duration strings
like _2 minutes and 3 seconds_ to seconds.
It does the opposite of _duration_exact_ function in Time::Duration and is
roundtrip safe. So, the following is always true.
It does the opposite of Time::Duration/duration_exact function in
Time::Duration and is roundtrip safe. So, the following is always true.
use Time::Duration::Parse;
use Time::Duration;
@@ -50,14 +50,14 @@ roundtrip safe. So, the following is always true.
is( parse_duration(duration_exact($seconds)), $seconds );
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -65,7 +65,7 @@ roundtrip safe. So, the following is always true.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
%doc Changes README
%license LICENSE
%changelog