# `gbp.rpm.RpmUpstreamSource(UpstreamSource)` class documentation

Part of `gbp.rpm` (View In Hierarchy)

Upstream source class for RPM packages

Method | __init__ | Undocumented

Inherited from UpstreamSource:

Method | is_orig |
Method | is_dir |
Method | path | Undocumented
Method | unpack | Unpack packed upstream sources into a given directory (filtering out files specified by filters) and determine the toplevel of the source tree.
Method | pack | Recreate a new archive from the current one
Static Method | known_compressions | Undocumented
Method | guess_version | Undocumented
Class Variable | _orig | are the upstream sources already suitable as an upstream tarball (type: boolean)
Class Variable | _path | path to the upstream sources (type: string)
Class Variable | _unpacked | path to the unpacked source tree (type: string)
Method | _check_orig | Check if upstream source format can be used as orig tarball. This doesn't imply that the tarball is correctly named.
Method | _unpack_archive | Unpack packed upstream sources into a given directory allowing to filter out files in case of tar archives.
Method | _unpack_zip | Undocumented
Method | _unpacked_toplevel | unpacked archives can contain a leading directory or not
Method | _unpack_tar | Unpack a tarball to dir applying a list of filters. Leave the cleanup to the caller in case of an error.

def __init__(self, name, unpacked=None, **kwargs):
overrides gbp.pkg.upstreamsource.UpstreamSource.__init__
Undocumented