8
0

Accepting request 296355 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/296355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Time-Duration?expand=0&rev=19
This commit is contained in:
Stephan Kulow
2015-04-15 05:06:05 +00:00
committed by Git OBS Bridge
parent d38a849276
commit 38dba57108
4 changed files with 56 additions and 39 deletions

View File

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

3
Time-Duration-1.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Apr 14 19:16:50 UTC 2015 - coolo@suse.com
- updated to 1.1
see /usr/share/doc/packages/perl-Time-Duration/ChangeLog
2013-04-02 Avi Finkel avi@finkel.org
* Release 1.1 -- Adding millisecond support.
-------------------------------------------------------------------
Wed Dec 14 12:28:43 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Time-Duration
#
# Copyright (c) 2011 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
@@ -17,59 +17,66 @@
Name: perl-Time-Duration
Url: http://cpan.org/modules/by-module/Time/
BuildRequires: perl-Pod-Coverage
BuildRequires: perl-Pod-Escapes
BuildRequires: perl-Pod-Simple
BuildRequires: perl-Test-Pod
BuildRequires: perl-Test-Pod-Coverage
BuildRequires: perl-macros
Summary: Rounded or exact English expression of durations
Version: 1.1
Release: 0
%define cpan_name Time-Duration
Summary: rounded or exact English expression of durations
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Version: 1.06
Release: 0
Source: Time-Duration-%{version}.tar.gz
Url: http://search.cpan.org/dist/Time-Duration/
Source: http://www.cpan.org/authors/id/A/AV/AVIF/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
%{perl_requires}
%description
This module provides functions for expressing durations in rounded or
exact terms.
This module provides functions for expressing durations in rounded or exact
terms.
In the first example in the Synopsis, using duration($interval_seconds):
If the 'time() - $start_time' is 3 seconds, this prints "Runtime: *3
seconds*.". If it's 0 seconds, it's "Runtime: *0 seconds*.". If it's 1
second, it's "Runtime: *1 second*.". If it's 125 seconds, you get "Runtime:
*2 minutes and 5 seconds*.". If it's 3820 seconds (which is exactly 1h, 3m,
40s), you get it rounded to fit within two expressed units: "Runtime: *1
hour and 4 minutes*.". Using duration_exact instead would return "Runtime:
*1 hour, 3 minutes, and 40 seconds*".
Authors:
--------
Sean M. Burke <sburke@cpan.org>
Avi Finkel <avi@finkel.org>
In the second example in the Synopsis, using ago($interval_seconds):
If the $age is 3 seconds, this prints "_file_ was modified *3 seconds
ago*". If it's 0 seconds, it's "_file_ was modified *just now*", as a
special case. If it's 1 second, it's "from *1 second ago*". If it's 125
seconds, you get "_file_ was modified *2 minutes and 5 seconds ago*". If
it's 3820 seconds (which is exactly 1h, 3m, 40s), you get it rounded to fit
within two expressed units: "_file_ was modified *1 hour and 4 minutes
ago*". Using ago_exact instead would return "_file_ was modified *1 hour, 3
minutes, and 40 seconds ago*". And if the file's modtime is, surprisingly,
three seconds into the future, $age is -3, and you'll get the equally and
appropriately surprising "_file_ was modified *3 seconds from now*."
%prep
%setup -q -n Time-Duration-%{version}
# ---------------------------------------------------------------------------
%setup -q -n %{cpan_name}-%{version}
%build
#disable tests that need special modules
mv t/02_pod.t t/02_pod.tt
mv t/03_pod_cover.t t/03_pod_cover.tt
perl Makefile.PL
make %{?_smp_mflags}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
# ---------------------------------------------------------------------------
%{__make} test
%install
rm -rf $RPM_BUILD_ROOT
make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files
%defattr(-,root,root)
%{perl_vendorlib}/Time
%{perl_vendorarch}/auto/Time
#%{perl_vendorarch}/auto/Time/Duration
%doc %{_mandir}/man3/*.gz
%doc README
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog