blob: 1510511aaf823dfd9991f706c1564931ad85afa2 (
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# spec file for glpi-appliances
#
# Copyright (c) 2010-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global pluginname appliances
Name: glpi-appliances
Version: 2.4.1
Release: 1%{?dist}
Summary: GLPI Plugin to manage appliances
Summary(fr): Extension GLPI de gestion des applicatifs
License: GPLv2+
URL: https://forge.glpi-project.org/projects/appliances
Source0: https://forge.glpi-project.org/attachments/download/2259/glpi-appliances-2.4.1.tar.gz
BuildArch: noarch
BuildRequires: gettext
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires: (glpi >= 9.3 with glpi < 9.4)
%else
Requires: glpi >= 9.3
Requires: glpi < 9.4
%endif
%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
# Create link to LICENSE for standard doc folder
ln -s %{_datadir}/glpi/plugins/%{pluginname}/LICENSE LICENSE
rm -rf %{pluginname}/tools
cat >httpd <<EOF
<Directory /usr/share/glpi/plugins/%{pluginname}/sql>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
</Directory>
EOF
# Display compatibility check
grep version_compare %{pluginname}/setup.php
%build
# Regenerate the locales
for po in %{pluginname}/locales/*.po
do
msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
done
%install
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
for i in %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/locales/*
do
lang=$(basename $i)
echo "%lang(${lang:0:2}) %{_datadir}/glpi/plugins/%{pluginname}/locales/${lang}"
done | tee %{name}.lang
%files -f %{name}.lang
%doc LICENSE
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%dir %{_datadir}/glpi/plugins/%{pluginname}
%dir %{_datadir}/glpi/plugins/%{pluginname}/locales
%{_datadir}/glpi/plugins/%{pluginname}/*.php
%{_datadir}/glpi/plugins/%{pluginname}/ajax
%{_datadir}/glpi/plugins/%{pluginname}/front
%{_datadir}/glpi/plugins/%{pluginname}/inc
%{_datadir}/glpi/plugins/%{pluginname}/sql
# Keep here as required from interface
%{_datadir}/glpi/plugins/%{pluginname}/LICENSE
%changelog
* Fri Oct 12 2018 Remi Collet <remi@remirepo.net> - 2.4.1-1
- version 2.4.1 for GLPI 9.3
https://forge.glpi-project.org/versions/1282
* Fri Sep 14 2018 Remi Collet <remi@remirepo.net> - 2.4.0-1
- version 2.4.0 for GLPI 9.3
https://forge.glpi-project.org/versions/1276
* Fri Sep 14 2018 Remi Collet <remi@remirepo.net> - 2.3.3-1
- version 2.3.3 for GLPI 9.2
https://forge.glpi-project.org/versions/1275
* Fri Mar 16 2018 Remi Collet <remi@remirepo.net> - 2.3.2-1
- version 2.3.2 for GLPI 9.2
https://forge.glpi-project.org/versions/1262
* Mon Jan 15 2018 Remi Collet <remi@remirepo.net> - 2.3.1
- version 2.3.1 for GLPI 9.2
https://forge.glpi-project.org/versions/1253
* Tue Oct 10 2017 Remi Collet <remi@remirepo.net> - 2.3.0
- version 2.3.0 for GLPI 9.2
https://forge.glpi-project.org/versions/1244
* Mon Jan 9 2017 Remi Collet <remi@fedoraproject.org> - 2.2.1
- version 2.2.1
https://forge.glpi-project.org/versions/1203
* Tue Jun 28 2016 Johan Cwiklinski <jcwiklinski AT teclib DOT com> - 2.1-1
- Last upstream release
- Clean rpmlint mixed tabs and spaces warning
* Tue Jun 28 2016 Johan Cwiklinski <jcwiklinski AT teclib DOT com> - 1.9.1-1.1
- Change URL and Source
* Sun Jun 8 2014 Remi Collet <remi@fedoraproject.org> - 1.9.1-1
- version 1.9.1
https://forge.indepnet.net/versions/1002
* Mon Sep 30 2013 Remi Collet <remi@fedoraproject.org> - 1.9.0-1
- version 1.9.0 for GLPI 0.84.2
* Thu Jul 12 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.8.1-1
- version 1.8.1 for GLPI 0.83.3
https://forge.indepnet.net/projects/appliances/versions/747
* Fri Apr 06 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.8.0-1
- version 1.8.0
https://forge.indepnet.net/projects/appliances/versions/614
- fix config for httpd 2.4
- add 2 patches from SVN (php 5.4.0 + missing tab)
* Sun Feb 26 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.8.0-0.1.svn184
- version 1.8.0 for glpi 0.83RC (svn snapshot)
* 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
|