Summary: Perforce server Name: p4d Version: 2004.02 Release: 1 Copyright: Commercial Group: Development/Tools Source0: http://www.perforce.com/downloads/perforce/r04.2/bin.linux24x86/p4d Source1: http://www.perforce.com/perforce/doc.042/man/p4d.1 BuildRoot: %{_tmppath}/%{name}-root %description Server for the Perforce revision control system. %prep %build cp $RPM_SOURCE_DIR/p4d $RPM_BUILD_DIR cp $RPM_SOURCE_DIR/p4d.1 $RPM_BUILD_DIR gzip p4d.1 cp $RPM_SOURCE_DIR/p4review.py $RPM_BUILD_DIR cp $RPM_SOURCE_DIR/p4review.conf.defaults $RPM_BUILD_DIR %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -m 755 p4d $RPM_BUILD_ROOT%{_sbindir}/p4d install -m 644 p4d.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/p4d.1.gz install -m 755 p4review.py $RPM_BUILD_ROOT%{_sbindir}/p4review mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d install -m 755 $RPM_SOURCE_DIR/initscript $RPM_BUILD_ROOT/etc/rc.d/init.d/p4d %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc p4review.conf.defaults %{_sbindir}/p4d %{_sbindir}/p4review %{_mandir}/man*/* /etc/rc.d/init.d/p4d %preun /sbin/service p4d stop || true %changelog * Thu Apr 27 2006 Charles Hardin - add manpage * Thu Apr 13 2006 Scott Lamb - initial packaging