# $Id: rpmdefs.tmpl,v 1.1.1.1 2005/08/12 16:41:17 dodell Exp $ # Copyright 2001 Sun Microsystems, Inc. All rights reserved. # configuration bits for mod_rpmize # syntax: # # # # x an be $ for a string or % for a hash. # if a hash is being used, you can add sub-sections with # # %package [LABEL] Group: CCE/[VENDOR] Summary: [LABEL] for sausalito-[SERVICE]. [AUTOFILL] [BUILDARCH] [PROVIDES] %description [LABEL] The sausalito-[SERVICE]-[LABEL] package contains the [LABEL] information for sausalito-[SERVICE]. %files [LABEL] %defattr(-,root,root) [AUTOFILL] [AUTOFILL] [AUTOFILL] %post [LABEL] # glue post-install # ui post-install # this is somewhat nasty, but it always gmakes sure that there's a # default .html file in case the browser doesn't specify a locale if [ x"[DEFLOCALE]" != x ]; then for dir in `find [CCEWEB] -type d`; do (cd $dir; if [ x"`ls *.htm[l].[DEFLOCALE] 2> /dev/null`" != x ]; then for file in `ls *.htm[l].[DEFLOCALE]`; do base=`basename $file .[DEFLOCALE]` if [ ! -f $base ]; then ln -s $file $base fi done fi) done fi # locale post-install %postun [LABEL] # glue post-uninstall # ui post-uninstall # locale post-uninstall