%define name glpi Summary: glpi is an Information Resource Manager Name: %{name} %define version 0.7 %define release 1 Version: %{version} Release: %{release}%{?dist} License: GNU GPL version 2 URL: http://www.glpi-project.org/ Group: SMEserver/addon Source: glpi-0.70.tar.gz BuildArchitectures: noarch BuildRoot: /var/tmp/%{name}-%{version} Requires: e-smith-release >= 7.0 BuildRequires: e-smith-devtools AutoReqProv: no %description http://www.glpi-project.org GLPI is the Information Resource Manager with an additional Administration Interface. You can use it to build up a database with an inventory for your company (computer, software, printers...). It has enhanced functions to make the daily life for the administrators easier, like a job-tracking-system with mail-notification and methods to build a database with basic information about your network-topology. %changelog * Mon Dec 24 2007 Stephen Noble 0.7-1 - initial release - builds from unchanged .tgz %prep %setup -c -n %{name} %build #this lets you drop a .tgz in with the root of glpi and it builds ok mkdir -p root/opt/inventory/glpi mv %{name} root/opt/inventory/glpi %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --file '/opt/inventory/glpi/config_db.php' 'attr(440,root,www)' \ > %{name}-%{version}-filelist %clean cd .. rm -rf %{name} %pre %preun %post %postun %files -f %{name}-%{version}-filelist %defattr(-,root,root)