%define svndate 20071002 %define pluginname pdf Name: glpi-pdf Version: 0.3 Release: 0.%{svndate}%{?dist} Summary: GLPI Plugin to print PDF of computers Summary(fr): Extension GLPI pour créer des PDF des ordinateurs Group: Applications/Internet License: GPLv2 URL: http://www.glpi-project.org/ # svn co https://dev.indepnet.net:8080/svn/plugins/pdf # tar cvjf /home/rpmbuild/SOURCES/pdf-$(date +%Y%m%d).tar.bz2 --exclude .svn pdf Source0: %{pluginname}-%{svndate}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: glpi >= 0.70 %description This GLPI plugin enables you to print with format pdf all the mitres of a card computer or a software of the inventory. %description -l fr Cette extension GLPI vous permet de créer un PDF contenant toutes les informations sur un ordinateur ou un logiciel de l'inventaire. %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 * Tue Oct 02 2007 Remi Collet - 0.3-0.20071002 - update from SVN * Sun Sep 30 2007 Remi Collet - 0.3-0.20070930 - new SVN snapshot * Sat Sep 23 2007 Remi Collet - 0.3-0.20070922 - new SVN snapshot * Wed Sep 12 2007 Remi Collet - 0.2-0.20070912 - new SVN snapshot * Sat Aug 25 2007 Remi Collet - 0.2-0.20070825 - update from SVN * Mon Aug 13 2007 Remi Collet - 0.2-0.20070813 - Initial RPM