From 2eef050ebf4e52b67d5ecdccdd49248921b08626 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Sep 22 2008 19:56:05 +0000 Subject: *** empty log message *** --- diff --git a/.cvsignore b/.cvsignore index e69de29..f1c2ca5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-MockTime-0.09.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..98134c5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Test-MockTime-0_09-1_fc10:HEAD:perl-Test-MockTime-0.09-1.fc10.src.rpm:1222113331 diff --git a/perl-Test-MockTime.spec b/perl-Test-MockTime.spec new file mode 100644 index 0000000..0b0742e --- /dev/null +++ b/perl-Test-MockTime.spec @@ -0,0 +1,63 @@ +Name: perl-Test-MockTime +Version: 0.09 +Release: 1%{?dist} +Summary: Replaces actual time with simulated time +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-MockTime/ +Source0: http://www.cpan.org/authors/id/D/DD/DDICK/Test-MockTime-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Time::Piece) >= 1.08 + +# for improved tests +BuildRequires: perl(Test::Pod) >= 1.00 + +Requires: perl(Time::Piece) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module was created to enable test suites to test code at specific +points in time. Specifically it overrides localtime, gmtime and time at +compile time and then relies on the user supplying a mock time via +set_relative_time, set_absolute_time or set_fixed_time to alter future +calls to gmtime,time or localtime. + +%prep +%setup -q -n Test-MockTime-%{version} + +# fix up broken permissions +chmod -x lib/Test/MockTime.pm t/test.t + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Sep 22 2008 Ralf Corsépius 0.09-1 +- Cleanup spec file. +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..ecd5b77 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cc3945c4f8d333a1a9314c0a987ef33a Test-MockTime-0.09.tar.gz