From 0c6daf05d6865196e8c3b1f91fe6e1d950a107fc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2012 20:26:29 +0200 Subject: reorg repo --- Makefile | 4 ++ glpi-webservices-dev.spec | 134 ++++++++++++++++++++++++++++++++++++++++++++++ glpi-webservices.spec | 120 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 258 insertions(+) create mode 100644 Makefile create mode 100644 glpi-webservices-dev.spec create mode 100644 glpi-webservices.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/glpi-webservices-dev.spec b/glpi-webservices-dev.spec new file mode 100644 index 0000000..9e131e0 --- /dev/null +++ b/glpi-webservices-dev.spec @@ -0,0 +1,134 @@ +%global pluginname webservices +#global svnrelease 322 + +Name: glpi-webservices +Version: 1.3.0 +%if 0%{?svnrelease} +Release: 0.1.svn%{svnrelease}%{?dist} +%else +Release: 1%{?dist} +%endif +Summary: GLPI Plugin which provides web services +Summary(fr): Extension GLPI fournissant des services web + +Group: Applications/Internet +License: GPLv2+ +URL: https://forge.indepnet.net/projects/webservices + +%if 0%{?svnrelease} +# svn export -r 322 https://forge.indepnet.net/svn/webservices/trunk 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/1098/glpi-webservices-1.3.0.tar.gz +%endif + + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: glpi >= 0.83 +Requires: glpi < 0.84 +Requires: php-xmlrpc 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 + +cat >httpd < + + Require all denied + + + Order Allow,Deny + Deny from all + + + + + + # Uncomment next line to enable compression and reduce network load + #php_value zlib.output_compression 4096 + + +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}/.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 + + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc %{pluginname}/LICENSE +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%{_datadir}/glpi/plugins/%{pluginname} + + +%changelog +* Fri Apr 06 2012 Remi Collet - 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 - 1.3.0-0.1.svn322 +- update to 1.3.0 for glpi 0.83 RC (svn snapshot) + +* Sun Oct 16 2011 Remi Collet - 1.2.0-1 +- update to 1.2.0 finale version + +* Tue Sep 27 2011 Remi Collet - 1.2.0-0.2.svn290 +- new snapshot + +* Tue Sep 20 2011 Remi Collet - 1.2.0-0.2.svn282 +- new snapshot + +* Tue Jul 17 2011 Remi Collet - 1.2.0-0.1.svn264 +- update to 1.2.0 for glpi 0.80 RC (svn snapshot) + +* Tue Oct 12 2010 Remi Collet - 1.0.0-1 +- version 1.0.0 and GLPI 0.78 released + +* Wed Aug 25 2010 Remi Collet - 1.0.0-0.1.svn176 +- new snapshot + +* Tue Aug 10 2010 Remi Collet - 1.0.0-0.1.svn174 +- new snapshot + +* Wed Jul 07 2010 Remi Collet - 1.0.0-0.1.svn173 +- new snapshot + +* Fri Jul 02 2010 Remi Collet - 1.0.0-0.1.svn172 +- new snapshot + +* Sun Jun 20 2010 Remi Collet - 1.0.0-0.1.svn170 +- new snapshot + +* Fri Jun 18 2010 Remi Collet - 1.0.0-0.1.svn168 +- version 1.0.0 for glpi 0.78 RC (svn snapshot) +- initial RPM + diff --git a/glpi-webservices.spec b/glpi-webservices.spec new file mode 100644 index 0000000..5125826 --- /dev/null +++ b/glpi-webservices.spec @@ -0,0 +1,120 @@ +%global pluginname webservices +#global svnrelease 290 + +Name: glpi-webservices +Version: 1.2.0 +%if 0%{?svnrelease} +Release: 0.2.svn%{svnrelease}%{?dist} +%else +Release: 1%{?dist} +%endif +Summary: GLPI Plugin which provides web services +Summary(fr): Extension GLPI fournissant des services web + +Group: Applications/Internet +License: GPLv2+ +URL: https://forge.indepnet.net/projects/webservices + +%if 0%{?svnrelease} +# svn export -r 290 https://forge.indepnet.net/svn/webservices/branches/1.2-bugfixes webservices +# tar czf glpi-webservices-1.2.0-290.tar.gz webservices +Source0: glpi-%{pluginname}-%{version}-%{svnrelease}.tar.gz +%else +Source0: https://forge.indepnet.net/attachments/download/980/glpi-webservices-1.2.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 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 + +cat >httpd < + Order Allow,Deny + Deny from all + + + + + # Uncomment next line to enable compression and reduce network load + #php_value zlib.output_compression 4096 + + +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}/.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 + + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%{_datadir}/glpi/plugins/%{pluginname} + + +%changelog +* Sun Oct 16 2011 Remi Collet - 1.2.0-1 +- update to 1.2.0 finale version + +* Tue Sep 27 2011 Remi Collet - 1.2.0-0.2.svn290 +- new snapshot + +* Tue Sep 20 2011 Remi Collet - 1.2.0-0.2.svn282 +- new snapshot + +* Tue Jul 17 2011 Remi Collet - 1.2.0-0.1.svn264 +- update to 1.2.0 for glpi 0.80 RC (svn snapshot) + +* Tue Oct 12 2010 Remi Collet - 1.0.0-1 +- version 1.0.0 and GLPI 0.78 released + +* Wed Aug 25 2010 Remi Collet - 1.0.0-0.1.svn176 +- new snapshot + +* Tue Aug 10 2010 Remi Collet - 1.0.0-0.1.svn174 +- new snapshot + +* Wed Jul 07 2010 Remi Collet - 1.0.0-0.1.svn173 +- new snapshot + +* Fri Jul 02 2010 Remi Collet - 1.0.0-0.1.svn172 +- new snapshot + +* Sun Jun 20 2010 Remi Collet - 1.0.0-0.1.svn170 +- new snapshot + +* Fri Jun 18 2010 Remi Collet - 1.0.0-0.1.svn168 +- version 1.0.0 for glpi 0.78 RC (svn snapshot) +- initial RPM + -- cgit