[packaging] Generate variants from spec template