3 Summary: Image::Size - read the dimensions of an image in several popular formats
4 Summary(pl.UTF-8): Image::Size - odczyt rozmiarów obrazków w kilku popularnych formatach
10 Group: Development/Languages/Perl
11 Source0: http://www.cpan.org/modules/by-module/Image/%{pdir}-%{pnam}-%{version}.tar.gz
12 # Source0-md5: 908db185487fabdd293f7759113b3a49
13 URL: http://search.cpan.org/dist/Image-Size/
14 BuildRequires: perl-devel >= 1:5.8.0
15 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _noautoreq 'perl(Image::Magick)'
22 Image::Size is a library based on the image-sizing code in the
23 wwwimagesize script, a tool that analyzes HTML files and adds HEIGHT
24 and WIDTH tags to IMG directives. Image::Size has generalized that
25 code to return a raw (X, Y) pair, and included wrappers to pre-format
26 that output into either HTML or a set of attribute pairs suitable for
27 the CGI.pm library by Lincoln Stein.
29 Currently, Image::Size can size images in XPM, XBM, GIF, JPEG, PNG,
30 MNG, TIFF, the PPM family of formats (PPM/PGM/PBM) and if
31 Image::Magick is installed, the formats supported by it.
33 %description -l pl.UTF-8
34 Image::Size to biblioteka oparta na kodzie sprawdzającym rozmiar
35 obrazków w skrypcie wwwimagesize - narzędziu analizującym pliki HTML i
36 dodającym atrybuty HEIGHT i WIDTH do znaczników IMG. Image::Size ma
37 uogólniony kod tak, żeby zwracał parę (X,Y) oraz dołączone wrappery
38 preformatujące to wyjście do HTML-a lub zbioru par atrybutów dla
39 biblioteki CGI.pm Lincolna Steina.
41 Aktualnie Image::Size może odczytać rozmiar obrazków w formatach XPM,
42 XBM, GIF, JPEG, PNG, MNG, TIFF i rodzinie PPM (PPM/PGM/PBM) oraz,
43 jeśli zainstalowano Image::Magick, w formatach obsługiwanych przez tę
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/imgsize
67 %{perl_vendorlib}/Image/Size.pm
68 %{_mandir}/man1/imgsize.1p*
69 %{_mandir}/man3/Image::Size.3pm*