rpm
5.4.15
|
#include "system.h"
#include "rpm-rb.h"
#include "rpmds-rb.h"
#include "package-rb.h"
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmio.h>
#include <rpmfi.h>
#include <rpmspec.h>
#include <rpmds.h>
Go to the source code of this file.
Macros | |
#define | _RPMFI_INTERNAL |
#define | _RPMDS_INTERNAL |
Functions | |
static VALUE | package_get_ds (VALUE self) |
Returns the dependency set associated with the package. More... | |
void | Init_Package (void) |
Creates a new RPM::Package instance. More... | |
Variables | |
VALUE | packageClass |
RPM::Package class that represents a package during build. More... | |
#define _RPMDS_INTERNAL |
Definition at line 13 of file package-rb.c.
#define _RPMFI_INTERNAL |
Definition at line 12 of file package-rb.c.
void Init_Package | ( | void | ) |
Creates a new RPM::Package instance.
Called alone it does not make much sense; use it together with the factory RPM::Spec::packages.
Definition at line 46 of file package-rb.c.
References package_get_ds(), packageClass, and rpmModule.
Referenced by Init_rpm().
|
static |
Returns the dependency set associated with the package.
call-seq: RPM::Package::ds -> RPM::Ds
Definition at line 35 of file package-rb.c.
References Package_s::ds, and rpmdsClass.
Referenced by Init_Package().
VALUE packageClass |
RPM::Package class that represents a package during build.
The general way of acquiring a RPM::Package class is to get it from the spec file after it has been parsed, e.g.
ts = RPM::Ts.new spec = ts.parse_spec 'foo.spec' spec.packages.each do |pkg|
end
Definition at line 22 of file package-rb.c.
Referenced by Init_Package(), and spec_get_packages().