#!/bin/sh
if [ $# -le 1 ]; then
	echo "$0 <collection name> <rpmbuild arguments>"
	echo "or:"
	echo "$0 <rpmbuild arguments> if 'scl' macro is defined system-wide"
else
	SCL=$1
	shift
	rpmbuild $@ --define "scl $SCL"
fi
