rpm
5.4.10
|
Ruby bindings for spec file access. More...
#include "system.h"
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmio.h>
#include <rpmspec.h>
Go to the source code of this file.
Macros | |
#define | _RPMTS_INTERNAL |
#define | _RPMFI_INTERNAL |
Functions | |
VALUE | spec_wrap (Spec spec) |
Wraps an already existing Spec_s structure in a Ruby class. | |
void | Init_spec (void) |
Initializes the Ruby class. |
Variables | |
VALUE | specClass |
The Ruby class representation of the Spec_s structure and methods. |
Ruby bindings for spec file access.
Definition in file spec-rb.h.
void Init_spec | ( | void | ) |
Initializes the Ruby class.
Definition at line 217 of file spec-rb.c.
References rpmModule, spec_build(), spec_get_macros(), spec_get_packages(), spec_get_patches(), spec_get_sources(), and specClass.
Referenced by Init_rpm().
VALUE spec_wrap | ( | Spec | spec | ) |
Wraps an already existing Spec_s structure in a Ruby class.
Definition at line 210 of file spec-rb.c.
References _spec_free(), and specClass.
Referenced by rpmts_parse_spec().
VALUE specClass |
The Ruby class representation of the Spec_s structure and methods.
This is the RPM::Spec class. It is generated from an existing transaction set via RPM::Ts::parse_spec. Instances of RPM::Spec provide access to information about the spec file itself (such as a list of sources and patches, or access to the macro context associated with the spec file), and also allow building the spec file.
Raise exceptions on build failures.
Definition at line 31 of file spec-rb.c.
Referenced by Init_spec(), and spec_wrap().