rpm  5.4.15
Macros | Functions | Variables
spec-rb.h File Reference

Ruby bindings for spec file access. More...

#include "system.h"
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmio.h>
#include <rpmspec.h>
Include dependency graph for spec-rb.h:
This graph shows which files directly or indirectly include this file:

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. More...
 
void Init_spec (void)
 Initializes the Ruby class. More...
 

Variables

VALUE specClass
 The Ruby class representation of the Spec_s structure and methods. More...
 

Detailed Description

Ruby bindings for spec file access.

Definition in file spec-rb.h.

Macro Definition Documentation

#define _RPMFI_INTERNAL

Definition at line 15 of file spec-rb.h.

#define _RPMTS_INTERNAL

Definition at line 14 of file spec-rb.h.

Function Documentation

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

Variable Documentation

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