]> git.pld-linux.org Git - SPECS.git/blob - perl-Image-Size.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Image-Size.spec
1 %define         pdir    Image
2 %define         pnam    Size
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
5 Name:           perl-Image-Size
6 Version:        3.232
7 Release:        1
8 Epoch:          1
9 License:        Artistic
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
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _noautoreq      'perl(Image::Magick)'
20
21 %description
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.
28
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.
32
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.
40
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ę
44 bibliotekę.
45
46 %prep
47 %setup -q -n %{pdir}-%{pnam}-%{version}
48
49 %build
50 %{__perl} Makefile.PL \
51         INSTALLDIRS=vendor
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc ChangeLog README
66 %attr(755,root,root) %{_bindir}/imgsize
67 %{perl_vendorlib}/Image/Size.pm
68 %{_mandir}/man1/imgsize.1p*
69 %{_mandir}/man3/Image::Size.3pm*
This page took 1.796866 seconds and 3 git commands to generate.