rpm 5.2.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

spec-py.c File Reference
PYTHON-C Language Bindings.
`#include "system.h"`
`#include <rpmiotypes.h>`
`#include <rpmio.h>`
`#include "spec-py.h"`
Include dependency graph for spec-py.c:

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_check (specObject *s)
static PyObject * | spec_get_clean (specObject *s)
static PyObject * | spec_get_sources (specObject *s)
Spec | specFromSpec (specObject *s)
specObject * | spec_Wrap (Spec spec)

## 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 78 of file spec-py.c.

References Spec_s::build, rpmiobStr(), and specFromSpec().

static PyObject* spec_get_buildroot | ( | specObject * | s | ) |
| static

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

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

static PyObject* spec_get_check | ( | specObject * | s | ) |
| static

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

References Spec_s::check, rpmiobStr(), and specFromSpec().

static PyObject* spec_get_clean | ( | specObject * | s | ) |
| static

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

References Spec_s::clean, rpmiobStr(), and specFromSpec().

static PyObject* spec_get_install | ( | specObject * | s | ) |
| static

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

References Spec_s::install, rpmiobStr(), and specFromSpec().

static PyObject* spec_get_prep | ( | specObject * | s | ) |
| static

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

References Spec_s::prep, rpmiobStr(), and specFromSpec().

static PyObject* spec_get_sources | ( | specObject * | s | ) |
| static

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

References Source::flags, Source::fullSource, Source::next, Source::num, Source::source, Spec_s::sources, and specFromSpec().

static int spec_print | ( | specObject * | s | ) |
| static

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

specObject* spec_Wrap | ( | Spec | spec | ) |

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

References specObject_s::spec.

Referenced by spec_Parse().

Spec specFromSpec | ( | specObject * | s | ) |

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

References specObject_s::spec.

Referenced by spec_get_build(), spec_get_buildroot(), spec_get_check(), spec_get_clean(), spec_get_install(), spec_get_prep(), and spec_get_sources().

## Variable Documentation

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

Definition at line 145 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 },
{"check", (PyCFunction) spec_get_check, METH_VARARGS, NULL },
{"clean", (PyCFunction) spec_get_clean, METH_VARARGS, NULL },
{"buildRoot", (PyCFunction) spec_get_buildroot, METH_VARARGS, NULL },
{NULL}
}

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