rpms/perl-Test-MockTime/F-9 perl-Test-MockTime.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ralf Corsépius corsepiu at fedoraproject.org
Mon Sep 22 19:59:16 UTC 2008


Author: corsepiu

Update of /cvs/pkgs/rpms/perl-Test-MockTime/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2111/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	perl-Test-MockTime.spec 
Log Message:
Import.


--- NEW FILE perl-Test-MockTime.spec ---
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 <corsepiu at fedoraproject.org> 0.09-1
- Cleanup spec file.
- Specfile autogenerated by cpanspec 1.77.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Test-MockTime/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 Sep 2008 15:53:40 -0000	1.1
+++ .cvsignore	22 Sep 2008 19:58:45 -0000	1.2
@@ -0,0 +1 @@
+Test-MockTime-0.09.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Test-MockTime/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 Sep 2008 15:53:40 -0000	1.1
+++ sources	22 Sep 2008 19:58:46 -0000	1.2
@@ -0,0 +1 @@
+cc3945c4f8d333a1a9314c0a987ef33a  Test-MockTime-0.09.tar.gz




More information about the Fedora-perl-devel-list mailing list