%define svndate 20070912 %define pluginname projet Name: glpi-projet Version: 0.7 Release: 0.%{svndate}%{?dist} Summary: GLPI Plugin to manage your projects Summary(fr): Extension GLPI pour gérer vos projets Group: Applications/Internet License: GPLv2 URL: http://www.glpi-project.org/ # svn co https://dev.indepnet.net:8080/svn/plugins/projet # tar cvjf /home/rpmbuild/SOURCES/projet-$(date +%Y%m%d).tar.bz2 --exclude .svn projet Source0: %{pluginname}-%{svndate}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: glpi >= 0.70 %description This GLPI plugin allow you to manage your projects. %description -l fr Cette extension GLPI vous permet de gérer vos projets. %prep %setup -q -n %{pluginname} # dos2unix to avoid rpmlint warnings mv trunk/docs docs for doc in docs/* ; do sed -i -e 's/\r//' $doc done %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 - 0.7-0.20070912 - new SVN snapshot * Sat Aug 25 2007 Remi Collet - 0.7-0.20070825 - update from SVN * Tue Jul 24 2007 Remi Collet - 0.7-0.20070725 - Initial RPM