|
|
1636e6f |
# Run optional tests
|
|
|
1636e6f |
%{bcond_without perl_Graphics_TIFF_enables_optional_test}
|
|
|
1636e6f |
|
|
|
1636e6f |
Name: perl-Graphics-TIFF
|
|
|
96877d1 |
Version: 18
|
|
|
da2128e |
Release: 1%{?dist}
|
|
|
1636e6f |
Summary: Perl extension for the LibTIFF library
|
|
|
1636e6f |
License: GPL+ or Artistic
|
|
|
7537cf2 |
URL: https://metacpan.org/release/Graphics-TIFF
|
|
|
7537cf2 |
Source0: https://cpan.metacpan.org/authors/id/R/RA/RATCLIFFE/Graphics-TIFF-%{version}.tar.gz
|
|
|
2b7ee92 |
BuildRequires: coreutils
|
|
|
1636e6f |
BuildRequires: findutils
|
|
|
1636e6f |
BuildRequires: gcc
|
|
|
1636e6f |
BuildRequires: make
|
|
|
1636e6f |
BuildRequires: perl-devel
|
|
|
1636e6f |
BuildRequires: perl-generators
|
|
|
1636e6f |
BuildRequires: perl-interpreter
|
|
|
1636e6f |
BuildRequires: perl(:VERSION) >= 5.8.5
|
|
|
2ea255b |
BuildRequires: perl(Config)
|
|
|
1636e6f |
BuildRequires: perl(English)
|
|
|
1636e6f |
BuildRequires: perl(ExtUtils::Depends)
|
|
|
1636e6f |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
1636e6f |
BuildRequires: perl(ExtUtils::PkgConfig)
|
|
|
1636e6f |
BuildRequires: perl(strict)
|
|
|
1636e6f |
BuildRequires: perl(warnings)
|
|
|
1636e6f |
BuildRequires: pkgconfig(libtiff-4) >= 4.0.3
|
|
|
1636e6f |
# Run-time:
|
|
|
1636e6f |
BuildRequires: perl(base)
|
|
|
1636e6f |
BuildRequires: perl(Exporter)
|
|
|
1636e6f |
BuildRequires: perl(Readonly)
|
|
|
1636e6f |
BuildRequires: perl(XSLoader)
|
|
|
1636e6f |
# Tests:
|
|
|
1fc2fff |
# ImageMagick for convert executed by t/1.t
|
|
|
1fc2fff |
BuildRequires: ImageMagick
|
|
|
1636e6f |
BuildRequires: perl(File::Spec)
|
|
|
8efdc8f |
BuildRequires: perl(File::Temp) >= 0.19
|
|
|
81c9ec0 |
BuildRequires: perl(IPC::Cmd)
|
|
|
1636e6f |
BuildRequires: perl(Test::Deep)
|
|
|
1636e6f |
BuildRequires: perl(Test::More)
|
|
|
1636e6f |
BuildRequires: perl(Test::Requires)
|
|
|
1636e6f |
%if %{with perl_Graphics_TIFF_enables_optional_test}
|
|
|
1636e6f |
# Optional tests:
|
|
|
299174f |
BuildRequires: grep
|
|
|
299174f |
# libtiff-tools for tiffcp, tiff2pdf, tiffinfo
|
|
|
1636e6f |
BuildRequires: libtiff-tools
|
|
|
299174f |
BuildRequires: perl(:VERSION) >= 5.10
|
|
|
299174f |
BuildRequires: perl(feature)
|
|
|
299174f |
BuildRequires: perl(if)
|
|
|
299174f |
BuildRequires: perl(Image::Magick)
|
|
|
1636e6f |
# Test::Perl::Critic not used
|
|
|
81c9ec0 |
# for hexdump
|
|
|
299174f |
BuildRequires: util-linux
|
|
|
1636e6f |
%endif
|
|
|
1636e6f |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
1636e6f |
|
|
|
1636e6f |
%description
|
|
|
1636e6f |
The Graphics::TIFF module allows a Perl developer to access TIFF images using
|
|
|
1636e6f |
LibTIFF library in a Perlish and object-oriented way.
|
|
|
1636e6f |
|
|
|
2ea255b |
%package tests
|
|
|
2ea255b |
Summary: Tests for %{name}
|
|
|
dcb27b0 |
BuildArch: noarch
|
|
|
dcb27b0 |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
1fc2fff |
# ImageMagick for convert executed by t/1.t
|
|
|
1fc2fff |
Requires: ImageMagick
|
|
|
2ea255b |
Requires: perl-Test-Harness
|
|
|
2ea255b |
%if %{with perl_Graphics_TIFF_enables_optional_test}
|
|
|
2ea255b |
# Optional tests:
|
|
|
2ea255b |
Requires: grep
|
|
|
2ea255b |
# libtiff-tools for tiffcp, tiff2pdf, tiffinfo
|
|
|
2ea255b |
Requires: libtiff-tools
|
|
|
2ea255b |
Requires: perl(:VERSION) >= 5.10
|
|
|
2ea255b |
Requires: perl(if)
|
|
|
2ea255b |
Requires: perl(Image::Magick)
|
|
|
2ea255b |
# for hexdump
|
|
|
2ea255b |
Requires: util-linux
|
|
|
2ea255b |
%endif
|
|
|
2ea255b |
|
|
|
2ea255b |
%description tests
|
|
|
8efdc8f |
Tests from %{name}. Execute them
|
|
|
2ea255b |
with "%{_libexecdir}/%{name}/test".
|
|
|
2ea255b |
|
|
|
1636e6f |
%prep
|
|
|
1137082 |
%autosetup -p 1 -n Graphics-TIFF-%{version}
|
|
|
1fc2fff |
# Delete author tests skipped by default
|
|
|
1fc2fff |
for F in t/91_critic.t; do
|
|
|
1fc2fff |
rm "$F"
|
|
|
1fc2fff |
perl -i -ne 'print $_ unless m{\Q'"$F"'\E}' MANIFEST
|
|
|
1fc2fff |
done
|
|
|
81c9ec0 |
%if !%{with perl_Graphics_TIFF_enables_optional_test}
|
|
|
81c9ec0 |
for F in t/1.t t/92_tiffinfo.t t/93_tiff2pdf.t; do
|
|
|
81c9ec0 |
rm "$F"
|
|
|
81c9ec0 |
perl -i -ne 'print $_ unless m{\Q'"$F"'\E}' MANIFEST
|
|
|
81c9ec0 |
done
|
|
|
81c9ec0 |
%endif
|
|
|
2ea255b |
for F in t/*.t; do
|
|
|
2ea255b |
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
|
|
|
2ea255b |
chmod +x "$F"
|
|
|
2ea255b |
done
|
|
|
1636e6f |
|
|
|
1636e6f |
%build
|
|
|
2b7ee92 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
2b7ee92 |
%{make_build}
|
|
|
1636e6f |
|
|
|
1636e6f |
%install
|
|
|
2b7ee92 |
%{make_install}
|
|
|
4ed8e94 |
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
|
|
dcb27b0 |
%{_fixperms} %{buildroot}/*
|
|
|
2ea255b |
# Install tests
|
|
|
2ea255b |
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
|
|
|
2ea255b |
cp -a t %{buildroot}/%{_libexecdir}/%{name}
|
|
|
2ea255b |
%if %{with perl_Graphics_TIFF_enables_optional_test}
|
|
|
2ea255b |
cp -a examples %{buildroot}/%{_libexecdir}/%{name}
|
|
|
2ea255b |
chmod +x %{buildroot}/%{_libexecdir}/%{name}/examples/*
|
|
|
2ea255b |
%endif
|
|
|
2ea255b |
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
2ea255b |
#!/bin/sh
|
|
|
2ea255b |
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
2ea255b |
EOF
|
|
|
2ea255b |
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
|
|
|
1636e6f |
|
|
|
1636e6f |
%check
|
|
|
2ea255b |
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
1636e6f |
make test
|
|
|
1636e6f |
|
|
|
1636e6f |
%files
|
|
|
299174f |
%doc Changes examples README
|
|
|
1636e6f |
%{perl_vendorarch}/auto/*
|
|
|
1636e6f |
%{perl_vendorarch}/Graphics*
|
|
|
1636e6f |
%{_mandir}/man3/*
|
|
|
1636e6f |
|
|
|
2ea255b |
%files tests
|
|
|
2ea255b |
%{_libexecdir}/%{name}
|
|
|
2ea255b |
|
|
|
1636e6f |
%changelog
|
|
|
96877d1 |
* Mon Nov 01 2021 Petr Pisar <ppisar@redhat.com> - 18-1
|
|
|
96877d1 |
- Version 18 bump (bug #2019091)
|
|
|
96877d1 |
|
|
|
1e79346 |
* Tue Oct 12 2021 Petr Pisar <ppisar@redhat.com> - 17-1
|
|
|
1e79346 |
- Version 17 bump (bug #2012875)
|
|
|
1e79346 |
|
|
|
3883a1f |
* Wed Jun 23 2021 Petr Pisar <ppisar@redhat.com> - 16-1
|
|
|
3883a1f |
- 16 version bump
|
|
|
3883a1f |
|
|
|
1c3d5a1 |
* Thu Jun 03 2021 Petr Pisar <ppisar@redhat.com> - 15-1
|
|
|
1c3d5a1 |
- 15 version bump
|
|
|
dcb27b0 |
- Make tests subpackage noarch
|
|
|
1c3d5a1 |
|
|
|
4d09272 |
* Tue Jun 01 2021 Petr Pisar <ppisar@redhat.com> - 14-1
|
|
|
4d09272 |
- 14 version bump
|
|
|
4d09272 |
|
|
|
4ed8e94 |
* Thu May 27 2021 Petr Pisar <ppisar@redhat.com> - 13-1
|
|
|
4ed8e94 |
- 13 version bump
|
|
|
4ed8e94 |
|
|
|
92c3d30 |
* Fri Apr 30 2021 Petr Pisar <ppisar@redhat.com> - 12-1
|
|
|
92c3d30 |
- 12 version bump
|
|
|
92c3d30 |
|
|
|
da2128e |
* Tue Apr 27 2021 Petr Pisar <ppisar@redhat.com> - 11-1
|
|
|
da2128e |
- 11 version bump
|
|
|
da2128e |
|
|
|
1137082 |
* Tue Apr 27 2021 Petr Pisar <ppisar@redhat.com> - 10-2
|
|
|
1137082 |
- Adjust tests to libtiff-4.3.0 (CPAN RT#135330)
|
|
|
1137082 |
|
|
|
1fc2fff |
* Mon Apr 12 2021 Petr Pisar <ppisar@redhat.com> - 10-1
|
|
|
1fc2fff |
- 10 version bump
|
|
|
1fc2fff |
|
|
|
8efdc8f |
* Thu Feb 11 2021 Petr Pisar <ppisar@redhat.com> - 9-1
|
|
|
8efdc8f |
- Version 9 bump
|
|
|
8efdc8f |
|
|
|
926cc2e |
* Wed Feb 10 2021 Petr Pisar <ppisar@redhat.com> - 8-2
|
|
|
926cc2e |
- Make tests subpackage architecture specific
|
|
|
926cc2e |
|
|
|
81c9ec0 |
* Tue Feb 09 2021 Petr Pisar <ppisar@redhat.com> - 8-1
|
|
|
81c9ec0 |
- Version 8 bump
|
|
|
2ea255b |
- Package tests and make them parallel-safe
|
|
|
81c9ec0 |
|
|
|
01c2c55 |
* Mon Feb 08 2021 Petr Pisar <ppisar@redhat.com> - 7-2
|
|
|
01c2c55 |
- Adapt tests to libtiff-4.2.0 (CPAN RT#134344)
|
|
|
01c2c55 |
|
|
|
2b7ee92 |
* Thu Oct 29 2020 Petr Pisar <ppisar@redhat.com> - 7-1
|
|
|
2b7ee92 |
- Version 7 bump
|
|
|
2b7ee92 |
|
|
|
4d49047 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6-10
|
|
|
4d49047 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4d49047 |
|
|
|
39bcb74 |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 6-9
|
|
|
39bcb74 |
- Perl 5.32 rebuild
|
|
|
39bcb74 |
|
|
|
7e4692e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6-8
|
|
|
7e4692e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7e4692e |
|
|
|
2878dfe |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6-7
|
|
|
2878dfe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
2878dfe |
|
|
|
eeb2508 |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6-6
|
|
|
eeb2508 |
- Perl 5.30 rebuild
|
|
|
eeb2508 |
|
|
|
520a256 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6-5
|
|
|
520a256 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
520a256 |
|
|
|
e61f249 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-4
|
|
|
e61f249 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e61f249 |
|
|
|
14c574c |
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6-3
|
|
|
14c574c |
- Perl 5.28 rebuild
|
|
|
14c574c |
|
|
|
86ca34e |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
86ca34e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
86ca34e |
|
|
|
1276882 |
* Thu Aug 10 2017 Petr Pisar <ppisar@redhat.com> - 6-1
|
|
|
1276882 |
- Version 6 bump
|
|
|
1276882 |
|
|
|
299174f |
* Tue Aug 01 2017 Petr Pisar <ppisar@redhat.com> - 5-1
|
|
|
299174f |
- Version 5 bump
|
|
|
299174f |
|
|
|
1636e6f |
* Fri Jul 28 2017 Petr Pisar <ppisar@redhat.com> 4-1
|
|
|
1636e6f |
- Specfile autogenerated by cpanspec 1.78.
|