]> git.pld-linux.org Git - SPECS.git/blob - perl-Image-Grab.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Image-Grab.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Image
6 %define         pnam    Grab
7 Summary:        Image::Grab perl module
8 Summary(pl.UTF-8):      Moduł perla Image::Grab
9 Name:           perl-Image-Grab
10 Version:        1.4.2
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  8a62dcff23997e525f7557451f5758dd
17 URL:            http://search.cpan.org/dist/Image-Grab/
18 BuildRequires:  perl-Digest-MD5
19 BuildRequires:  perl-HTML-Parser
20 BuildRequires:  perl-HTML-Tree
21 BuildRequires:  perl-MIME-Base64
22 BuildRequires:  perl-URI
23 BuildRequires:  perl-devel >= 1:5.8.0
24 BuildRequires:  perl-libnet
25 BuildRequires:  perl-libwww
26 BuildRequires:  rpm-perlprov >= 4.1-13
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Image::Grab is a perl module for Grabbing images off the Internet.
32
33 %description -l pl.UTF-8
34 Image::Grab jest modułem do ściągania obrazków z Internetu.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 echo "N" | perl Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog README
58 %{perl_vendorlib}/Image/Grab.pm
59 %{perl_vendorlib}/Image/Grab
60 %{_mandir}/man3/*
This page took 0.570332 seconds and 3 git commands to generate.