File perl-Image-Size.spec of Package perl-Image-Size

# spec file for package perl-Image-Size (Version 3.230)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           perl-Image-Size
Summary:        A Perl Module to deal with Dimensions of an Image in Several Popular Formats
Version:        3.230
Release:        2
License:        LGPL 2.1 or Artistic License
Group:          Development/Libraries/Perl
AutoReqProv:    on
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl-macros
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl-Compress-Zlib
Recommends:     perl-Compress-Zlib
Source:         Image-Size-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The Image::Size library is based upon the "wwwis" script written by
Alex Knowles *(*, a tool to examine HTML and add 'width'
and height' parameters to image tags. The sizes are cached internally
based on the file name, so multiple calls on the same file name (images
used in bulleted lists, for example) do not result in repeated

    Randy J. Ray <>
    Alex Knowles <>
    Andrew Tong <>
    and others

%setup -n Image-Size-%{version} -q

perl Makefile.PL 
make %{?jobs:-j%jobs}

make test

install -Dm755 imgsize %{buildroot}/%{_bindir}/imgsize
mv ex examples

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%defattr(-, root, root)
%doc %{_mandir}/man?/*
%doc README ChangeLog examples
%dir %{perl_vendorlib}/Image
%dir %{perl_vendorlib}/auto/Image
%dir %{perl_vendorarch}/auto/Image