diff --git a/Test-MockTime-0.17.tar.gz b/Test-MockTime-0.17.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3e4e71733907d2943bb772117ee46ac56e859b3 Binary files /dev/null and b/Test-MockTime-0.17.tar.gz differ diff --git a/perl-Test-MockTime.spec b/perl-Test-MockTime.spec new file mode 100644 index 0000000000000000000000000000000000000000..a5d0a50c4342dd2f0e5f4bb48f232885eadfa0a8 --- /dev/null +++ b/perl-Test-MockTime.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-MockTime +Version: 0.17 +Release: 1 +Summary: Replaces actual time with simulated time +License: GPL-1.0-only or Artistic-1.0-Perl +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 +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Time::Local) +BuildRequires: perl(Time::Piece) >= 1.08 +Requires: perl(Time::Local) +Requires: perl(Time::Piece) >= 1.08 +%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. +%package help +Summary : Replaces actual time with simulated time +Provides: perl-Test-MockTime-doc +%description help +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} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +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/* + +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 || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes META.json README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.17-1 +- Specfile autogenerated by Perl_Bot