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