# `gbp.rpm.SrcRpmFile(object)` class documentation

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

Keeps all needed data read from a source rpm

Method | __init__ | Undocumented
Method | version | Get the (downstream) version of the RPM package
Method | name | Get the name of the RPM package
Method | upstreamversion | Get the upstream version of the RPM package
Method | packager | Get the packager of the RPM package
Method | unpack | Unpack the source rpm to tmpdir. Leave the cleanup to the caller in case of an error.

def __init__(self, srpmfile):
Undocumented
@property
def version(self):

Get the (downstream) version of the RPM package

@property
def name(self):

Get the name of the RPM package

@property
def upstreamversion(self):

Get the upstream version of the RPM package

@property
def packager(self):

Get the packager of the RPM package

def unpack(self, dest_dir):

Unpack the source rpm to tmpdir. Leave the cleanup to the caller in case of an error.