summaryrefslogtreecommitdiffstats
path: root/glpi-webservices.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-07 07:49:19 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-07 07:49:19 +0200
commit6eaf72971c240cb1cf25f4fa0dd8be12c5ca29c6 (patch)
tree4408581b581eacc73f705f6beeb1e5406d444e12 /glpi-webservices.spec
parent325b86ef2eefbd0a5af0b55201fd3299bfee6075 (diff)
glpi-webservices: switch spec
Diffstat (limited to 'glpi-webservices.spec')
-rw-r--r--glpi-webservices.spec30
1 files changed, 22 insertions, 8 deletions
diff --git a/glpi-webservices.spec b/glpi-webservices.spec
index 6fd6f31..2e3da14 100644
--- a/glpi-webservices.spec
+++ b/glpi-webservices.spec
@@ -2,7 +2,7 @@
#global svnrelease 322
Name: glpi-webservices
-Version: 1.3.1
+Version: 1.4.1
%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/1664/glpi_webservices-1.4.1.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,13 @@ Cette extension fournit un serveur de services web permettant
%prep
%setup -q -c
+rm -rf %{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 +81,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 +90,20 @@ 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 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