Name: perl-Test-Archive-Libarchive Version: 0.02 Release: 1%{?dist} Summary: Testing tools for Archive::Libarchive License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Archive-Libarchive/ Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/Test-Archive-Libarchive-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.020 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Ref::Util) BuildRequires: perl(Test2::API) >= 1.302015 BuildRequires: perl(Test2::Tools::Basic) >= 0.000121 BuildRequires: perl(Test2::Tools::Compare) >= 0.000121 BuildRequires: perl(Test2::V0) >= 0.000121 Requires: perl(Ref::Util) Requires: perl(Test2::API) >= 1.302015 Requires: perl(Test2::Tools::Basic) >= 0.000121 Requires: perl(Test2::Tools::Compare) >= 0.000121 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Error handling for libarchive and Archive::Libarchive is fairly primitive. Most methods return an int which correspond to ARCHIVE_EOF, ARCHIVE_OK, ARCHIVE_RETRY, ARCHIVE_WARN, ARCHIVE_FAILED or ARCHIVE_FATAL. Some methods will also return the number of actual bytes written on success and one of these codes on failure. It can be tedious doing the necessary checks for each method call in a test, so this module provides tools for testing Archive::Libarchive method calls that follow this pattern. %prep %setup -q -n Test-Archive-Libarchive-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install 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/* %check make test ||: %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE META.json README author.yml dist.ini perlcriticrc %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Apr 26 2024 rpm 0.02-1 - Specfile autogenerated by cpanspec 1.78.