rpm  5.4.14
Macros | Functions | Variables
package-rb.c File Reference
#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>
Include dependency graph for package-rb.c:

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...
 

Macro Definition Documentation

#define _RPMDS_INTERNAL

Definition at line 13 of file package-rb.c.

#define _RPMFI_INTERNAL

Definition at line 12 of file package-rb.c.

Function Documentation

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.

See Also
spec_get_packages()

Definition at line 46 of file package-rb.c.

References package_get_ds(), packageClass, and rpmModule.

Referenced by Init_rpm().

static VALUE package_get_ds ( VALUE  self)
static

Returns the dependency set associated with the package.

call-seq: RPM::Package::ds -> RPM::Ds

Returns
The package's dependency set.
See Also
rpmdsClass

Definition at line 35 of file package-rb.c.

References Package_s::ds, and rpmdsClass.

Referenced by Init_Package().

Variable Documentation

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

See Also
Package_s

Definition at line 22 of file package-rb.c.

Referenced by Init_Package(), and spec_get_packages().