]>
Commit | Line | Data |
---|---|---|
377e53b5 | 1 | # |
5a01b76e | 2 | # Conditional build: |
1724ad1d | 3 | %bcond_with tests # perform "make test" |
377e53b5 | 4 | # |
2128e5d3 | 5 | %include /usr/lib/rpm/macros.perl |
e6e936d4 | 6 | %define pdir WWW |
7 | %define pnam libwww-perl | |
5a01b76e | 8 | Summary: libwww-perl - a simple and consistent API to the World-Wide Web |
4dcbc77b | 9 | Summary(pl.UTF-8): libwww-perl - prosty i logiczny API do WWW |
9c46f5b6 | 10 | Name: perl-libwww |
bb876e3a | 11 | Version: 5.805 |
12 | Release: 1 | |
377e53b5 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
2128e5d3 | 15 | Group: Development/Languages/Perl |
e8c0c4f1 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz |
bb876e3a | 17 | # Source0-md5: db1eb693eee45d251966ad2bab49dbbf |
f5ef0868 | 18 | URL: http://search.cpan.org/dist/libwww-perl/ |
44760cc9 | 19 | BuildRequires: perl(Net::FTP) >= 2.58 |
e3a00125 | 20 | BuildRequires: perl-Digest-MD5 |
372188ef JB |
21 | BuildRequires: perl-HTML-Parser >= 3.33 |
22 | BuildRequires: perl-MIME-Base64 >= 2.1 | |
23 | BuildRequires: perl-URI >= 1.10 | |
523d12e2 | 24 | BuildRequires: perl-devel >= 1:5.8.0 |
2128e5d3 | 25 | BuildRequires: perl-libnet |
9dae4cd2 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
fdae6112 | 27 | BuildArch: noarch |
af046231 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89340d22 | 29 | Obsoletes: perl-libwww-perl |
03d3a68a | 30 | |
11092ec3 | 31 | # modules not always required |
60f953d0 | 32 | %define _noautoreq 'perl(HTML::Parse)' 'perl(HTML::FormatPS)' 'perl(HTML::FormatText)' 'perl(HTTP::GHTTP)' 'perl(IO::Socket::SSL)' 'perl(Mail::Internet)' 'perl(Authen::NTLM)' |
11092ec3 | 33 | |
03d3a68a | 34 | %description |
5a01b76e | 35 | The libwww-perl collection is a set of Perl modules which provides a |
36 | simple and consistent application programming interface to the World-Wide | |
37 | Web. The main focus of the library is to provide classes and functions | |
38 | that allow you to write WWW clients. The library also contain modules | |
39 | that are of more general use and even classes that help you implement | |
40 | simple HTTP servers. | |
03d3a68a | 41 | |
4dcbc77b JR |
42 | %description -l pl.UTF-8 |
43 | libwww-perl jest zbiorem modułów Perla, dostarczających prostego API | |
44 | do WWW (World-Wide Web). Głównym zadaniem biblioteki jest udostępnianie | |
45 | klas i funkcji, pozwalających na pisanie klientów WWW. Biblioteka zawiera | |
46 | także moduły bardziej ogólnego przeznaczenia, a nawet klasy, pozwalające | |
47 | na implementację prostego serwera HTTP. | |
1574779f | 48 | |
03d3a68a | 49 | %prep |
9c46f5b6 | 50 | %setup -q -n libwww-perl-%{version} |
03d3a68a AM |
51 | |
52 | %build | |
667f460d | 53 | yes | %{__perl} Makefile.PL \ |
44760cc9 | 54 | INSTALLDIRS=vendor |
89fabf57 | 55 | %{__make} |
03d3a68a | 56 | |
1724ad1d | 57 | %{?with_tests:%{__make} test} |
5a01b76e | 58 | |
03d3a68a | 59 | %install |
9c46f5b6 | 60 | rm -rf $RPM_BUILD_ROOT |
9c46f5b6 | 61 | |
60f953d0 JB |
62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
9c46f5b6 | 64 | |
328e8fcd | 65 | for file in GET HEAD POST; do |
66 | ln -sf lwp-request $RPM_BUILD_ROOT%{_bindir}/$file | |
67 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p | |
68 | echo '.so lwp-request.1p' > $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p | |
69 | done | |
70 | ||
03d3a68a | 71 | %clean |
85a3c1ae | 72 | rm -rf $RPM_BUILD_ROOT |
03d3a68a AM |
73 | |
74 | %files | |
e3a00125 | 75 | %defattr(644,root,root,755) |
5a01b76e | 76 | %doc README* |
9dae4cd2 | 77 | %{perl_vendorlib}/*.pm |
78 | %{perl_vendorlib}/File/* | |
79 | %{perl_vendorlib}/HTML/* | |
80 | %{perl_vendorlib}/HTTP/* | |
81 | %{perl_vendorlib}/Net/* | |
82 | %{perl_vendorlib}/LWP | |
83 | %{perl_vendorlib}/WWW/* | |
9c46f5b6 | 84 | %attr(755,root,root) %{_bindir}/* |
5b2bae56 | 85 | %{_mandir}/man1/* |
60f953d0 | 86 | %{_mandir}/man3/[!B]* |