b5d1e70
%if 0%{?rhel} == 8
b5d1e70
%bcond_without graphics_magick
b5d1e70
%else
b5d1e70
%bcond_with graphics_magick
b5d1e70
%endif
b5d1e70
cvsextras 0c98526
Name:           perl-Image-Size
ee834e1
Version:        3.300
7b6c38a
Release:        16%{?dist}
cvsextras 0c98526
Summary:        Determine the size of images in several common formats in Perl
55c6e56
License:        LGPLv2 or Artistic 2.0
3016f5d
URL:            https://metacpan.org/release/Image-Size
3016f5d
Source0:        https://cpan.metacpan.org/authors/id/R/RJ/RJRAY/Image-Size-%{version}.tar.gz
94f5057
# WEBP: use proper endian-agnostic extractor 
94f5057
# https://github.com/rjray/image-size/commit/37609b9079cc2449589fa436baa2e08a3e2b427d
94f5057
Patch0:         perl-Image-Size-3.300-endian-fix.patch
cvsextras 0c98526
BuildArch:      noarch
1b54895
BuildRequires:  perl-interpreter
307c2d1
BuildRequires:  perl-generators
Petr Šabata c6cf002
BuildRequires:  perl(bytes)
09f5e98
BuildRequires:  perl(Compress::Zlib)
Petr Šabata c6cf002
BuildRequires:  perl(Cwd)
Petr Šabata c6cf002
BuildRequires:  perl(Exporter)
Petr Šabata c6cf002
BuildRequires:  perl(ExtUtils::MakeMaker)
Petr Šabata c6cf002
BuildRequires:  perl(File::Spec)
b5d1e70
%if %{with graphics_magick}
b5d1e70
BuildRequires:  perl(Graphics::Magick)
b5d1e70
%else
09f5e98
BuildRequires:  perl(Image::Magick)
b5d1e70
%endif
Petr Šabata c6cf002
BuildRequires:  perl(IO::File)
Petr Šabata c6cf002
BuildRequires:  perl(strict)
Petr Šabata c6cf002
BuildRequires:  perl(Symbol)
Petr Šabata c6cf002
BuildRequires:  perl(Test::More)
Petr Šabata c6cf002
BuildRequires:  perl(vars)
Petr Šabata c6cf002
BuildRequires:  perl(warnings)
Petr Šabata c6cf002
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
09f5e98
Requires:       perl(Compress::Zlib)
Petr Šabata c6cf002
Requires:       perl(Cwd)
Petr Šabata c6cf002
Requires:       perl(File::Spec)
b5d1e70
%if %{with graphics_magick}
b5d1e70
Recommends:     perl(Graphics::Magick)
b5d1e70
%else
b5d1e70
Recommends:     perl(Image::Magick)
b5d1e70
%endif
Petr Šabata c6cf002
Requires:       perl(Symbol)
cvsextras 0c98526
cvsextras 0c98526
%description
cvsextras 0c98526
Image::Size is a library based on the image-sizing code in the wwwimagesize
cvsextras 0c98526
script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
cvsextras 0c98526
IMG directives. Image::Size has generalized that code to return a raw (X, Y)
cvsextras 0c98526
pair, and included wrappers to pre-format that output into either HTML or
cvsextras 0c98526
a set of attribute pairs suitable for the CGI.pm library by Lincoln Stein.
cvsextras 0c98526
Currently, Image::Size can size images in XPM, XBM, GIF, JPEG, PNG, MNG, TIFF,
cvsextras 0c98526
the PPM family of formats (PPM/PGM/PBM) and if Image::Magick is installed,
cvsextras 0c98526
the formats supported by it.
cvsextras 0c98526
cvsextras 0c98526
%prep
cvsextras 0c98526
%setup -q -n Image-Size-%{version}
94f5057
%patch0 -p1 -b .endianfix
cvsextras 0c98526
cvsextras 0c98526
%build
Petr Šabata c6cf002
perl Makefile.PL INSTALLDIRS=vendor
Petr Šabata c6cf002
make %{?_smp_mflags}
cvsextras 0c98526
cvsextras 0c98526
%install
Petr Šabata c6cf002
make pure_install DESTDIR=%{buildroot}
Petr Šabata c6cf002
find %{buildroot} -type f -name .packlist -exec rm -f {} +
Petr Šabata c6cf002
chmod -R u+w %{buildroot}/*
cvsextras 0c98526
5c4c196
%check
Petr Šabata c6cf002
make test
cvsextras 0c98526
cvsextras 0c98526
%files
cvsextras 0c98526
%doc ChangeLog README
cvsextras 0c98526
%{_bindir}/imgsize
cvsextras 0c98526
%{perl_vendorlib}/Image/
09f5e98
%{_mandir}/man1/*.1*
Petr Šabata c6cf002
%{_mandir}/man3/*.3*
cvsextras 0c98526
cvsextras 0c98526
cvsextras 0c98526
%changelog
7b6c38a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-16
7b6c38a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7b6c38a
4f8ac0a
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.300-15
4f8ac0a
- Perl 5.30 rebuild
4f8ac0a
e93a710
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-14
e93a710
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e93a710
ee2c6d2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-13
ee2c6d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ee2c6d2
176693d
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.300-12
176693d
- Perl 5.28 rebuild
176693d
b5d1e70
* Thu May  3 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 3.300-11
b5d1e70
- Added support for building with Graphics::Magick
b5d1e70
054359a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-10
054359a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
054359a
947d4da
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-9
947d4da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
947d4da
5a57e90
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.300-8
5a57e90
- Perl 5.26 rebuild
5a57e90
94f5057
* Thu Jun  1 2017 Tom Callaway <spot@fedoraproject.org> - 3.300-7
94f5057
- use proper endian-agnostic extractor (bz1457935)
94f5057
2cc5edd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-6
2cc5edd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2cc5edd
523eeac
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.300-5
523eeac
- Perl 5.24 rebuild
523eeac
207d9b4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.300-4
207d9b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
207d9b4
1cf2256
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.300-3
1cf2256
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1cf2256
255fd9b
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 3.300-2
255fd9b
- Perl 5.22 rebuild
255fd9b
ee834e1
* Fri Mar 20 2015 Tom Callaway <spot@fedoraproject.org> - 3.300-1
ee834e1
- update to 3.300
ee834e1
0d8401d
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.232-5
0d8401d
- Perl 5.20 rebuild
0d8401d
1828cf7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.232-4
1828cf7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1828cf7
df56547
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.232-3
df56547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
df56547
ba85d2d
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 3.232-2
ba85d2d
- Perl 5.18 rebuild
ba85d2d
Petr Šabata c6cf002
* Thu Jun 27 2013 Petr Šabata <contyk@redhat.com> - 3.232-1
Petr Šabata c6cf002
- 3.232 bump
Petr Šabata c6cf002
- Modernize the spec somewhat
Petr Šabata c6cf002
- Drop the extra Build.PL; upstream's shipping Makefile.PL,
Petr Šabata c6cf002
  there's no reason for our own solution
Petr Šabata c6cf002
- Fix a bogus date in changelog
Petr Šabata c6cf002
4c9774c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-11
4c9774c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c9774c
47fb399
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-10
47fb399
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
47fb399
ef7fb35
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 3.2-9
ef7fb35
- Perl 5.16 rebuild
ef7fb35
3fac5fa
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-8
3fac5fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3fac5fa
31367c4
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.2-7
31367c4
- Perl mass rebuild
31367c4
35b6af8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-6
35b6af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
35b6af8
436d868
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.2-5
436d868
- 661697 rebuild for fixing problems with vendorach/lib
436d868
a6212ef
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 3.2-4
a6212ef
- Mass rebuild with perl-5.12.0
a6212ef
196d8a9
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 3.2-3
196d8a9
- rebuild against perl 5.10.1
196d8a9
04b9516
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-2
04b9516
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
04b9516
1138d34
* Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2-1
1138d34
- update to 3.2
1138d34
a92424e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-5
a92424e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a92424e
a79f3fe
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-4
a79f3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a79f3fe
003dc6d
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.1-3
003dc6d
- Rebuild for perl 5.10 (again)
003dc6d
59df2bb
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.1-2
59df2bb
- rebuild for new perl
59df2bb
55c6e56
* Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 3.1-1
55c6e56
- bump to 3.1
55c6e56
- license change (now LGPLv2 or Artistic 2.0)
55c6e56
58fb943
* Sat Sep 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.01-1
58fb943
- Update to 3.01.
58fb943
- Makefile.PL -> Build.PL.
58fb943
09f5e98
* Sat Jun 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.0-1
09f5e98
- Update to 3.0.
09f5e98
982a5f3
* Fri Feb 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.992-5
982a5f3
- Rebuild for FC5 (perl 5.8.8).
982a5f3
5c4c196
* Fri Dec 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.992-4
5c4c196
- Dist tag.
5c4c196
Petr Šabata c6cf002
* Wed Apr  6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.992-3
709dbe1
- rebuilt
709dbe1
cvsextras 0c98526
* Thu Jun  3 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.992-0.fdr.2
cvsextras 0c98526
- Bring up to date with current fedora.us perl spec template.
cvsextras 0c98526
cvsextras 0c98526
* Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.992-0.fdr.1
cvsextras 0c98526
- First build.