summaryrefslogtreecommitdiff
path: root/build/spec.h
blob: 63d34ba46a01ddc916f415e9b27fbc278e68ab1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* RPM - Copyright (C) 1995 Red Hat Software
 * 
 * spec.h - routines for parsing are looking up info in a spec file
 */

#ifndef _SPEC_H_
#define _SPEC_H_

#include <stdio.h>

typedef struct SpecRec *Spec;

Spec parseSpec(FILE *f, char *specfile, char *buildRootOverride);
void freeSpec(Spec s);

void dumpSpec(Spec s, FILE *f);

char *getSource(Spec s, int ispatch, int num);
char *getFullSource(Spec s, int ispatch, int num);

int verifySpec(Spec s);

#endif _SPEC_H_