Blob Blame History Raw
# Run optional tests
%{bcond_without perl_Graphics_TIFF_enables_optional_test}

Name:           perl-Graphics-TIFF
Version:        6
Release:        1%{?dist}
Summary:        Perl extension for the LibTIFF library
License:        GPL+ or Artistic
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.8.5
BuildRequires:  perl(English)
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  pkgconfig(libtiff-4) >= 4.0.3
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(XSLoader)
# Tests:
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Requires)
%if %{with perl_Graphics_TIFF_enables_optional_test}
# Optional tests:
BuildRequires:  coreutils
BuildRequires:  grep
# libtiff-tools for tiffcp, tiff2pdf, tiffinfo
BuildRequires:  libtiff-tools
BuildRequires:  perl(:VERSION) >= 5.10
BuildRequires:  perl(feature)
BuildRequires:  perl(if)
BuildRequires:  perl(Image::Magick)
# Test::Perl::Critic not used
BuildRequires:  util-linux
BuildRequires:  which
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

The Graphics::TIFF module allows a Perl developer to access TIFF images using
LibTIFF library in a Perlish and object-oriented way.

%setup -q -n Graphics-TIFF-%{version}

make %{?_smp_mflags}

make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*

make test

%doc Changes examples README

* Thu Aug 10 2017 Petr Pisar <> - 6-1
- Version 6 bump

* Tue Aug 01 2017 Petr Pisar <> - 5-1
- Version 5 bump

* Fri Jul 28 2017 Petr Pisar <> 4-1
- Specfile autogenerated by cpanspec 1.78.