]> git.pld-linux.org Git - packages/perl-libwww.git/blob - perl-libwww.spec
- removed rpmperl-automation-workaround patch, use noautoreq macro instead
[packages/perl-libwww.git] / perl-libwww.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Perl LIBWWW module
3 Summary(pl):    Modu³ perla LIBWWW
4 Name:           perl-libwww
5 Version:        5.52
6 Release:        1
7 License:        GPL
8 Group:          Development/Languages/Perl
9 Group(de):      Entwicklung/Sprachen/Perl
10 Group(pl):      Programowanie/Jêzyki/Perl
11 Source0:        ftp://ftp.perl.org/pub/CPAN/modules/by-module/WWW/libwww-perl-%{version}.tar.gz
12 BuildRequires:  rpm-perlprov >= 3.0.3-18
13 BuildRequires:  perl >= 5.6
14 %requires_eq    perl
15 BuildRequires:  perl-Digest-MD5
16 BuildRequires:  perl-HTML-Parser
17 BuildRequires:  perl-MIME-Base64
18 BuildRequires:  perl-URI
19 BuildRequires:  perl-libnet
20 %requires_eq    perl
21 Requires:       %{perl_sitearch}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 # modules not always required
25 %define _noautoreq "perl(HTML::Parse)" "perl(HTML::FormatPS)" "perl(HTML::FormatText)" "perl(HTTP::GHTTP)" "perl(IO::Socket::SSL)" "perl(Mail::Internet)"
26
27 %description
28 Libwww-perl is a collection of Perl modules which provides a simple
29 and consistent programming interface (API) to the World-Wide Web.
30
31 %description -l pl
32 Libwww-perl jest kolekcj± modu³ów Perla, które dostaczaj± proste API
33 do WWW (World-Wide Web).
34
35 %prep
36 %setup -q -n libwww-perl-%{version}
37
38 %build
39 perl Makefile.PL
40 %{__make} OPTIMIZE="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46
47 gzip -9nf README TODO
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc *.gz
55 %{perl_sitelib}/*.pm
56 %{perl_sitelib}/*.pod
57 %{perl_sitelib}/Bundle/*
58 %{perl_sitelib}/File/*
59 %{perl_sitelib}/HTML/*
60 %{perl_sitelib}/HTTP/*
61 %{perl_sitelib}/LWP
62 %{perl_sitelib}/WWW
63 %attr(755,root,root) %{_bindir}/*
64 %{_mandir}/man*/*
This page took 0.131376 seconds and 4 git commands to generate.