diff --git a/.gitignore b/.gitignore index e69de29..2b23cae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Graphics-TIFF-4.tar.gz diff --git a/Graphics-TIFF-4-LibTIFF-4.0.8-calls-pkgconfig-file-libtiff-4.patch b/Graphics-TIFF-4-LibTIFF-4.0.8-calls-pkgconfig-file-libtiff-4.patch new file mode 100644 index 0000000..0266053 --- /dev/null +++ b/Graphics-TIFF-4-LibTIFF-4.0.8-calls-pkgconfig-file-libtiff-4.patch @@ -0,0 +1,29 @@ +From d334dc8365831c246cbce569fc312b7c7077911e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 28 Jul 2017 13:36:53 +0200 +Subject: [PATCH] LibTIFF-4.0.8 calls pkgconfig file libtiff-4 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 648bc99..0c3a178 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -20,7 +20,7 @@ my %pkgcfg; + if ( + eval { + %pkgcfg = +- ExtUtils::PkgConfig->find( 'libtiff >= ' . $build_reqs{libtiff} ); ++ ExtUtils::PkgConfig->find( 'libtiff-4 >= ' . $build_reqs{libtiff} ); + } + ) + { +-- +2.9.4 + diff --git a/perl-Graphics-TIFF.spec b/perl-Graphics-TIFF.spec new file mode 100644 index 0000000..084f644 --- /dev/null +++ b/perl-Graphics-TIFF.spec @@ -0,0 +1,74 @@ +# Run optional tests +%{bcond_without perl_Graphics_TIFF_enables_optional_test} + +Name: perl-Graphics-TIFF +Version: 4 +Release: 1%{?dist} +Summary: Perl extension for the LibTIFF library +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Graphics-TIFF/ +Source0: http://www.cpan.org/authors/id/R/RA/RATCLIFFE/Graphics-TIFF-%{version}.tar.gz +# Correct pkgconfig identifier, CPAN RT#122628 +Patch0: Graphics-TIFF-4-LibTIFF-4.0.8-calls-pkgconfig-file-libtiff-4.patch +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(Image::Magick) +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Requires) +%if %{with perl_Graphics_TIFF_enables_optional_test} +# Optional tests: +# libtiff-tools for tiffinfo and tiff2pdf +BuildRequires: libtiff-tools +# Test::Perl::Critic not used +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +The Graphics::TIFF module allows a Perl developer to access TIFF images using +LibTIFF library in a Perlish and object-oriented way. + +%prep +%setup -q -n Graphics-TIFF-%{version} +%patch0 -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes examples +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Graphics* +%{_mandir}/man3/* + +%changelog +* Fri Jul 28 2017 Petr Pisar 4-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..20fa7c3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Graphics-TIFF-4.tar.gz) = b5ae6c2c34f5a7646c54debebd3ac69933d37bc484991b961732988e728285c597f9ea59ff35a2862682f66f3831341bf0459898402da74609f8eee7851b1cef