File perl-Image-Size.spec of Package perl-Image-Size
#
# spec file for package perl-Image-Size (Version 3.1.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Image-Size
License: Artistic License
BuildRequires: perl-Compress-Zlib perl-Module-Build
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
AutoReqProv: on
Summary: A Perl Module to deal with Dimensions of an Image in Several Popular Formats
Version: 3.1.1
Release: 1
Source: Image-Size-%{version}.tar.bz2
Url: http://www.cpan.org/authors/id/R/RJ/RJRAY
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Image::Size library is based upon the "wwwis" script written by
Alex Knowles *(alex@ed.ac.uk)*, 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
computations.
Authors:
--------
Randy J. Ray <rjray@blackperl.com>
Alex Knowles <alex@ed.ac.uk>
Andrew Tong <werdna@ugcs.caltech.edu>
and others
%prep
%setup -n Image-Size-%{version}
%build
perl Build.PL destdir=$RPM_BUILD_ROOT installdirs=vendor
./Build
./Build test
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
./Build install
%perl_process_packlist
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
/usr/bin/imgsize
%dir %{perl_vendorlib}/Image
%dir %{perl_vendorlib}/auto/Image
%dir %{perl_vendorarch}/auto/Image
%{perl_vendorlib}/Image/Size.pm
%{perl_vendorlib}/auto/Image/Size
%{perl_vendorarch}/auto/Image/Size
%doc %{_mandir}/man?/*
%doc README README.Win32 ex/*
%changelog
* Mon Mar 03 2008 kssingvo@suse.de
- upgrade to version 3.1.1
* Updated the license information to make sure all references are
to both the Artistic 2.0 and the LGPL.
* Changed "use 5.6.0" lines to no longer use v-strings, for
forward compatibility with Perl 5.10.0.
* Added "recommends" specification to Build.PL to refer to
modules used in the testing phase (there is no
"build_recommends" setting).
* Added Compress::Zlib to the list of required modules in
Makefile.PL and Build.PL.
* Added "use warnings" to Size.pm to make sure it stays
warnings-clean.
* Small change from n@shaplov.ru for a bug in CWS handling that
only surfaced when two CWS files were sized consecutively.
* Updated the date on the copyright notice and added a
"COPYRIGHT" section to the documentation.
* Changed the licensing terms. This is now dual-licensed under
Artistic 2.0 and LGPL 2.1.
* Restored the old Makefile.PL for users who don't have
Module::Build.
* Thu Sep 14 2006 kssingvo@suse.de
- upgrade to version 3.01. New features:
- Added ex/ directory with a few samples.
- Dropped ExtUtils::MakeMaker and switched to Module::Build.
Makefile.PL is now a wrapper of sorts around Build.PL. This allows
adding licensing information to META.yml for CPAN indexing.
- adapted the specfile
* Thu Jun 22 2006 kssingvo@suse.de
- upgrade to version 3.0. New features:
- delay of Image::Magick loading until it is needed
- additional installation tests
- FlashMX (Shockwave Flash Ver. 6) support
- image size of gif is now controlled by additional flag
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Jul 28 2003 ro@suse.de
- install to vendor location
* Tue Jul 22 2003 kssingvo@suse.de
- updated to version 2.992
* Mon Jun 16 2003 kssingvo@suse.de
- added missing directories
* Mon May 26 2003 ro@suse.de
- remove unpackaged files from buildroot
* Mon Feb 03 2003 kssingvo@suse.de
- initial package version 2.991