rpm  5.4.14
Macros
spec-py.c File Reference
#include "system.h"
#include <rpmiotypes.h>
#include <rpmio.h>
#include <rpmmacro.h>
#include "spec-py.h"
Include dependency graph for spec-py.c:

Go to the source code of this file.

Macros

#define _MACRO_INTERNAL
 

Class: Rpmspec

static void
 
static PyObject *PyObject * result = NULL
 
const char * buildRootURL = rpmExpand("%{?buildroot}", NULL)
 
static PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
prep)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
build)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
install)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
check)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
clean)) PyObject *PyObject * 
sourceList
 
static PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
prep)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
build)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
install)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
check)) PyObject *static
Py_BuildValue("s", rpmiobStr(spec->
clean)) PyObject *PyObject * 
srcUrl
 
Spec spec = specFromSpec(s)
 
const char * fullSource
 
 else
 
static PyObject *PyObject * macroDict
 
static char spec_doc [] = "RPM Spec file object"
 
static PyMethodDef spec_Spec_methods []
 
PyTypeObject spec_Type
 
 PyObject_Del (s)
 
static int spec_print (specObject *s)
 
 if (!sourceList)
 
 if (spec!=NULL)
 
Spec specFromSpec (specObject *s)
 
specObjectspec_Wrap (Spec spec)
 

Macro Definition Documentation

#define _MACRO_INTERNAL

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

Function Documentation

if ( sourceList)

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

References NULL.

if ( spec!  = NULL)
PyObject_Del ( s  )
static int spec_print ( specObject s)
static

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

specObject* spec_Wrap ( Spec  spec)

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

References NULL, s, specObject_s::spec, and spec.

Spec specFromSpec ( specObject s)

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

References specObject_s::spec.

Variable Documentation

buildRootURL = rpmExpand("%{?buildroot}", NULL)

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

Referenced by handlePreambleTag(), and rpmfcGenerateDepends().

else
Initial value:
{
return NULL
return NULL
Definition: poptALL.c:613

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

const char* fullSource

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

macroDict
Initial value:
{
struct MacroContext_s * MacroContext
Definition: rpmmacro.h:13

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

return result = NULL

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

sourceList
Initial value:
{
struct Source * source
const char * source
Definition: rpmspec.h:48
Definition: rpmspec.h:44

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

Spec spec = specFromSpec(s)
char spec_doc[] = "RPM Spec file object"
static

Definition at line 198 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 },
{"macros", (PyCFunction) spec_get_macros, METH_VARARGS, NULL },
{NULL}
}
static VALUE spec_get_sources(VALUE self)
Returns an array of all sources defined in the spec file.
Definition: spec-rb.c:97
static VALUE spec_get_macros(VALUE self)
Returns the macro context of the spec file.
Definition: spec-rb.c:153
return NULL
Definition: poptALL.c:613

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

PyObject* static Py_BuildValue ("s", rpmiobStr(spec->prep)) PyObject* static Py_BuildValue ("s", rpmiobStr(spec->build)) PyObject* static Py_BuildValue ("s", rpmiobStr(spec->install)) PyObject* static Py_BuildValue ("s", rpmiobStr(spec->check)) PyObject* static Py_BuildValue ("s", rpmiobStr(spec->clean)) PyObject* PyObject * srcUrl

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

void
static
Initial value:
{
s->spec = freeSpec(s->spec)
Spec freeSpec(Spec spec)
Destroy a spec file control structure.
const char * s
Definition: poptALL.c:734

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