]>
Commit | Line | Data |
---|---|---|
81463531 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
a86d49fc | 4 | |
81463531 | 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 |
96fc4c81 AM |
11 | Version: 6.07 |
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 | |
96fc4c81 | 17 | # Source0-md5: b8943dfb7d187af63c36fc18ab15947d |
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 |
d47802e2 | 25 | BuildRequires: perl-libwww >= 6.06 |
81463531 | 26 | %endif |
a86d49fc | 27 | Requires: perl-Mozilla-CA |
81463531 | 28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
e9616cbf JB |
32 | The LWP::Protocol::https module provide support for using https |
33 | schemed URLs with LWP. This module is a plug-in to the LWP protocol | |
34 | handling, so you don't use it directly. Once the module is installed | |
35 | LWP is able to access sites using HTTP over SSL/TLS. | |
81463531 | 36 | |
e9616cbf | 37 | %description -l pl.UTF-8 |
a86d49fc ER |
38 | Moduł LWP::Protocol::https zapewnia obsługę URL-i ze schematu https w |
39 | LWP. Ten moduł jest wtyczką do obsługi protokołu w LWP, więc nie używa | |
40 | się go bezpośrednio. Po zainstalowaniu modułu LWP potrafi łączyć się z | |
41 | serwisami przy użyciu HTTP po SSL/TLS. | |
81463531 | 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} pure_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 | |
e9616cbf JB |
65 | %{perl_vendorlib}/LWP/Protocol/https.pm |
66 | %{_mandir}/man3/LWP::Protocol::https.3pm* |