%global pkg_name Image-Size %global pkg_version 3.1 %global rpm_pkg_version 3.1 %global rpm_pkg_release 1.n0i.11 Summary: Measure size of images in common formats Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/R/RJ/RJRAY/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) %description Image::Size is a library based on the image-sizing code in the wwwimagesize script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to IMG directives. Image::Size has generalized that code to return a raw (X, Y) pair, and included wrappers to pre-format that output into either HTML or a set of attribute pairs suitable for the CGI.pm library by Lincoln Stein. Currently, Image::Size can size images in XPM, XBM, GIF, JPEG, PNG, MNG, TIFF, the PPM family of formats (PPM/PGM/PBM) and if Image::Magick is installed, the formats supported by it. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_encoding ChangeLog} %{fix_perl_path ex/} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m -l} %doc ChangeLog ex/ README %changelog * Fri Oct 05 2007 Marius Feraru - 3.1-1.n0i.11 - version 3.1 * Mon Jun 11 2007 Marius Feraru - 3.01-1.n0i.10 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - version 3.01 * Sun Jun 11 2006 Marius Feraru - 3.0-1.n0i.9 - version 3.0 * Sat Mar 04 2006 Marius Feraru - 2.992-2.n0i.8 - automatic rebuild (perl 5.8.8) * Sun Jul 24 2005 Marius Feraru 2.992-1.n0i.7 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Wed Mar 30 2005 Marius FERARU 0:2.99_2-1.n0i.6.2.992 - rebuild (FC4) * Sun Dec 05 2004 Marius FERARU 0:2.99_2-1.n0i.5.2.992 - rebuild (perl 5.8.6) * Fri Apr 30 2004 Marius Feraru 0:2.99_2-1.n0i.4.2.993 - automatic rebuild * Thu Apr 22 2004 Marius Feraru 0:2.99_2-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004032101 - rebuild (perl 5.8.4) * Fri Jan 30 2004 Marius FERARU 0:2.992-0.n0i.2 - version 2.992 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Sun Jun 29 2003 Marius FERARU 2.991-0.n0i - Initial build.