You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Test-Mock-Time/perl-Test-Mock-Time.spec

70 lines
2.0 KiB

Name: perl-Test-Mock-Time
Version: 0.1.6
Release: 2%{?dist}
Summary: Deterministic time & timers for event loop tests
License: MIT
URL: http://search.cpan.org/dist/Test-Mock-Time/
Source0: http://www.cpan.org/authors/id/P/PO/POWERMAN/Test-Mock-Time-v%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(AnyEvent)
BuildRequires: perl(Carp)
BuildRequires: perl(Export::Attrs)
BuildRequires: perl(EV)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(Mojolicious) >= 6
BuildRequires: perl(Mojo::IOLoop)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Distribution)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::MockModule)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(bignum)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
This module replaces actual time with simulated time everywhere (core
time(), Time::HiRes, EV, AnyEvent with EV, Mojolicious, …) and provide
a way to write deterministic tests for event loop based applications
with timers.
%prep
%setup -q -n Test-Mock-Time-v%{version}
%build
%{__perl} Build.PL --installdirs=vendor
./Build
%install
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT/*
%check
AUTHOR_TESTING=1 RELEASE_TESTING=1 ./Build test
%files
%doc Changes README
%license LICENSE
%{perl_vendorlib}/Test*
%{_mandir}/man3/Test*
%changelog
* Tue Nov 28 2017 Emmanuel Seyman <emmanuel@seyman.fr> - 0.1.6-2
- Take into account review feedback (#1517102)
* Fri Nov 24 2017 Emmanuel Seyman <emmanuel@seyman.fr> - 0.1.6-1
- Specfile autogenerated by cpanspec 1.78.