Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:deadpoint
vmware-vsphere-cli
vmware-vsphere-sdk-cli.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vmware-vsphere-sdk-cli.spec of Package vmware-vsphere-cli
# $Id$ %define vmware_apps /usr/lib/vmware-vcli/apps %define vmware_docs /usr/share/doc/packages/vmware-vsphere-cli Summary: A Perl SDK for interacting with VMware vSphere infrastructure Name: vmware-vsphere Version: 5.0.0 Release: 615831.2 License: GPLv2+ Group: Applications/System %ifarch x86_64 Source: VMware-vSphere-CLI-5.0.0-615831.x86_64.tar.gz Source1: VMware-vSphere-CLI-5.0.0-615831.i386.tar.gz %else Source: VMware-vSphere-CLI-5.0.0-615831.i386.tar.gz Source1: VMware-vSphere-CLI-5.0.0-615831.x86_64.tar.gz %endif Source2: vmware-vcli.sh Source3: vmware-vcli.sysconfig Patch0: makefile.patch Patch1: uuid-module.patch Patch2: makefile-suse.patch URL: http://www.vmware.com PreReq: %{fillup_prereq} BuildRequires: fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build %description %package perl-sdk Summary: A Perl SDK for interacting with VMware vSphere infrastructure Group: Development/Libraries License: GPLv2+ Autoreq: 0 Requires: perl-URI Requires: perl-XML-LibXML Requires: perl-libwww-perl Requires: perl-Net-SSLeay Requires: perl-Crypt-SSLeay Requires: perl-SOAP-Lite #Requires: perl-UUID Requires: perl-OSSP-uuid Requires: libopenssl0_9_8 BuildRequires: perl BuildRequires: perl-ExtUtils-MakeMaker BuildRequires: perl-URI BuildRequires: perl-XML-LibXML BuildRequires: perl-libwww-perl BuildRequires: perl-Net-SSLeay BuildRequires: perl-Crypt-SSLeay BuildRequires: perl-SOAP-Lite BuildRequires: perl-OSSP-uuid #BuildRequires: perl-UUID %description perl-sdk The vSphere SDK for Perl is a client-side Perl framework that provides an easy-to-use scripting interface to the vSphere API. Administrators and developers who are familiar with Perl can use the vSphere SDK for Perl to automate a wide variety of administrative, provisioning, and monitoring tasks in the vSphere environment. The vSphere SDK for Perl includes ready-to-use utility applications, which you can immediately put to use in your virtual datacenter. The vSphere SDK for Perl installation includes the WS-Management Perl Library, which allows you to write scripts that retrieve CIM data from the ESX host using CIMOM, a service that provides standard CIM management functions over a WBEM (Web-Based Enterprise Management). You can use the SDK to manage: ESX 3.0.x ESX/ESXi 3.5 ESX/ESXi 4.0 ESX/ESXi 4.1 ESXi 5.0 vCenter Server 2.5 vCenter Server 4.0 vCenter Server 4.1 vCenter Server 5.0 %package cli Summary: A CLI for interacting with VMware vSphere infrastructure License: GPLv2+ Group: Applications/System Autoreq: 0 Requires: vmware-vsphere-perl-sdk Requires: perl-Archive-Zip Requires: perl-LWP-Protocol-https Requires: libexpat0 %description cli The vSphere Command-Line Interface (vSphere CLI) command set allows you to run common system administration commands against ESX/ESXi systems from any machine with network access to those systems. You can also run most vSphere CLI commands against a vCenter Server system and target any ESX/ESXi system that vCenter Server system manages. vSphere CLI includes the ESXCLI command set, vicfg- commands, and some other commands. %prep %setup -q -n vmware-vsphere-cli-distrib #%patch0 -p0 #%patch1 -p0 %patch2 -p0 %build %{__perl} Makefile.PL INSTALLDIRS=vendor \ #INSTALLVENDORSCRIPT=%{app_dir}/vcli INSTALL_BASE=%{_prefix} \ INSTALLSITELIB=%{perl_vendorlib} \ INSTALLSITEARCH=%{perl_vendorarch} \ INSTALLSITEMAN3DIR=%{_prefix}/share/man/man3 %{__make} %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} DESTDIR=$RPM_BUILD_ROOT/ install #%{__cp} -r lib/lib64/ $RPM_BUILD_ROOT%{app_dir}/vcli/lib # man pages %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1 %{__cp} man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 # Install esxcfg/vicfg scripts %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_bindir} %{__cp} bin/* $RPM_BUILD_ROOT%{_bindir} # fdupes -s %{buildroot}/%{_bindir} %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib #%{__cp} lib/lib32/lib*.0.9.8 $RPM_BUILD_ROOT%{_prefix}/lib/ %{__cp} lib/lib32/libv*.so $RPM_BUILD_ROOT%{_prefix}/lib/ # esxcli %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/esxcli %{__cp} -r lib/bin/esxcli $RPM_BUILD_ROOT%{_prefix}/lib/ # #pushd $RPM_BUILD_ROOT%{_prefix}/lib/esxcli #ln -s $RPM_BUILD_ROOT%{_bindir}/esxcli esxcli #popd # remove unecessary files %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/vmware-uninstall-vSphere-CLI.pl %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/vmware-uninstall-vSphere-CLI.pl.orig %{__rm} -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod # vcli config file mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/vmware-vcli cat <<EOD > $RPM_BUILD_ROOT%{_sysconfdir}/vmware-vcli/locations answer BINDIR %{_bindir} answer LIBDIR %{vmware_apps} EOD %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d %{__install} -m 0644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/ # %{__install} -Dp -m0644 %{S:3} %{buildroot}/var/adm/fillup-templates/sysconfig.vmware-vcli %clean %{__rm} -rf $RPM_BUILD_ROOT %post cli %{fillup_only -n vmware-vcli} %files perl-sdk %defattr(-,root,root,-) %{perl_vendorarch}/auto/VIPerlToolkit %{perl_vendorlib}/vmware-install.pl %{perl_vendorlib}/VMware %{perl_vendorlib}/WSMan %{_prefix}/share/man/man3/VMware* %files cli %defattr(-,root,root,-) %dir %{_docdir}/%{name}-cli %{_docdir}/%{name}-cli/* %dir %{_sysconfdir}/vmware-vcli %config(noreplace) %{_sysconfdir}/vmware-vcli/locations %config(noreplace) %{_sysconfdir}/profile.d/vmware-vcli.sh %dir %{vmware_apps} %{vmware_apps} %{_bindir}/* %{_prefix}/lib/libv* %dir %{_prefix}/lib/esxcli %{_prefix}/lib/esxcli* %{_mandir}/man1/* /var/adm/fillup-templates/sysconfig.vmware-vcli %changelog * Tue Aug 17 2012 <darin@darins.net> - ported to opensuse - added profile and sysconfig settings * Sun Oct 23 2011 Vaughan Whitteron <rpmbuild@firetooth.net> 5.0.0 522456.1 - Split package into Perl SDK and CLI packages - Include RCLI scripts in the CLI package * Mon Aug 29 2011 Vaughan Whitteron <rpmbuild@firetooth.net> 5.0.0 522456 - SDK 5.0.0 522456
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor