cvsextras 0c98526
Name:           perl-Image-Size
1138d34
Version:        3.2
31367c4
Release:        7%{?dist}
cvsextras 0c98526
Summary:        Determine the size of images in several common formats in Perl
cvsextras 0c98526
cvsextras 0c98526
Group:          Development/Libraries
55c6e56
License:        LGPLv2 or Artistic 2.0
cvsextras 0c98526
URL:            http://search.cpan.org/dist/Image-Size/
5c4c196
Source0:        http://www.cpan.org/authors/id/R/RJ/RJRAY/Image-Size-%{version}.tar.gz
1138d34
Source1:	Build.PL
cvsextras 0c98526
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras 0c98526
cvsextras 0c98526
BuildArch:      noarch
58fb943
BuildRequires:  perl(Module::Build)
09f5e98
BuildRequires:  perl(Compress::Zlib)
09f5e98
BuildRequires:  perl(Image::Magick)
09f5e98
BuildRequires:  perl(Test::Pod)
09f5e98
BuildRequires:  perl(Test::Pod::Coverage)
982a5f3
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
09f5e98
Requires:       perl(Compress::Zlib)
09f5e98
Requires:       perl(Image::Magick)
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
cvsextras 0c98526
%prep
cvsextras 0c98526
%setup -q -n Image-Size-%{version}
1138d34
# Upstream forgot Build.PL
1138d34
cp %{SOURCE1} .
58fb943
pushd lib/Image/
09f5e98
iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
09f5e98
mv Size.pm{.utf8,}
58fb943
popd
09f5e98
cvsextras 0c98526
cvsextras 0c98526
%build
58fb943
%{__perl} Build.PL installdirs=vendor
58fb943
./Build
cvsextras 0c98526
cvsextras 0c98526
cvsextras 0c98526
%install
cvsextras 0c98526
rm -rf $RPM_BUILD_ROOT
58fb943
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
cvsextras 0c98526
chmod -R u+w $RPM_BUILD_ROOT/*
cvsextras 0c98526
cvsextras 0c98526
5c4c196
%check
58fb943
mv t/00_signature.t t/00_signature.t.skip
58fb943
./Build test
cvsextras 0c98526
cvsextras 0c98526
cvsextras 0c98526
%clean
cvsextras 0c98526
rm -rf $RPM_BUILD_ROOT
cvsextras 0c98526
cvsextras 0c98526
cvsextras 0c98526
%files
cvsextras 0c98526
%defattr(-,root,root,-)
cvsextras 0c98526
%doc ChangeLog README
cvsextras 0c98526
%{_bindir}/imgsize
cvsextras 0c98526
%{perl_vendorlib}/Image/
cvsextras 0c98526
%{perl_vendorlib}/auto/
09f5e98
%{_mandir}/man1/*.1*
09f5e98
%{_mandir}/man3/*.3pm*
cvsextras 0c98526
cvsextras 0c98526
cvsextras 0c98526
%changelog
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
5c4c196
* Fri Apr  7 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.