%define svndate 20071021 %define pluginname data_injection Name: glpi-data-injection Version: 1.0 Release: 0.%{svndate}%{?dist} Summary: Plugin for importing data into GLPI Summary(fr): Extension pour importer des données dans GLPI Group: Applications/Internet License: GPLv2 URL: http://www.glpi-project.org/ # svn co https://dev.indepnet.net:8080/svn/plugins/data_injection # tar cvjf /home/rpmbuild/SOURCES/data_injection-$(date +%Y%m%d).tar.bz2 --exclude .svn data_injection Source0: %{pluginname}-%{svndate}.tar.bz2 Source1: %{name}.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: glpi >= 0.70 %description Plugin for importing data into GLPI %description -l fr Extension pour importer des données dans GLPI %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} # ===== apache ===== rm %{buildroot}/%{_datadir}/glpi/plugins/%{pluginname}/front/.htaccess mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/ install --mode 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf %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/* %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %{_datadir}/glpi/plugins/%{pluginname} %changelog * Sun Oct 21 2007 Remi Collet - 1.0-0.20071021 - update from SVN - add apache conf - add docs * Sun Sep 23 2007 Remi Collet - 1.0-0.20070923 - update from SVN * Mon Sep 17 2007 Remi Collet - 1.0-0.20070917 - update from SVN * Fri Sep 14 2007 Remi Collet - 1.0-0.20070914 - update from SVN * Tue Sep 11 2007 Remi Collet - 1.0-0.20070911 - update from SVN * Sat Aug 25 2007 Remi Collet - 1.0-0.20070825 - Initial RPM