]>
Commit | Line | Data |
---|---|---|
81463531 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir LWP | |
6 | %define pnam Protocol-https | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: LWP::Protocol::https - Provide https support for LWP::UserAgent | |
e9616cbf | 9 | Summary(pl.UTF-8): LWP::Protocol::https - obsługa https dla LWP::UserAgent |
81463531 | 10 | Name: perl-LWP-Protocol-https |
42aa9dd8 | 11 | Version: 6.04 |
e9616cbf | 12 | Release: 1 |
81463531 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/LWP/%{pdir}-%{pnam}-%{version}.tar.gz | |
42aa9dd8 | 17 | # Source0-md5: 1b422a7d3b5fed1eb4d748fdc9fd79a4 |
e9616cbf | 18 | URL: http://search.cpan.org/dist/LWP-Protocol-https/ |
289a502d | 19 | BuildRequires: perl-devel >= 1:5.8.1 |
81463531 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | %if %{with tests} | |
289a502d | 22 | BuildRequires: perl-IO-Socket-SSL >= 1:1.54 |
e9616cbf | 23 | BuildRequires: perl-Mozilla-CA >= 20110101 |
81463531 | 24 | BuildRequires: perl-Net-HTTP >= 6 |
e9616cbf | 25 | BuildRequires: perl-libwww >= 6.04 |
81463531 | 26 | %endif |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
e9616cbf JB |
31 | The LWP::Protocol::https module provide support for using https |
32 | schemed URLs with LWP. This module is a plug-in to the LWP protocol | |
33 | handling, so you don't use it directly. Once the module is installed | |
34 | LWP is able to access sites using HTTP over SSL/TLS. | |
81463531 | 35 | |
e9616cbf JB |
36 | %description -l pl.UTF-8 |
37 | Moduł LWP::Protocol::https zapewnia obsługę URL-i ze schematu https | |
38 | w LWP. Ten moduł jest wtyczką do obsługi protokołu w LWP, więc nie | |
39 | używa się go bezpośrednio. Po zainstalowaniu modułu LWP potrafi | |
40 | łączyć się z serwisami przy użyciu HTTP po SSL/TLS. | |
81463531 | 41 | |
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | %{__make} | |
49 | ||
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} pure_install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc Changes README | |
e9616cbf JB |
64 | %{perl_vendorlib}/LWP/Protocol/https.pm |
65 | %{_mandir}/man3/LWP::Protocol::https.3pm* |