%define svndate 20070912 %define pluginname archires Name: glpi-archires Version: 1.5 Release: 0.%{svndate}%{?dist} Summary: GLPI Plugin for network architecture Summary(fr): Extension GLPI pour l'architecture réseau Group: Applications/Internet License: GPLv2 URL: http://www.glpi-project.org/ # svn co https://dev.indepnet.net:8080/svn/plugins/archires # tar cvjf /home/rpmbuild/SOURCES/archires-$(date +%Y%m%d).tar.bz2 --exclude .svn archires Source0: %{pluginname}-%{svndate}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: glpi >= 0.70, glpi-network >= 1.2, graphviz %description This GLPI plugin allow you to generate automatically a graphical representation of the network architecture. %description -l fr Cette extension GLPI vous permet de générer automatiquement une représentation graphique de votre architecture réseau. %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.5-0.20070912 - new SVN snapshot * Sat Aug 25 2007 Remi Collet - 1.5-0.20070825 - new SVN * Mon Jul 23 2007 Remi Collet - 1.5-0.20070723 - Initial RPM