Skip to content

Commit

Permalink
New NetApp SDK released
Browse files Browse the repository at this point in the history
  • Loading branch information
gcoxmoz committed Oct 24, 2016
1 parent 72f7d86 commit ccf4a25
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
Summary: NetApp's SDK for interacting with filers
Name: NetApp-SDK
Version: 5.4P2
Release: 1%{dist}
Release: 2%{dist}
License: NetApp SDK License Agreement v11-04-14
Group: Development/Libraries
Source: netapp-manageability-sdk-%{version}.zip
Patch0: perlfix.patch
Patch0: %{name}-%{version}-perlfix.patch
URL: http://support.netapp.com
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Vendor: Mozilla IT
Expand Down Expand Up @@ -45,6 +45,9 @@ The NetApp Manageability SDK provides resources to develop applications that mon
%{perl_vendorlib}/%{name}/*

%changelog
* Wed Oct 24 2016 Greg Cox <[email protected]> 5.4P2
- Changed patch name so I can have multiple patches sitting around.

* Wed May 4 2016 Greg Cox <[email protected]> 5.4P2
- SDK 5.4P2

14 changes: 14 additions & 0 deletions SDK/NetApp/NetApp-SDK-5.6-perlfix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# I opened a case with NTAP support on this
# $response is double-declared and will error at you under use strict
#
--- lib/perl/NetApp/NaServer-old.pm 2016-09-27 16:24:40.000000000 +0000
+++ lib/perl/NetApp/NaServer.pm 2016-10-24 05:56:54.975154221 +0000
@@ -880,7 +880,6 @@
my $line;
my $sock_err = undef;
my $content_length = 0;
- my $response;
my $hex_length;

## Perl socket timeout has no effect during socket read.
53 changes: 53 additions & 0 deletions SDK/NetApp/NetApp-SDK-5.6.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# $Id$
%define debug_package %{nil}
%define perl_vendorlib /usr/lib64/perl5/vendor_perl

Summary: NetApp's SDK for interacting with filers
Name: NetApp-SDK
Version: 5.6
Release: 1%{dist}
License: NetApp SDK License Agreement v11-04-14
Group: Development/Libraries
Source: http://mysupport.netapp.com/NOW/download/software/nmsdk/%{version}/netapp-manageability-sdk-%{version}.zip
Patch0: %{name}-%{version}-perlfix.patch
URL: http://support.netapp.com
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Vendor: Mozilla IT

%description
Empty placeholder


%package Perl
Summary: A Perl SDK for interacting with NetApp filers
BuildArch: noarch
Prefix: %{perl_vendorlib}

%description Perl
The NetApp Manageability SDK provides resources to develop applications that monitor and manage NetApp storage systems.

%prep
%setup -q -n netapp-manageability-sdk-%{version}
%patch0 -p0

%build

%install
%{__mkdir} -p $RPM_BUILD_ROOT%{perl_vendorlib}/%{name}
%{__cp} lib/perl/NetApp/NaServer.pm $RPM_BUILD_ROOT%{perl_vendorlib}/%{name}
%{__cp} lib/perl/NetApp/NaElement.pm $RPM_BUILD_ROOT%{perl_vendorlib}/%{name}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files Perl
%defattr(-,root,root,-)
%{perl_vendorlib}/%{name}/*

%changelog
* Wed Oct 24 2016 Greg Cox <[email protected]> 5.6
- SDK 5.6

* Wed May 4 2016 Greg Cox <[email protected]> 5.4P2
- SDK 5.4P2

0 comments on commit ccf4a25

Please sign in to comment.