diff --git a/.gitignore b/.gitignore index f6eaffd..a34ca20 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /Graphics-TIFF-7.tar.gz /Graphics-TIFF-8.tar.gz /Graphics-TIFF-9.tar.gz +/Graphics-TIFF-10.tar.gz diff --git a/perl-Graphics-TIFF.spec b/perl-Graphics-TIFF.spec index c08ee14..69e65c0 100644 --- a/perl-Graphics-TIFF.spec +++ b/perl-Graphics-TIFF.spec @@ -2,7 +2,7 @@ %{bcond_without perl_Graphics_TIFF_enables_optional_test} Name: perl-Graphics-TIFF -Version: 9 +Version: 10 Release: 1%{?dist} Summary: Perl extension for the LibTIFF library License: GPL+ or Artistic @@ -30,6 +30,8 @@ BuildRequires: perl(Exporter) BuildRequires: perl(Readonly) BuildRequires: perl(XSLoader) # Tests: +# ImageMagick for convert executed by t/1.t +BuildRequires: ImageMagick BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(IPC::Cmd) @@ -59,6 +61,8 @@ LibTIFF library in a Perlish and object-oriented way. Summary: Tests for %{name} # Keep full arch for t/90_MANIFEST.t embedding vendorarch Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +# ImageMagick for convert executed by t/1.t +Requires: ImageMagick Requires: perl-Test-Harness %if %{with perl_Graphics_TIFF_enables_optional_test} # Optional tests: @@ -68,7 +72,6 @@ Requires: libtiff-tools Requires: perl(:VERSION) >= 5.10 Requires: perl(if) Requires: perl(Image::Magick) -# Test::Perl::Critic not used # for hexdump Requires: util-linux %endif @@ -79,6 +82,11 @@ with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Graphics-TIFF-%{version} +# Delete author tests skipped by default +for F in t/91_critic.t; do + rm "$F" + perl -i -ne 'print $_ unless m{\Q'"$F"'\E}' MANIFEST +done %if !%{with perl_Graphics_TIFF_enables_optional_test} for F in t/1.t t/92_tiffinfo.t t/93_tiff2pdf.t; do rm "$F" @@ -107,7 +115,6 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/examples/* %endif cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh -unset TEST_AUTHOR cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}/%{_libexecdir}/%{name}/test @@ -115,7 +122,6 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/test %{_fixperms} $RPM_BUILD_ROOT/* %check -unset TEST_AUTHOR export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test @@ -129,6 +135,9 @@ make test %{_libexecdir}/%{name} %changelog +* Mon Apr 12 2021 Petr Pisar - 10-1 +- 10 version bump + * Thu Feb 11 2021 Petr Pisar - 9-1 - Version 9 bump diff --git a/sources b/sources index 25211f4..c03bbd8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Graphics-TIFF-9.tar.gz) = 7be856aed36d32e6285bfee5f8252bcbefea3e7b505162a693ae0999b23f1f551e9c1fd1367f0ad4f6ba75d9ef8171c1504a3f2af8820614eb90f45a674277f0 +SHA512 (Graphics-TIFF-10.tar.gz) = 4171641be3efeb3b365aa099ccde34b58885da9ca18dec5e3bddc173f5aa849d5146d5118387b03e3791caa895197fc44a9da8cc3a51649339cfa820c7af5bf0