diff --git a/Test-LongString-0.17.tar.gz b/Test-LongString-0.17.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6c9448f3c1d6b420db67804159d6232141efebe9 Binary files /dev/null and b/Test-LongString-0.17.tar.gz differ diff --git a/perl-Test-LongString.spec b/perl-Test-LongString.spec new file mode 100644 index 0000000000000000000000000000000000000000..7876dd57e51675c6757e52eeb0b3bcb7670dc917 --- /dev/null +++ b/perl-Test-LongString.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Test-LongString +Version: 0.17 +Release: 1 +Summary: Tests strings for equality, with more helpful failures +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-LongString/ +Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/Test-LongString-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::Builder) >= 0.12 +BuildRequires: perl(Test::Builder::Tester) >= 1.04 +Requires: perl(Test::Builder) >= 0.12 +Requires: perl(Test::Builder::Tester) >= 1.04 +%description +This module provides some drop-in replacements for the string comparison +functions of Test::More, but which are more suitable when you test against +long strings. If you've ever had to search for text in a multi-line string +like an HTML document, or find specific items in binary data, this is the +module for you. +%package help +Summary : Tests strings for equality, with more helpful failures +Provides: perl-Test-LongString-doc +%description help +This module provides some drop-in replacements for the string comparison +functions of Test::More, but which are more suitable when you test against +long strings. If you've ever had to search for text in a multi-line string +like an HTML document, or find specific items in binary data, this is the +module for you. +%prep +%setup -q -n Test-LongString-%{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