]>
Commit | Line | Data |
---|---|---|
377e53b5 | 1 | # |
5a01b76e | 2 | # Conditional build: |
3e6aff4b | 3 | %bcond_with tests # perform "make test" (uses network) |
377e53b5 | 4 | # |
e6e936d4 | 5 | %define pdir WWW |
6 | %define pnam libwww-perl | |
5a01b76e | 7 | Summary: libwww-perl - a simple and consistent API to the World-Wide Web |
5f0e6283 | 8 | Summary(pl.UTF-8): libwww-perl - prosty i logiczny API do WWW |
9c46f5b6 | 9 | Name: perl-libwww |
beff398b | 10 | Version: 6.49 |
18bdcefd | 11 | Release: 1 |
377e53b5 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
2128e5d3 | 14 | Group: Development/Languages/Perl |
ac3bd034 | 15 | Source0: http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/%{pnam}-%{version}.tar.gz |
beff398b | 16 | # Source0-md5: 86601652f46b924a26acecad0fe5c110 |
f5ef0868 | 17 | URL: http://search.cpan.org/dist/libwww-perl/ |
3e6aff4b JB |
18 | BuildRequires: perl-devel >= 1:5.8.8 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
f387c65e | 20 | BuildRequires: rpmbuild(macros) >= 1.663 |
3e6aff4b | 21 | %if %{with tests} |
44760cc9 | 22 | BuildRequires: perl(Net::FTP) >= 2.58 |
e3a00125 | 23 | BuildRequires: perl-Digest-MD5 |
3e6aff4b JB |
24 | BuildRequires: perl-Encode >= 2.12 |
25 | BuildRequires: perl-Encode-Locale | |
26 | BuildRequires: perl-File-Listing >= 6 | |
372188ef | 27 | BuildRequires: perl-HTML-Parser >= 3.33 |
3e6aff4b JB |
28 | BuildRequires: perl-HTTP-Cookies >= 6 |
29 | BuildRequires: perl-HTTP-Daemon >= 6 | |
30 | BuildRequires: perl-HTTP-Date >= 6 | |
31 | BuildRequires: perl-HTTP-Message >= 6 | |
32 | BuildRequires: perl-HTTP-Negotiate >= 6 | |
33 | BuildRequires: perl-LWP-MediaTypes >= 6 | |
372188ef | 34 | BuildRequires: perl-MIME-Base64 >= 2.1 |
ac3bd034 | 35 | BuildRequires: perl-Net-HTTP >= 6.18 |
63744f40 JB |
36 | BuildRequires: perl-Test-Needs |
37 | BuildRequires: perl-Test-RequiresInternet | |
38 | BuildRequires: perl-Test-Simple | |
372188ef | 39 | BuildRequires: perl-URI >= 1.10 |
3e6aff4b | 40 | BuildRequires: perl-WWW-RobotRules >= 6 |
2128e5d3 | 41 | BuildRequires: perl-libnet |
3e6aff4b JB |
42 | %endif |
43 | Requires: perl-File-Listing >= 6 | |
44 | Requires: perl-HTTP-Cookies >= 6 | |
45 | Requires: perl-HTTP-Daemon >= 6 | |
46 | Requires: perl-HTTP-Date >= 6 | |
47 | Requires: perl-HTTP-Message >= 6 | |
48 | Requires: perl-HTTP-Negotiate >= 6 | |
49 | Requires: perl-LWP-MediaTypes >= 6 | |
50 | Requires: perl-MIME-Base64 >= 2.1 | |
ac3bd034 | 51 | Requires: perl-Net-HTTP >= 6.18 |
3e6aff4b JB |
52 | Requires: perl-URI >= 1.10 |
53 | Requires: perl-WWW-RobotRules >= 6 | |
770577b8 JP |
54 | Provides: perl(LWP::Debug::TraceHTTP::Socket) = %{version} |
55 | Provides: perl(LWP::Protocol::http::Socket) = %{version} | |
56 | Provides: perl(LWP::Protocol::http::SocketMethods) = %{version} | |
d2d1125d | 57 | Obsoletes: perl-libwww-perl |
fdae6112 | 58 | BuildArch: noarch |
af046231 | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
03d3a68a | 60 | |
11092ec3 | 61 | # modules not always required |
f387c65e | 62 | %define _noautoreq_perl HTTP::GHTTP Authen::NTLM |
11092ec3 | 63 | |
03d3a68a | 64 | %description |
5a01b76e | 65 | The libwww-perl collection is a set of Perl modules which provides a |
d2d1125d ER |
66 | simple and consistent application programming interface to the |
67 | World-Wide Web. The main focus of the library is to provide classes | |
68 | and functions that allow you to write WWW clients. The library also | |
69 | contain modules that are of more general use and even classes that | |
70 | help you implement simple HTTP servers. | |
03d3a68a | 71 | |
4dcbc77b JR |
72 | %description -l pl.UTF-8 |
73 | libwww-perl jest zbiorem modułów Perla, dostarczających prostego API | |
d2d1125d ER |
74 | do WWW (World-Wide Web). Głównym zadaniem biblioteki jest |
75 | udostępnianie klas i funkcji, pozwalających na pisanie klientów WWW. | |
76 | Biblioteka zawiera także moduły bardziej ogólnego przeznaczenia, a | |
77 | nawet klasy, pozwalające na implementację prostego serwera HTTP. | |
1574779f | 78 | |
03d3a68a | 79 | %prep |
9c46f5b6 | 80 | %setup -q -n libwww-perl-%{version} |
03d3a68a AM |
81 | |
82 | %build | |
667f460d | 83 | yes | %{__perl} Makefile.PL \ |
44760cc9 | 84 | INSTALLDIRS=vendor |
89fabf57 | 85 | %{__make} |
03d3a68a | 86 | |
1724ad1d | 87 | %{?with_tests:%{__make} test} |
5a01b76e | 88 | |
03d3a68a | 89 | %install |
9c46f5b6 | 90 | rm -rf $RPM_BUILD_ROOT |
9c46f5b6 | 91 | |
3e6aff4b | 92 | %{__make} pure_install \ |
60f953d0 | 93 | DESTDIR=$RPM_BUILD_ROOT |
9c46f5b6 | 94 | |
328e8fcd | 95 | for file in GET HEAD POST; do |
96 | ln -sf lwp-request $RPM_BUILD_ROOT%{_bindir}/$file | |
328e8fcd | 97 | echo '.so lwp-request.1p' > $RPM_BUILD_ROOT%{_mandir}/man1/$file.1p |
98 | done | |
28788727 | 99 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/libwww/*.pod |
328e8fcd | 100 | |
03d3a68a | 101 | %clean |
85a3c1ae | 102 | rm -rf $RPM_BUILD_ROOT |
03d3a68a AM |
103 | |
104 | %files | |
e3a00125 | 105 | %defattr(644,root,root,755) |
3e6aff4b JB |
106 | %doc Changes README* |
107 | %attr(755,root,root) %{_bindir}/GET | |
108 | %attr(755,root,root) %{_bindir}/HEAD | |
109 | %attr(755,root,root) %{_bindir}/POST | |
110 | %attr(755,root,root) %{_bindir}/lwp-* | |
111 | %{perl_vendorlib}/LWP.pm | |
112 | %{perl_vendorlib}/LWP/Authen | |
113 | %{perl_vendorlib}/LWP/ConnCache.pm | |
114 | %{perl_vendorlib}/LWP/Debug.pm | |
e23e58c8 MK |
115 | %dir %{perl_vendorlib}/LWP/Debug |
116 | %{perl_vendorlib}/LWP/Debug/TraceHTTP.pm | |
3e6aff4b JB |
117 | %{perl_vendorlib}/LWP/DebugFile.pm |
118 | %{perl_vendorlib}/LWP/MemberMixin.pm | |
119 | %{perl_vendorlib}/LWP/Protocol.pm | |
120 | %{perl_vendorlib}/LWP/Protocol | |
121 | %{perl_vendorlib}/LWP/RobotUA.pm | |
122 | %{perl_vendorlib}/LWP/Simple.pm | |
123 | %{perl_vendorlib}/LWP/UserAgent.pm | |
124 | %{_mandir}/man1/GET.1p* | |
125 | %{_mandir}/man1/HEAD.1p* | |
126 | %{_mandir}/man1/POST.1p* | |
127 | %{_mandir}/man1/lwp-*.1p* | |
128 | %{_mandir}/man3/LWP*.3pm* | |
e23e58c8 MK |
129 | %{_mandir}/man3/libwww::lwpcook.3pm* |
130 | %{_mandir}/man3/libwww::lwptut.3pm* |