summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--glpi-dumpentity.spec112
2 files changed, 116 insertions, 0 deletions
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-dumpentity.spec b/glpi-dumpentity.spec
new file mode 100644
index 0000000..8610960
--- /dev/null
+++ b/glpi-dumpentity.spec
@@ -0,0 +1,112 @@
+%global pluginname dumpentity
+#global svnrelease 101
+
+Name: glpi-dumpentity
+Version: 1.3.0
+%if 0%{?svnrelease}
+Release: 0.1.svn%{svnrelease}%{?dist}
+%else
+Release: 1%{?dist}
+%endif
+Summary: GLPI Plugin for entity export
+Summary(fr): Extension GLPI d'export d'entité
+
+Group: Applications/Internet
+License: GPLv2+
+URL: https://forge.indepnet.net/projects/dumpentity
+
+%if 0%{?svnrelease}
+# svn export -r 101 https://forge.indepnet.net/svn/dumpentity/trunk dumpentity
+# tar czf glpi-dumpentity-1.2.0-101.tar.gz dumpentity
+Source0: glpi-dumpentity-%{version}-%{svnrelease}.tar.gz
+%else
+Source0: https://forge.indepnet.net/attachments/download/1111/glpi-dumpentity-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
+
+
+%description
+Plugin which allow to export data from a entity to CSV.
+
+Designed to work with client using loadentity.
+
+
+%description -l fr
+Extension permettant de réaliser une exportation des données
+d'une entité en CSV.
+
+Conçue pour fonctionner avec les clients utilisant loadentity.
+
+
+%prep
+%setup -q -c
+
+# dos2unix to avoid rpmlint warnings
+for doc in %{pluginname}/docs/* ; do
+ sed -i -e 's/\r//' $doc
+done
+mv %{pluginname}/docs docs
+
+sed -i -e s/mysql_escape_string/mysql_real_escape_string/ \
+ %{pluginname}/inc/model.class.php
+
+
+%build
+# empty build
+
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}/%{_datadir}/glpi/plugins
+cp -ar %{pluginname} %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}
+
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc docs/* %{pluginname}/LICENSE
+%{_datadir}/glpi/plugins/%{pluginname}
+
+
+%changelog
+* Fri Apr 06 2012 Remi Collet <Fedora@FamilleCollet.com> - 1.3.0-1
+- version 1.3.0 for GLPI 0.83
+ https://forge.indepnet.net/projects/dumpentity/versions/651
+
+* Tue Oct 12 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-1
+- version 1.2.0 and GLPI 0.78 released
+
+* Wed Jul 07 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn101
+- new snapshot
+
+* Fri Jun 18 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-0.1.svn100
+- update to 1.2.0 for glpi 0.78 RC (svn snapshot)
+
+* Mon Jul 20 2009 Remi Collet <RPMS@FamilleCollet.com> - 1.0.1-1
+- update to 1.0.1 for glpi 0.72
+
+* Sat Jul 12 2008 Remi Collet <RPMS@FamilleCollet.com> - 0.2-1
+- update to 0.2 for glpi 0.71
+
+* Wed Jan 02 2008 Remi Collet <RPMS@FamilleCollet.com> - 0.2-0.20080102
+- new SVN snapshot
+- requires GLPI >= 0.71
+
+* Sun Nov 11 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071111
+- new SVN snapshot
+
+* Wed Oct 24 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071024
+- new SVN snapshot
+
+* Sat Oct 20 2007 Remi Collet <RPMS@FamilleCollet.com> - 0.1-0.20071020
+- Initial RPM
+