# @configure_input@ # $Id: dlife.spec.in,v 1.3 2002/04/05 17:07:25 rich Exp $ Summary: Distributed Artificial Life (DLIFE) Name: @PACKAGE@ Version: @VERSION@ Release: 1 Copyright: GPL Group: Applications/Internet Source: @PACKAGE@-@VERSION@.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-root Requires: perl-libwww-perl Requires: perl >= 5.004 Requires: vixie-cron Requires: SysVinit %description Distributed Artificial Life is a package for joining your computer to a network of computers running a large artificial life simulation. %package server Summary: Distributed Artificial Life (DLIFE) server Group: Applications/Internet %description server This package contains the server code for DLIFE. %prep %setup -q %build CFLAGS="-O" \ ./configure \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-user-check make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT make NO_CHOWN=1 DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %pre grep '^dlife:' /etc/group >/dev/null || { echo "There is no 'dlife' group in /etc/group" exit 1; } grep '^dlife:' /etc/passwd >/dev/null || { echo "There is no 'dlife' user in /etc/passwd" exit 1; } %pre server grep '^dlife:' /etc/group >/dev/null || { echo "There is no 'dlife' group in /etc/group" exit 1; } grep '^dlife:' /etc/passwd >/dev/null || { echo "There is no 'dlife' user in /etc/passwd" exit 1; } %files %defattr(-,root,root) %doc /usr/share/doc/@PACKAGE@-@VERSION@/ @prefix@/bin/dlife_soup @prefix@/bin/dlife_client.pl %attr(0775,dlife,dlife) @SPOOLDIR@/ @CONFDIR@/ %config @CRONDIR@/dlife_client.cron @RCDIR@/dlife.rc %files server %defattr(-,root,root) @prefix@/bin/dlife_server.pl %attr(0775,dlife,dlife) @SPOOLDIR@/store/