60 PyObject * result = NULL;
61 const char * buildRootURL =
rpmExpand(
"%{?buildroot}", NULL);
62 if (spec != NULL && *buildRootURL)
63 result = Py_BuildValue(
"s", buildRootURL);
64 buildRootURL =
_free(buildRootURL);
73 return (spec != NULL && spec->
prep != NULL)
82 return (spec != NULL && spec->
build != NULL)
91 return (spec != NULL && spec->
install != NULL)
100 return (spec != NULL && spec->
check != NULL)
109 return (spec != NULL && spec->
clean != NULL)
118 PyObject *sourceList, *srcUrl;
122 sourceList = PyList_New(0);
127 while (source != NULL) {
129 srcUrl = Py_BuildValue(
"(sii)", fullSource, source->
num, source->
flags);
130 PyList_Append(sourceList, srcUrl);
131 source = source->
next;
134 return PyList_AsTuple(sourceList);
163 PyObject_HEAD_INIT(&PyType_Type)