diff --git a/Test2-Suite-0.000130.tar.gz b/Test2-Suite-0.000130.tar.gz new file mode 100644 index 0000000..2ad1ebf Binary files /dev/null and b/Test2-Suite-0.000130.tar.gz differ diff --git a/perl-Test2-Suite.spec b/perl-Test2-Suite.spec new file mode 100644 index 0000000..99e11d4 --- /dev/null +++ b/perl-Test2-Suite.spec @@ -0,0 +1,117 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test2-Suite +Version: 0.000130 +Release: 1 +Summary: Test2::Suite Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: https://metacpan.org/release/Test2-Suite +Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test2-Suite-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Importer) >= 0.024 +BuildRequires: perl(Module::Pluggable) >= 2.7 +BuildRequires: perl(Scope::Guard) +BuildRequires: perl(Sub::Info) >= 0.002 +BuildRequires: perl(Term::Table) >= 0.013 +BuildRequires: perl(Term::Table::Cell) +BuildRequires: perl(Term::Table::LineBreak) +BuildRequires: perl(Term::Table::Util) +BuildRequires: perl(Test2::API) >= 1.302158 +BuildRequires: perl(Test2::API::Context) +BuildRequires: perl(Test2::Event) +BuildRequires: perl(Test2::Event::Exception) +BuildRequires: perl(Test2::Event::Note) +BuildRequires: perl(Test2::Event::Skip) +BuildRequires: perl(Test2::EventFacet) +BuildRequires: perl(Test2::EventFacet::Info::Table) +BuildRequires: perl(Test2::Hub::Interceptor) +BuildRequires: perl(Test2::Hub::Subtest) +BuildRequires: perl(Test2::IPC) +BuildRequires: perl(Test2::Tools::Tiny) +BuildRequires: perl(Test2::Util) +BuildRequires: perl(Test2::Util::HashBase) +BuildRequires: perl(Test2::Util::Trace) +BuildRequires: perl(threads) +BuildRequires: perl(Test2::EventFacet::Assert) +BuildRequires: perl(Test2::Formatter::TAP) + +Requires: perl(Importer) >= 0.024 +Requires: perl(Sub::Info) >= 0.002 +Requires: perl(Term::Table) >= 0.013 +Requires: perl(Test2::API) >= 1.302158 +Requires: perl(Test2::Event) +Requires: perl(Test2::Event::Note) +Requires: perl(Test2::Event::Skip) +Requires: perl(Test2::EventFacet) +Requires: perl(threads) + +%description +Rich set of tools, plugins, bundles, etc. built upon the Test2 testing +library. If you are interested in writing Perl tests this is the distribution +for you. + +%package help +Summary: Test2::Suite Perl module +Provides: perl-Test2-Suite-doc + +%description help +Rich set of tools, plugins, bundles, etc. built upon the Test2 testing +library. If you are interested in writing Perl tests this is the distribution +for you. + +%prep +%setup -q -n Test2-Suite-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +%{make_install} + +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 +* Mon Aug 3 2020 dingyue - 0.000130-1 +- package init