diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a6a8f54 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Mock-Time-v0.1.6.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 2c40c0f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# perl-Test-Mock-Time - -The perl-Test-Mock-Time package \ No newline at end of file diff --git a/perl-Test-Mock-Time.spec b/perl-Test-Mock-Time.spec new file mode 100644 index 0000000..7c90303 --- /dev/null +++ b/perl-Test-Mock-Time.spec @@ -0,0 +1,69 @@ +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 - 0.1.6-2 +- Take into account review feedback (#1517102) + +* Fri Nov 24 2017 Emmanuel Seyman - 0.1.6-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..e325986 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Test-Mock-Time-v0.1.6.tar.gz) = fee9ff5df61cae2ae827723c78f86284b7757664395e1a4ec8b7ce0f66578947f0b16d76aafb2bfadbc7a76eccac792a77cb24eb275f85f9c23b302ad2623cfe