blob: 825e4b13ec3aaa2c628d1d465519d89137aa0746 (
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
# remirepo spec file for glpi-webservices
#
# Copyright (c) 2010-2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global pluginname webservices
Name: glpi-webservices
Version: 2.0.0
Release: 1%{?dist}
Summary: GLPI Plugin which provides web services
Summary(fr): Extension GLPI fournissant des services web
License: GPLv2+
URL: https://forge.glpi-project.org/projects/webservices
Source0: https://forge.glpi-project.org/attachments/download/2299/glpi-webservices-2.0.0.tar.gz
BuildArch: noarch
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires: (glpi >= 9.4 with glpi < 9.5)
%else
Requires: glpi >= 9.4
Requires: glpi < 9.5
%endif
Requires: php-xmlrpc
Requires: php-soap
%description
This plugin provides a server for Web Services which allow
an external application to check and control GLPI.
%description -l fr
Cette extension fournit un serveur de services web permettant
à une application externe d'interroger et de piloter GLPI.
%prep
%setup -q -c
cd %{pluginname}
grep version_compare setup.php
rm -r .htaccess scripts/.htaccess
cd ..
# Create link to LICENSE for standard doc folder
ln -s %{_datadir}/glpi/plugins/%{pluginname}/LICENSE LICENSE
cat >httpd <<EOF
<Directory /usr/share/glpi/plugins/%{pluginname}/scripts>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
</Directory>
<Directory /usr/share/glpi/plugins/%{pluginname}>
<Files xmlrpc.php>
# Uncomment next line to enable compression and reduce network load
#php_value zlib.output_compression 4096
</Files>
</Directory>
EOF
%build
# empty build
%install
mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
# ===== apache =====
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
install --mode 644 httpd %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%{_datadir}/glpi/plugins/%{pluginname}
%changelog
* Thu Dec 12 2019 Remi Collet <remi@remirepo.net> - 2.0.0-1
- version 2.0.0 for GLPI 9.4
* Thu Dec 12 2019 Remi Collet <remi@remirepo.net> - 1.9.1-1
- version 1.9.1 for GLPI 9.3
https://forge.glpi-project.org/versions/1294
* Thu Nov 29 2018 Remi Collet <remi@remirepo.net> - 1.9.0-1
- version 1.9.0 for GLPI 9.3
https://forge.glpi-project.org/versions/1268
* Fri Jun 29 2018 Remi Collet <remi@remirepo.net> - 1.8.0-3
- fix cannot retrieve GLPI configuration when personalized
upstream from https://forge.glpi-project.org/issues/5565
* Tue Jun 12 2018 Remi Collet <remi@remirepo.net> - 1.8.0-2
- allow GLPI 9.3
* Tue Jun 5 2018 Remi Collet <remi@remirepo.net> - 1.8.0-1
- version 1.8.0 for GLPI 9.2
https://forge.glpi-project.org/versions/1264
* Fri Mar 16 2018 Remi Collet <remi@remirepo.net> - 1.7.2-1
- version 1.7.2 for GLPI 9.1
https://forge.glpi-project.org/versions/1257
* Mon Jan 8 2018 Remi Collet <remi@remirepo.net> - 1.7.1-1
- version 1.7.1 for GLPI 9.1
* Tue Jun 13 2017 Remi Collet <remi@remirepo.net> - 1.7.0-1
- version 1.7.0 for GLPI 9.1
* Tue Jun 28 2016 Johan Cwiklinski <jcwiklinski AT teclib DOT com> - 1.6.0-1.1
- Change URL
* Sat Oct 3 2015 Remi Collet <Fedora@FamilleCollet.com> - 1.6.0-1
- version 1.6.0 for GLPI 0.85.3 and 0.90
https://forge.glpi-project.org/versions/1176
* Tue Jun 2 2015 Remi Collet <Fedora@FamilleCollet.com> - 1.5.0-1
- version 1.5.0 for GLPI 0.85
https://forge.indepnet.net/versions/1102
* Mon Nov 17 2014 Remi Collet <Fedora@FamilleCollet.com> - 1.4.3-1
- version 1.4.3
https://forge.indepnet.net/versions/1040
* Mon Apr 7 2014 Remi Collet <Fedora@FamilleCollet.com> - 1.4.2-1
- version 1.4.2
https://forge.indepnet.net/projects/webservices/versions/1031
* Wed Feb 12 2014 Remi Collet <Fedora@FamilleCollet.com> - 1.4.1-1
- version 1.4.1
https://forge.indepnet.net/projects/webservices/versions/996
* Wed Nov 13 2013 Remi Collet <Fedora@FamilleCollet.com> - 1.4.0-1
- version 1.4.0 for GLPI 0.84
https://forge.indepnet.net/projects/webservices/versions/921
* Thu Jul 12 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.3.1-1
- version 1.3.1 for GLPI 0.83.3
https://forge.indepnet.net/projects/webservices/versions/703
* Fri Apr 06 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.3.0-1
- version 1.3.0
https://forge.indepnet.net/projects/webservices/versions/635
- fix config for httpd 2.4
* Sun Feb 26 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.3.0-0.1.svn322
- update to 1.3.0 for glpi 0.83 RC (svn snapshot)
* Sun Oct 16 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-1
- update to 1.2.0 finale version
* Tue Sep 27 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.2.svn290
- new snapshot
* Tue Sep 20 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.2.svn282
- new snapshot
* Sun Jul 17 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn264
- update to 1.2.0 for glpi 0.80 RC (svn snapshot)
* Tue Oct 12 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-1
- version 1.0.0 and GLPI 0.78 released
* Wed Aug 25 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn176
- new snapshot
* Tue Aug 10 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn174
- new snapshot
* Wed Jul 07 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn173
- new snapshot
* Fri Jul 02 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn172
- new snapshot
* Sun Jun 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn170
- new snapshot
* Fri Jun 18 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-0.1.svn168
- version 1.0.0 for glpi 0.78 RC (svn snapshot)
- initial RPM
|