diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-04-15 09:31:35 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-04-15 09:31:35 +0200 |
commit | c6c65aaab13cdd8d24cb61beba2a32eff7dba1a3 (patch) | |
tree | 55049ae8b43de574e1f3a5e664c1608322abd887 |
perl-FusionInventory-Agent-Task-Deploy-2.0.0: new package
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | perl-FusionInventory-Agent-Task-Deploy.spec | 86 |
2 files changed, 90 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/perl-FusionInventory-Agent-Task-Deploy.spec b/perl-FusionInventory-Agent-Task-Deploy.spec new file mode 100644 index 0000000..c10b644 --- /dev/null +++ b/perl-FusionInventory-Agent-Task-Deploy.spec @@ -0,0 +1,86 @@ +Name: perl-FusionInventory-Agent-Task-Deploy +Version: 2.0.0 +Release: 1%{?dist} +Summary: Software deployment support for FusionInventory Agent +License: GPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/FusionInventory-Agent-Task-Deploy/ +Source0: http://search.cpan.org/CPAN/authors/id/F/FU/FUSINV/FusionInventory-Agent-Task-Deploy-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 1:5.8.0 +BuildRequires: perl(Archive::Extract) +BuildRequires: perl(Archive::Tar) +BuildRequires: perl(Digest::SHA) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Copy::Recursive) +BuildRequires: perl(JSON) +BuildRequires: perl(POE::Component::Client::Ping) +BuildRequires: perl(Test::Compile) +BuildRequires: perl(Test::HTTP::Server::Simple) +BuildRequires: perl(URI::Escape) +BuildRequires: perl(FusionInventory::Agent) >= 2.2.0 +%if 0%{?fedora} >= 14 +BuildRequires: perl(HTTP::Server::Simple::Authen) perl(CGI) +%endif + +Requires: perl(FusionInventory::Agent) >= 2.2.0 +Requires: perl(Archive::Extract) +Requires: perl(Digest::SHA) +Requires: perl(File::Copy::Recursive) +Requires: perl(JSON) +Requires: perl(POE::Component::Client::Ping) +Requires: perl(URI::Escape) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +With this module, FusionInventory can accept software deployment request +from an GLPI server with the FusionInventory plugin. + + +%prep +%setup -q -n FusionInventory-Agent-Task-Deploy-%{version} + + +%build +perl Makefile.PL \ + PREFIX=%{_prefix} \ + SYSCONFDIR=%{_sysconfdir}/fusioninventory \ + LOCALSTATEDIR=%{_localstatedir}/lib/%{name} + +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} + +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + + +%check +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy.pm +%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy +%{_mandir}/man3/* + + +%changelog +* Sun Apr 15 2012 Remi Collet <remi@fedoraproject.org> - 2.1.0-1 +- initial spec for Agent 2.2.0 +- Specfile autogenerated by cpanspec 1.78. + |