'Instantiates a new KojiScratchPkgSpec object
:type text: string
:param text: a textual representation of a scratch build on Koji that
will be parsed
:type task: number
:param task: a koji task id, example: 1001
:type subpackages: list of strings
:param subpackages: a list of package names, usually a subset of
the RPM packages generated by a given build'

def __init__(self, text='', user=None, task=None, subpackages=[]):

    self.user = None
    self.task = None
    self.subpackages = []
    if text:
        self.parse(text)
    else:
        self.user = user
        self.task = task
        self.subpackages = subpackages
