8
0
OBS User unknown
2007-01-15 23:30:59 +00:00
committed by Git OBS Bridge
commit 83383a8757
6 changed files with 187 additions and 0 deletions

101
perl-Image-Size.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package perl-Image-Size (Version 3.01)
#
# Copyright (c) 2006 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.01
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 -n perl-Image-Size
* 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