python/spec-py.c File Reference

#include "system.h"
#include <rpmio.h>
#include "spec-py.h"
#include <rpmbuild.h>
Include dependency graph for spec-py.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Class: Rpmspec



static char spec_doc [] = "RPM Spec file object"
static PyMethodDef spec_Spec_methods []
PyTypeObject spec_Type
static void spec_dealloc (specObject *s)
static int spec_print (specObject *s)
static PyObject * spec_get_buildroot (specObject *s)
static PyObject * spec_get_prep (specObject *s)
static PyObject * spec_get_build (specObject *s)
static PyObject * spec_get_install (specObject *s)
static PyObject * spec_get_clean (specObject *s)
static PyObject * spec_get_sources (specObject *s)
Spec specFromSpec (specObject *s)
 
specObjectspec_Wrap (Spec spec)
 

Detailed Description

Definition in file spec-py.c.


Function Documentation

static void spec_dealloc ( specObject s  )  [static]

Definition at line 38 of file spec-py.c.

References freeSpec(), and specObject_s::spec.

static PyObject* spec_get_build ( specObject s  )  [static]

Definition at line 85 of file spec-py.c.

References Spec_s::build, getStringBuf(), newStringBuf(), and specFromSpec().

static PyObject* spec_get_buildroot ( specObject s  )  [static]

Definition at line 57 of file spec-py.c.

References _free(), rpmExpand(), and specFromSpec().

static PyObject* spec_get_clean ( specObject s  )  [static]

Definition at line 115 of file spec-py.c.

References Spec_s::clean, getStringBuf(), newStringBuf(), and specFromSpec().

static PyObject* spec_get_install ( specObject s  )  [static]

Definition at line 100 of file spec-py.c.

References getStringBuf(), Spec_s::install, newStringBuf(), and specFromSpec().

static PyObject* spec_get_prep ( specObject s  )  [static]

Definition at line 70 of file spec-py.c.

References getStringBuf(), newStringBuf(), Spec_s::prep, and specFromSpec().

static PyObject* spec_get_sources ( specObject s  )  [static]
static int spec_print ( specObject s  )  [static]

Definition at line 48 of file spec-py.c.

specObject* spec_Wrap ( Spec  spec  ) 

Definition at line 228 of file spec-py.c.

References specObject_s::spec.

Referenced by spec_Parse().

Spec specFromSpec ( specObject s  ) 

Variable Documentation

char spec_doc[] = "RPM Spec file object" [static]

Definition at line 161 of file spec-py.c.

PyMethodDef spec_Spec_methods[] [static]
Initial value:
 {
    {"sources",   (PyCFunction) spec_get_sources, METH_VARARGS,  NULL },
    {"prep",   (PyCFunction) spec_get_prep, METH_VARARGS,  NULL },
    {"build",   (PyCFunction) spec_get_build, METH_VARARGS,  NULL },
    {"install",   (PyCFunction) spec_get_install, METH_VARARGS,  NULL },
    {"clean",   (PyCFunction) spec_get_clean, METH_VARARGS,  NULL },
    {"buildRoot",   (PyCFunction) spec_get_buildroot, METH_VARARGS,  NULL },
    {NULL}  
}

Definition at line 165 of file spec-py.c.

Generated on Wed Jun 30 22:48:59 2010 for rpm by  doxygen 1.6.3