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