def setup(r):
        r.addArchive('tmpwatch-2.9.0.tar.gz', rpm='tmpwatch-2.9.0-2.src.rpm')
        r.addSource('mkinitrd.spec', rpm='rpm-with-bzip-5.0.29-1.src.rpm')
        r.addArchive('rpm-with-bzip-5.0.29-1.i386.rpm')

        # add patch file so it exists in builddir
        r.addArchive('tmpwatch.fakebug.patch.tgz', dir = '%(maindir)s')
        # test applying a patch using globs and sourceDir
        r.addPatch('tmpwatch.fakebug.*', sourceDir='')"""

        # this line will fail if the patch cannot be added
        self.buildRecipe(recipestr, "TestSource")