Change-Id: Ib0b58d056d7d52b0a83b750826d8e5af63d45f64
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2476
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,55 @@ |
0 |
+Summary: Crypt::SSLeay - OpenSSL support for LWP |
|
1 |
+Name: perl-Crypt-SSLeay |
|
2 |
+Version: 0.72 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+URL: http://search.cpan.org/dist/Crypt-SSLeay/ |
|
5 |
+License: Perl Artistic License 2.0 |
|
6 |
+Group: Development/Libraries |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source: http://search.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-%{version}.tar.gz |
|
10 |
+%define sha1 Crypt-SSLeay=1b39920947c33a88b19a9c8e61ccb135b56091f8 |
|
11 |
+ |
|
12 |
+BuildArch: x86_64 |
|
13 |
+Requires: perl |
|
14 |
+Requires: openssl |
|
15 |
+BuildRequires: perl |
|
16 |
+BuildRequires: openssl-devel |
|
17 |
+BuildRequires: perl-Path-Class |
|
18 |
+BuildRequires: perl-Try-Tiny |
|
19 |
+ |
|
20 |
+%description |
|
21 |
+This Perl module provides support for the HTTPS protocol under LWP, to allow an LWP::UserAgent object to perform GET, HEAD and POST requests. Please see LWP for more information on POST requests. |
|
22 |
+ |
|
23 |
+The Crypt::SSLeay package provides Net::SSL, which is loaded by LWP::Protocol::https for https requests and provides the necessary SSL glue. |
|
24 |
+ |
|
25 |
+This distribution also makes following deprecated modules available: |
|
26 |
+ |
|
27 |
+Crypt::SSLeay::CTX |
|
28 |
+Crypt::SSLeay::Conn |
|
29 |
+Crypt::SSLeay::X509 |
|
30 |
+Work on Crypt::SSLeay has been continued only to provide https support for the LWP (libwww-perl) libraries. |
|
31 |
+ |
|
32 |
+%prep |
|
33 |
+%setup -q -n Crypt-SSLeay-%{version} |
|
34 |
+ |
|
35 |
+%build |
|
36 |
+env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
|
37 |
+make %{?_smp_mflags} |
|
38 |
+ |
|
39 |
+%install |
|
40 |
+make pure_install DESTDIR=%{buildroot} |
|
41 |
+find %{buildroot} -type f \( -name .packlist -o \ |
|
42 |
+ -name '*.bs' -size 0 \) -exec rm -f {} ';' |
|
43 |
+ |
|
44 |
+%check |
|
45 |
+make test |
|
46 |
+ |
|
47 |
+%files |
|
48 |
+%{perl_vendorlib}/* |
|
49 |
+%{_mandir}/man?/* |
|
50 |
+ |
|
51 |
+%changelog |
|
52 |
+* Wed Apr 19 2017 Xiaolin Li <xiaolinl@vmware.com> 0.72-1 |
|
53 |
+- Initial version. |
|
54 |
+ |
0 | 55 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,42 @@ |
0 |
+Summary: Cross-platform path specification manipulation for Perl |
|
1 |
+Name: perl-Path-Class |
|
2 |
+Version: 0.37 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+URL: http://search.cpan.org/~kwilliams/Path-Class-0.37/ |
|
5 |
+License: The Perl 5 License (Artistic 1 & GPL 1) |
|
6 |
+Group: Development/Libraries |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-%{version}.tar.gz |
|
10 |
+%define sha1 Path-Class=448cc1089add95d6a616a8e22adbde83dcb8f562 |
|
11 |
+ |
|
12 |
+BuildArch: x86_64 |
|
13 |
+Requires: perl |
|
14 |
+BuildRequires: perl |
|
15 |
+ |
|
16 |
+%description |
|
17 |
+Path::Class is a module for manipulation of file and directory specifications (strings describing their locations, like '/home/ken/foo.txt' or 'C:\Windows\Foo.txt') in a cross-platform manner. It supports pretty much every platform Perl runs on, including Unix, Windows, Mac, VMS, Epoc, Cygwin, OS/2, and NetWare. |
|
18 |
+ |
|
19 |
+The well-known module File::Spec also provides this service, but it's sort of awkward to use well, so people sometimes avoid it, or use it in a way that won't actually work properly on platforms significantly different than the ones they've tested their code on. |
|
20 |
+ |
|
21 |
+%prep |
|
22 |
+%setup -q -n Path-Class-%{version} |
|
23 |
+ |
|
24 |
+%build |
|
25 |
+env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
|
26 |
+make %{?_smp_mflags} |
|
27 |
+ |
|
28 |
+%install |
|
29 |
+make install DESTDIR=%{buildroot} |
|
30 |
+find %{buildroot} -name 'perllocal.pod' -delete |
|
31 |
+ |
|
32 |
+%check |
|
33 |
+make test |
|
34 |
+ |
|
35 |
+%files |
|
36 |
+%{perl_vendorlib}/* |
|
37 |
+%{_mandir}/man?/* |
|
38 |
+ |
|
39 |
+%changelog |
|
40 |
+* Wed Apr 19 2017 Xiaolin Li <xiaolinl@vmware.com> 0.37-1 |
|
41 |
+- Initial version. |
0 | 42 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,42 @@ |
0 |
+Summary: Minimal try/catch with proper preservation of $@ |
|
1 |
+Name: perl-Try-Tiny |
|
2 |
+Version: 0.28 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+URL: http://search.cpan.org/~ether/Try-Tiny-0.28/ |
|
5 |
+License: The MIT (X11) License |
|
6 |
+Group: Development/Libraries |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-%{version}.tar.gz |
|
10 |
+%define sha1 Try-Tiny=70dc6bfc6b6cdba3bc7262fe7b2ee488934b3095 |
|
11 |
+ |
|
12 |
+BuildArch: x86_64 |
|
13 |
+Requires: perl |
|
14 |
+BuildRequires: perl |
|
15 |
+ |
|
16 |
+%description |
|
17 |
+This module provides bare bones try/catch/finally statements that are designed to minimize common mistakes with eval blocks, and NOTHING else. |
|
18 |
+ |
|
19 |
+This is unlike TryCatch which provides a nice syntax and avoids adding another call stack layer, and supports calling return from the try block to return from the parent subroutine. These extra features come at a cost of a few dependencies, namely Devel::Declare and Scope::Upper which are occasionally problematic, and the additional catch filtering uses Moose type constraints which may not be desirable either. |
|
20 |
+ |
|
21 |
+%prep |
|
22 |
+%setup -q -n Try-Tiny-%{version} |
|
23 |
+ |
|
24 |
+%build |
|
25 |
+env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
|
26 |
+make %{?_smp_mflags} |
|
27 |
+ |
|
28 |
+%install |
|
29 |
+make install DESTDIR=%{buildroot} |
|
30 |
+find %{buildroot} -name 'perllocal.pod' -delete |
|
31 |
+ |
|
32 |
+%check |
|
33 |
+make test |
|
34 |
+ |
|
35 |
+%files |
|
36 |
+%{perl_vendorlib}/* |
|
37 |
+%{_mandir}/man?/* |
|
38 |
+ |
|
39 |
+%changelog |
|
40 |
+* Wed Apr 19 2017 Xiaolin Li <xiaolinl@vmware.com> 0.28-1 |
|
41 |
+- Initial version. |