summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--113-cpan.spec64
-rw-r--r--210-cpan.spec57
-rw-r--r--perl-FusionInventory-Agent-Task-ESX.spec38
3 files changed, 151 insertions, 8 deletions
diff --git a/113-cpan.spec b/113-cpan.spec
new file mode 100644
index 0000000..2bd6b8c
--- /dev/null
+++ b/113-cpan.spec
@@ -0,0 +1,64 @@
+Name: FusionInventory-Agent-Task-ESX
+Version: 1.1.3
+Release: 1%{?dist}
+Summary: FusionInventory::Agent::Task::ESX Perl module
+License: GPL+
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/FusionInventory-Agent-Task-ESX/
+Source0: http://www.cpan.org/modules/by-module/FusionInventory/FusionInventory-Agent-Task-ESX-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl >= 1:5.8.0
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(FusionInventory::Agent) >= 
+BuildRequires: perl(HTTP::Cookies)
+BuildRequires: perl(JSON)
+BuildRequires: perl(LWP::UserAgent)
+BuildRequires: perl(Test::Exception)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(XML::TreePP)
+Requires: perl(FusionInventory::Agent) >= 
+Requires: perl(HTTP::Cookies)
+Requires: perl(JSON)
+Requires: perl(LWP::UserAgent)
+Requires: perl(XML::TreePP)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+You can import the generated files in:
+- GLPI with FusionInventory for GLPI
+- ocsinventory
+- Uranos
+
+%prep
+%setup -q
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHOR Changes fusioninventory-esx LICENSE MYMETA.yml README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Apr 15 2012 http://blog.famillecollet.com 1.1.3-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/210-cpan.spec b/210-cpan.spec
new file mode 100644
index 0000000..5e4c97d
--- /dev/null
+++ b/210-cpan.spec
@@ -0,0 +1,57 @@
+Name: FusionInventory-Agent-Task-ESX
+Version: 2.1.0
+Release: 1%{?dist}
+Summary: FusionInventory::Agent::Task::ESX Perl module
+License: GPL+
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/FusionInventory-Agent-Task-ESX/
+Source0: http://www.cpan.org/modules/by-module/FusionInventory/FusionInventory-Agent-Task-ESX-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl >= 1:5.8.0
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(JSON)
+BuildRequires: perl(Test::Exception)
+BuildRequires: perl(Test::MockModule)
+BuildRequires: perl(Test::MockObject)
+Requires: perl(JSON)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+Description
+-----------
+This task allows the agent to perform remote inventory of ESX, ESXi,
+vCenter server using the SOAP interface.
+
+%prep
+%setup -q
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes fusioninventory-esx LICENSE MYMETA.json MYMETA.yml README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Apr 15 2012 http://blog.famillecollet.com 2.1.0-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/perl-FusionInventory-Agent-Task-ESX.spec b/perl-FusionInventory-Agent-Task-ESX.spec
index 230fea3..6a30dfd 100644
--- a/perl-FusionInventory-Agent-Task-ESX.spec
+++ b/perl-FusionInventory-Agent-Task-ESX.spec
@@ -1,6 +1,6 @@
Name: perl-FusionInventory-Agent-Task-ESX
-Version: 1.1.2
-Release: 2%{?dist}
+Version: 2.1.0
+Release: 1%{?dist}
Summary: vCenter/ESX/ESXi remote inventory for FusionInventory Agent
License: GPLv2+
Group: Development/Libraries
@@ -12,15 +12,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.8.0
BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(FusionInventory::Agent) >= 2.1.9
+BuildRequires: perl(FusionInventory::Agent) >= 2.2.0
BuildRequires: perl(HTTP::Cookies)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::MockModule)
+BuildRequires: perl(Test::MockObject)
BuildRequires: perl(XML::TreePP)
BuildRequires: perl(LWP::Protocol::https)
-Requires: perl(FusionInventory::Agent) >= 2.1.9
+Requires: perl(FusionInventory::Agent) >= 2.2.0
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
@@ -38,10 +40,16 @@ You can import the generated files in:
%prep
%setup -q -n FusionInventory-Agent-Task-ESX-%{version}
+
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL \
+ PREFIX=%{_prefix} \
+ SYSCONFDIR=%{_sysconfdir}/fusioninventory \
+ LOCALSTATEDIR=%{_localstatedir}/lib/%{name}
+
make %{?_smp_mflags}
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -52,22 +60,36 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
+
%check
make test
+
%clean
rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(-,root,root,-)
-%doc AUTHOR Changes README LICENSE
+%doc Changes README LICENSE
%{_bindir}/fusioninventory-esx
-%{perl_vendorlib}/FusionInventory/Agent/Task/ESX*
-%{perl_vendorlib}/FusionInventory/VMware
+%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/ESX.pm
+%{_datadir}/fusioninventory/lib/FusionInventory/VMware
%{_mandir}/man1/fusioninventory-esx.*
%changelog
+* Sun Apr 15 2012 Remi Collet <remi@fedoraproject.org> - 2.1.0-1
+- update to 2.1.0 for agent 2.2.0
+ http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-Task-ESX-2.1.0/Changes
+
+* Sun Feb 26 2012 Remi Collet <Fedora@famillecollet.com> 1.1.3-1
+- update to 1.1.3
+ http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-Task-ESX-1.1.3/Changes
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
* Mon Aug 08 2011 Remi Collet <Fedora@famillecollet.com> 1.1.2-2
- add BR perl(LWP::Protocol::https)