Initial revision
authormarc <devnull@localhost>
Thu, 14 Dec 1995 15:54:13 +0000 (15:54 +0000)
committermarc <devnull@localhost>
Thu, 14 Dec 1995 15:54:13 +0000 (15:54 +0000)
CVS patchset: 39
CVS date: 1995/12/14 15:54:13

build/build.h [new file with mode: 0644]
build/specP.h [new file with mode: 0644]

diff --git a/build/build.h b/build/build.h
new file mode 100644 (file)
index 0000000..f5337e2
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef _BUILD_H_
+#define _BUILD_H_
+
+#include "spec.h"
+
+int execPrep(Spec s);
+int execBuild(Spec s);
+int execInstall(Spec s);
+int execClean(Spec s);
+int verifyList(Spec s);
+int packageBinaries(Spec s);
+int packageSource(Spec s);
+
+#endif _BUILD_H_
diff --git a/build/specP.h b/build/specP.h
new file mode 100644 (file)
index 0000000..7496d90
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef _SPECP_H_
+#define _SPECP_H_
+
+#include "spec.h"
+#include "header.h"
+#include "stringbuf.h"
+
+struct SpecRec {
+    char *name;      /* package base name */
+    StringBuf prep;
+    StringBuf build;
+    StringBuf install;
+    StringBuf clean;
+    struct PackageRec *packages;
+    /* The first package record is the "main" package and contains
+     * the bulk of the preamble information.  Subsequent package
+     * records "inherit" from the main record.  Note that the
+     * "main" package may be, in pre-rpm-2.0 terms, a "subpackage".
+     */
+};
+
+struct PackageRec {
+    char *subname;   /* If both of these are NULL, then this is          */
+    char *newname;   /* the main package.  subname concats with name     */
+    Header header;
+    int files;       /* If 0, package has no files, and won't be written */
+    StringBuf filelist;
+    struct PackageRec *next;
+};
+
+#endif _SPECP_H_