perl-Image-Size/perl-Image-Size.spec

85 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Image-Size
Version: 3.300
Release: 1mamba
Summary: Image::Size - Determine the size of images in several common formats
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.cpan.org
Source: http://www.cpan.org/modules/by-module/Image/Image-Size-%{version}.tar.gz
License: GPL
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
* Thu Mar 26 2015 Automatic Build System <autodist@mambasoft.it> 3.300-1mamba
- automatic update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.232-2mamba
- perl 5.16 mass rebuild
* Sun Aug 12 2012 Automatic Build System <autodist@mambasoft.it> 3.232-1mamba
- automatic version update by autodist
* Mon May 28 2012 Automatic Build System <autodist@mambasoft.it> 3.231-1mamba
- automatic version update by autodist
* Sat Mar 19 2011 Automatic Build System <autodist@mambasoft.it> 3.230-1mamba
- automatic update by autodist
* Wed Oct 28 2009 Automatic Build System <autodist@mambasoft.it> 3.210-1mamba
- automatic update by autodist
* Tue Mar 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2-1mamba
- automatic update by autodist
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-2mamba
- automatic rebuild by autodist
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 3.1-1mamba
- update to 3.1
* Tue Oct 26 2004 Mirko Cortillaro <mirko.cortillaro@qilinux.it> 2.992-1qilnx
- package created by autospec