blob: 8f934b9a1e44b9369ce2b4ca7b69a9aacea7e1e6 (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
|
%global pluginname appliances
#global svnrelease 136
Name: glpi-appliances
Version: 1.7.0
%if 0%{?svnrelease}
Release: 0.1.svn%{svnrelease}%{?dist}
%else
Release: 1%{?dist}
%endif
Summary: GLPI Plugin to manage appliances
Summary(fr): Extension GLPI de gestion des applicatifs
Group: Applications/Internet
License: GPLv2+
URL: https://forge.indepnet.net/projects/appliances
%if 0%{?svnrelease}
# svn export -r 136 https://forge.indepnet.net/svn/appliances/trunk appliances
# tar czf glpi-appliances-1.7.0-136.tar.gz appliances
Source0: glpi-%{pluginname}-%{version}-%{svnrelease}.tar.gz
%else
Source0: https://forge.indepnet.net/attachments/download/924/glpi-appliances-1.7.0.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: glpi >= 0.80
Requires: glpi < 0.81
Requires: php-xmlrpc php-soap
%description
This plugin add appliances management to GLPI
* Appliances creation (composed by various inventory item)
* Direct management from items
* Integrated with Helpdesk
%description -l fr
Cette extension permet la gestion des applicatifs dans GLPI
* Création d’applicatifs composé de plusieurs items
* Gestion directe à partir de l’item
* Intégration avec l'assistance
%prep
%setup -q -c
cat >httpd <<EOF
<Directory /usr/share/glpi/plugins/%{pluginname}/sql>
Order Allow,Deny
Deny from all
</Directory>
EOF
%build
# empty build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
# ===== apache =====
rm -f %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/sql/.htaccess
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
install --mode 644 httpd %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%{_datadir}/glpi/plugins/%{pluginname}
%changelog
* Thu Jun 30 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.7.0-1
- version 1.7.0 released
* Tue Jun 28 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.7.0-0.1.svn136
- version 1.7.0 for glpi 0.80 (svn snapshot)
* Tue Oct 12 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-1
- version 1.6.0 and GLPI 0.78 released
* Wed Aug 25 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-0.1.svn114
- new svn snapshot
* Sun Jun 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-0.1.svn110
- version 1.6.0 for glpi 0.78 RC (svn snapshot)
- initial RPM
|