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

Go to the source code of this file.

Macros

#define _MACRO_INTERNAL
 
#define _RPMTAG_INTERNAL
 

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)
 
static PyObject * spec_get_macros (specObject *s)
 
static PyObject * spec_get_headers (specObject *s)
 
Spec specFromSpec (specObject *s)
 
specObjectspec_Wrap (Spec spec)
 

Macro Definition Documentation

#define _MACRO_INTERNAL

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

#define _RPMTAG_INTERNAL

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

Function Documentation

static void spec_dealloc ( specObject s)
static

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

References freeSpec(), and specObject_s::spec.

static PyObject* spec_get_build ( specObject s)
static

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

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

static PyObject* spec_get_buildroot ( specObject s)
static

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

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

static PyObject* spec_get_check ( specObject s)
static

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

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

static PyObject* spec_get_clean ( specObject s)
static

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

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

static PyObject* spec_get_headers ( specObject s)
static

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

References hdr_Wrap(), Package_s::header, and specFromSpec().

static PyObject* spec_get_install ( specObject s)
static

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

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

static PyObject* spec_get_macros ( specObject s)
static

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

References i, Spec_s::macros, and specFromSpec().

static PyObject* spec_get_prep ( specObject s)
static

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

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

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

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

specObject* spec_Wrap ( Spec  spec)

Definition at line 298 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 229 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 },
{"headers", (PyCFunction) spec_get_headers, METH_VARARGS, NULL },
{NULL}
}
static PyObject * spec_get_headers(specObject *s)
Definition: spec-py.c:199
static PyObject * spec_get_install(specObject *s)
Definition: spec-py.c:92
static PyObject * spec_get_buildroot(specObject *s)
Definition: spec-py.c:61
static PyObject * spec_get_clean(specObject *s)
Definition: spec-py.c:110
static PyObject * spec_get_build(specObject *s)
Definition: spec-py.c:83
static PyObject * spec_get_macros(specObject *s)
Definition: spec-py.c:155
static PyObject * spec_get_check(specObject *s)
Definition: spec-py.c:101
static PyObject * spec_get_sources(specObject *s)
Definition: spec-py.c:119
static PyObject * spec_get_prep(specObject *s)
Definition: spec-py.c:74

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

PyTypeObject spec_Type

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

Referenced by init_rpm().