diff --git a/Test-TinyMocker-0.05.tar.gz b/Test-TinyMocker-0.05.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b7f73b4b166e9ce08472d7e5e523626c6e55c804 Binary files /dev/null and b/Test-TinyMocker-0.05.tar.gz differ diff --git a/perl-Test-TinyMocker.spec b/perl-Test-TinyMocker.spec new file mode 100644 index 0000000000000000000000000000000000000000..d04581e5161bcd899ca11cecaadb260acbc4989d --- /dev/null +++ b/perl-Test-TinyMocker.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-TinyMocker +Version: 0.05 +Release: 1 +Summary: A very simple tool to mock external modules +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-TinyMocker/ +Source0: http://www.cpan.org/authors/id/S/SU/SUKRIA/Test-TinyMocker-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +Requires: perl(base) +Requires: perl(Carp) +Requires: perl(Exporter) +Requires: perl(strict) +Requires: perl(vars) +Requires: perl(warnings) +%description +This module allows you to override methods with arbitrary code blocks. This lets +you simulate some kind of behavior for you tests +%package help +Summary : Documents for Test::TinyMocker Perl module +Provides: perl-Test-TinyMocker-doc +%description help +Documents for Test::TinyMocker Perl module +%prep +%setup -q -n Test-TinyMocker-%{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 AUTHORS Changes dist.ini ignore.txt LICENSE README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.05-1 +- Specfile autogenerated by Perl_Bot