summaryrefslogtreecommitdiffstats
path: root/glpi-webservices-dev.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-11-13 15:58:42 +0100
committerRemi Collet <fedora@famillecollet.com>2013-11-13 15:58:42 +0100
commita9be3c9902f8567cba0af0f2f2a4aee4925e9368 (patch)
tree6cc4d5647f00c4ac5a3fa2343b56ee511fd932d6 /glpi-webservices-dev.spec
parent354297004b2c5c8750d95764c43ca1e23e6adc1a (diff)
glpi-webservices: 1.4.0
Diffstat (limited to 'glpi-webservices-dev.spec')
-rw-r--r--glpi-webservices-dev.spec29
1 files changed, 20 insertions, 9 deletions
diff --git a/glpi-webservices-dev.spec b/glpi-webservices-dev.spec
index be6c3b2..953a7b6 100644
--- a/glpi-webservices-dev.spec
+++ b/glpi-webservices-dev.spec
@@ -2,7 +2,7 @@
#global svnrelease 322
Name: glpi-webservices
-Version: 1.3.1
+Version: 1.4.0
%if 0%{?svnrelease}
Release: 0.1.svn%{svnrelease}%{?dist}
%else
@@ -20,16 +20,17 @@ URL: https://forge.indepnet.net/projects/webservices
# tar czf glpi-webservices-1.3.0-322.tar.gz webservices
Source0: glpi-%{pluginname}-%{version}-%{svnrelease}.tar.gz
%else
-Source0: https://forge.indepnet.net/attachments/download/1205/glpi-webservices-1.3.1.tar.gz
+Source0: https://forge.indepnet.net/attachments/download/1623/glpi_webservices-1.4.0.tar.gz
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-Requires: glpi >= 0.83.3
-Requires: glpi < 0.84
-Requires: php-xmlrpc php-soap
+Requires: glpi >= 0.84
+Requires: glpi < 0.85
+Requires: php-xmlrpc
+Requires: php-soap
%description
This plugin provides a server for Web Services which allow
@@ -43,6 +44,14 @@ Cette extension fournit un serveur de services web permettant
%prep
%setup -q -c
+rm -rf %{pluginname}/tools \
+ %{pluginname}/.htaccess \
+ %{pluginname}/scripts/.htaccess
+mv %{pluginname}/AUTHORS.txt .
+
+# 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>
@@ -73,8 +82,6 @@ mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
# ===== apache =====
-rm -f %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/.htaccess
-rm -f %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/scripts/.htaccess
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
install --mode 644 httpd %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
@@ -84,12 +91,16 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
-%doc %{pluginname}/LICENSE
+%doc LICENSE AUTHORS.txt
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%{_datadir}/glpi/plugins/%{pluginname}
%changelog
+* 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
@@ -111,7 +122,7 @@ rm -rf %{buildroot}
* Tue Sep 20 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.2.svn282
- new snapshot
-* Tue Jul 17 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn264
+* 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