[perl-Time-Mock] Initial import (#963211)

Yanko Kaneti yaneti at fedoraproject.org
Fri May 17 17:53:09 UTC 2013


commit 40f2f2133707e8b834faf8da0176f90c460089f2
Author: Yanko Kaneti <yaneti at declera.com>
Date:   Fri May 17 20:50:19 2013 +0300

    Initial import (#963211)

 .gitignore          |    1 +
 perl-Time-Mock.spec |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bb0c748 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Time-Mock-v0.0.2.tar.gz
diff --git a/perl-Time-Mock.spec b/perl-Time-Mock.spec
new file mode 100644
index 0000000..7a5d5dd
--- /dev/null
+++ b/perl-Time-Mock.spec
@@ -0,0 +1,52 @@
+Name:           perl-Time-Mock
+Version:        0.0.2
+Release:        2%{?dist}
+Summary:        Replaces actual time with simulated time - alternative to Test::MockTime
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Time-Mock/
+Source0:        http://www.cpan.org/authors/id/E/EW/EWILHELM/Time-Mock-v%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  perl(Date::Parse) >= 2.27
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Time::HiRes)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(strict), perl(version), perl(warnings)
+
+Requires:       perl(Date::Parse) >= 2.27
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+This is an alternative to Test::MockTime which enables test suites to 
+test code at specific points in time. Test::MockTime is nice, but doesn't
+allow you to accelerate the time step and doesn't deal with Time::HiRes or 
+give you any way to change the time across forks.
+
+%prep
+%setup -q -n Time-Mock-v%{version}
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu May 16 2013 Yanko Kaneti <yaneti at declera.com> 0.0.2-2
+- Address review comments. (#963211#c1)
+
+* Tue May 14 2013 Yanko Kaneti <yaneti at declera.com> 0.0.2-1
+- Specfile autogenerated by cpanspec 1.78 and tweaked for submission
diff --git a/sources b/sources
index e69de29..2468fcd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4e7d85637c5e036b89a43f39bbd29a8f  Time-Mock-v0.0.2.tar.gz


More information about the scm-commits mailing list