%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Image-Size Version: 3.300 Release: 3mamba Summary: Image::Size - Determine the size of images in several common formats Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org Source: http://www.cpan.org/modules/by-module/Image/Image-Size-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl >= 2:5.36.0 Requires: perl >= %perl_major_ver BuildArch: noarch %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 Image-Size-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm -f $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %changelog * Mon Apr 17 2023 Sdk Build System 3.300-3mamba - rebuilt with perl 5.36.0 * Wed May 19 2021 Silvan Calarco 3.300-2mamba - rebuilt with spec fixes * Thu Mar 26 2015 Automatic Build System 3.300-1mamba - automatic update by autodist * Mon Nov 12 2012 Silvan Calarco 3.232-2mamba - perl 5.16 mass rebuild * Sun Aug 12 2012 Automatic Build System 3.232-1mamba - automatic version update by autodist * Mon May 28 2012 Automatic Build System 3.231-1mamba - automatic version update by autodist * Sat Mar 19 2011 Automatic Build System 3.230-1mamba - automatic update by autodist * Wed Oct 28 2009 Automatic Build System 3.210-1mamba - automatic update by autodist * Tue Mar 31 2009 Silvan Calarco 3.2-1mamba - automatic update by autodist * Fri Feb 06 2009 Silvan Calarco 3.1.1-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 3.1-2mamba - automatic rebuild by autodist * Fri Nov 30 2007 Aleph0 3.1-1mamba - update to 3.1 * Tue Oct 26 2004 Mirko Cortillaro 2.992-1qilnx - package created by autospec