The debian/ subdirectory contains everything that's needed to patch the sources and build the binary package. The rules file applies the patches in the debian/patches/ subdirectory to a copy of the sources in debian/buildtree/ before compiling it there.