%define svndate 20070912 %define pluginname cmd Name: glpi-cmd Version: 1.0 Release: 0.%{svndate}%{?dist} Summary: Plugin to cary out network commands from GLPI Summary(fr): Extension pour lancer des commandes réseau depuis GLPI Group: Applications/Internet License: GPLv2 URL: http://www.glpi-project.org/ # svn co https://dev.indepnet.net:8080/svn/plugins/cmd # tar cvjf /home/rpmbuild/SOURCES/cmd-$(date +%Y%m%d).tar.bz2 --exclude .svn cmd Source0: %{pluginname}-%{svndate}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: glpi >= 0.70, glpi-network Requires: /bin/ping, /bin/tracert, %{_bindir}/nslookup %description This GLPI plugin makes it possible to carry out some orders (ping, tracert, ...) from the form of an element of the inventory of GLPI. %description -l fr Cette extension GLPI vous permet de lancer des ordres (ping, tracert, ...) depuis le formulaire d'un matériel dans l'inventaire de GLPI. %prep %setup -q -n %{pluginname} # dos2unix to avoid rpmlint warnings for doc in trunk/docs/* ; do sed -i -e 's/\r//' $doc done mv trunk/docs docs %build # empty build %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_datadir}/glpi/plugins cp -ar trunk %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname} #post # first install (not upgrade) #if [ "$1" -eq "1" ]; then #fi #postun # uninstall (not upgrade) #if [ "$1" -eq "0" ]; then #fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{_datadir}/glpi/plugins/%{pluginname} %changelog * Wed Sep 12 2007 Remi Collet - 1.0-0.20070912 - new SVN snapshot * Sat Aug 25 2007 Remi Collet - 1.0-0.20070825 - new SVN snapshot * Wed Jul 25 2007 Remi Collet - 1.0-0.20070725 - new SVN snapshot (add plugin tab to network equipment) * Tue Jul 24 2007 Remi Collet - 1.0-0.20070724 - Initial RPM