summaryrefslogtreecommitdiffstats
path: root/perl-FusionInventory-Agent-Task-Deploy.spec
blob: c10b644103e822c2031856b82237f0b0bcefdd76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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.