#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "buildio.h"
#include "misc.h"
#include "signature.h"
#include "rpmlead.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | RPMPKGVERSION_MIN 30004 |
#define | RPMPKGVERSION_MAX 40003 |
Functions | |
static int | genSourceRpmName (Spec spec) |
static int | cpio_doio (FD_t fdo, Header h, CSA_t csa, const char *fmodeMacro) |
static int | cpio_copy (FD_t fdo, CSA_t csa) |
static StringBuf | addFileToTagAux (Spec spec, const char *file, StringBuf sb) |
static int | addFileToTag (Spec spec, const char *file, Header h, int tag) |
static int | addFileToArrayTag (Spec spec, const char *file, Header h, int tag) |
static int | processScriptFiles (Spec spec, Package pkg) |
int | readRPM (const char *fileName, Spec *specp, struct rpmlead *lead, Header *sigs, CSA_t csa) |
Read rpm package components from file. | |
static int | rpmLeadVersion (void) |
int | writeRPM (Header *hdrp, const char *fileName, int type, CSA_t csa, char *passPhrase, const char **cookie) |
Write rpm package to file. | |
int | packageBinaries (Spec spec) |
Generate binary package(s). | |
int | packageSources (Spec spec) |
Generate source package. | |
Variables | |
int | _noDirTokens |
static unsigned char | header_magic [8] |
static int | rpmpkg_version = -1 |
static int_32 | copyTags [] |
Definition in file pack.c.
int writeRPM | ( | Header * | hdrp, | |
const char * | fileName, | |||
int | type, | |||
CSA_t | csa, | |||
char * | passPhrase, | |||
const char ** | cookie | |||
) |
Write rpm package to file.
filename | file name of package | |
type | RPMLEAD_SOURCE/RPMLEAD_BINARY | |
csa | ||
passPhrase |
cookie | generated cookie (i.e build host/time) |
int _noDirTokens |
Initial value:
unsigned char header_magic[8] [static] |
int rpmpkg_version = -1 [static] |