]> git.pld-linux.org Git - SPECS.git/blob - perl-IO-All-LWP.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-IO-All-LWP.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    IO
6 %define pnam    All-LWP
7 Summary:        IO::All::LWP - IO::All interface to LWP
8 Summary(pl.UTF-8):      IO::All::LWP - interfejs IO::All do LWP
9 Name:           perl-IO-All-LWP
10 Version:        0.14
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  2971dc7889c0c523237b1fd4488c6cdb
17 URL:            http://search.cpan.org/dist/IO-All-LWP/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-IO-All >= 0.3
22 BuildRequires:  perl(LWP)
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This module acts as glue between IO::All and LWP, so that files can
29 be read and written through the network using the convenient IO:All
30 interface. Note that this module is not used directly: you just use
31 IO::All, which knows when to autoload IO::All::HTTP, IO::All::HTTPS,
32 or IO::All::FTP, which implement the specific protocols with base on
33 IO::All::LWP.
34
35 %description -l pl.UTF-8
36 Moduł ten działa jako moduł łączący IO::All i LWP tak, że można czytać
37 z plików i zapisywać do nich poprzez siec, korzystając z wygodnego
38 interfejsu IO:All. Uwaga: modułu tego nie używa się bezpośrednio;
39 należy po prostu korzystać z IO::All, który wie, kiedy załadować
40 moduły IO::All::HTTP, IO::All::HTTPS lub IO::All::FTP implementujące
41 poszczególne protokoły w oparciu o IO::All::LWP.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49 %{__make}
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changes README
65 %{perl_vendorlib}/IO/All/*.pm
66 %{_mandir}/man3/*
This page took 0.641141 seconds and 3 git commands to generate.