diff --git a/Time-Mock-v0.0.2.tar.gz b/Time-Mock-v0.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..14cc0e26cd0b8174fb09d187c41896a0be28c4e2 Binary files /dev/null and b/Time-Mock-v0.0.2.tar.gz differ diff --git a/perl-Time-Mock.spec b/perl-Time-Mock.spec new file mode 100644 index 0000000000000000000000000000000000000000..e38292f49dc3b3dd4b3e987798629a1122292c1c --- /dev/null +++ b/perl-Time-Mock.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Time-Mock +Version: 0.0.2 +Release: 1 +Summary: Time::Mock Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Time-Mock/ +Source0: http://www.cpan.org/authors/id/E/EW/EWILHELM/Time-Mock-v%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(Date::Parse) >= 2.27 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) +Requires: perl(Date::Parse) >= 2.27 +%description +This is an alternative to Test::MockTime which enables test suites to +test code at specific points in time. Test::MockTime is nice, but doesn't +allow you to accelerate the time step and doesn't deal with Time::HiRes or +give you any way to change the time across forks. + +%package help +Summary : Time::Mock Perl module +Provides: perl-Time-Mock-doc +%description help +This is an alternative to Test::MockTime which enables test suites to +test code at specific points in time. Test::MockTime is nice, but doesn't +allow you to accelerate the time step and doesn't deal with Time::HiRes or +give you any way to change the time across forks. + +%prep +%setup -q -n Time-Mock-v%{version} +%build +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check || : +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.0.2-1 +- Specfile autogenerated by Perl_Bot