summaryrefslogtreecommitdiff
path: root/build/rpmbuild.h
diff options
context:
space:
mode:
Diffstat (limited to 'build/rpmbuild.h')
-rw-r--r--build/rpmbuild.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/build/rpmbuild.h b/build/rpmbuild.h
index b65380b7e..7f61b8cf2 100644
--- a/build/rpmbuild.h
+++ b/build/rpmbuild.h
@@ -42,7 +42,7 @@ typedef enum rpmBuildFlags_e {
#define PART_NAME 1
/** \ingroup rpmbuild
- * Spec file parser states.
+ * rpmSpec file parser states.
*/
typedef enum rpmParseState_e {
PART_NONE = 0, /*!< */
@@ -148,13 +148,13 @@ extern int_32 * getBuildTime(void) ;
* @param strip truncate comments?
* @return 0 on success, 1 on EOF, <0 on error
*/
-int readLine(Spec spec, int strip);
+int readLine(rpmSpec spec, int strip);
/** \ingroup rpmbuild
* Stop reading from spec file, freeing resources.
* @param spec spec file control structure
*/
-void closeSpec(Spec spec);
+void closeSpec(rpmSpec spec);
/** \ingroup rpmbuild
* Truncate comment lines.
@@ -193,28 +193,28 @@ void addChangelogEntry(Header h, time_t time, const char * name,
* @param parsePart current rpmParseState
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parseBuildInstallClean(Spec spec, rpmParseState parsePart);
+int parseBuildInstallClean(rpmSpec spec, rpmParseState parsePart);
/** \ingroup rpmbuild
* Parse %%changelog section of a spec file.
* @param spec spec file control structure
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parseChangelog(Spec spec);
+int parseChangelog(rpmSpec spec);
/** \ingroup rpmbuild
* Parse %%description section of a spec file.
* @param spec spec file control structure
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parseDescription(Spec spec);
+int parseDescription(rpmSpec spec);
/** \ingroup rpmbuild
* Parse %%files section of a spec file.
* @param spec spec file control structure
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parseFiles(Spec spec);
+int parseFiles(rpmSpec spec);
/** \ingroup rpmbuild
* Parse tags from preamble of a spec file.
@@ -222,14 +222,14 @@ int parseFiles(Spec spec);
* @param initialPackage
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parsePreamble(Spec spec, int initialPackage);
+int parsePreamble(rpmSpec spec, int initialPackage);
/** \ingroup rpmbuild
* Parse %%prep section of a spec file.
* @param spec spec file control structure
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parsePrep(Spec spec);
+int parsePrep(rpmSpec spec);
/** \ingroup rpmbuild
* Parse dependency relations from spec file and/or autogenerated output buffer.
@@ -241,7 +241,7 @@ int parsePrep(Spec spec);
* @param tagflags dependency flags already known from context
* @return 0 on success, RPMERR_BADSPEC on failure
*/
-int parseRCPOT(Spec spec, Package pkg, const char * field, rpmTag tagN,
+int parseRCPOT(rpmSpec spec, Package pkg, const char * field, rpmTag tagN,
int index, rpmsenseFlags tagflags);
/** \ingroup rpmbuild
@@ -250,7 +250,7 @@ int parseRCPOT(Spec spec, Package pkg, const char * field, rpmTag tagN,
* @param parsePart current rpmParseState
* @return >= 0 next rpmParseState, < 0 on error
*/
-int parseScript(Spec spec, int parsePart);
+int parseScript(rpmSpec spec, int parsePart);
/** \ingroup rpmbuild
* Evaluate boolean expression.
@@ -258,7 +258,7 @@ int parseScript(Spec spec, int parsePart);
* @param expr expression to parse
* @return
*/
-int parseExpressionBoolean(Spec spec, const char * expr);
+int parseExpressionBoolean(rpmSpec spec, const char * expr);
/** \ingroup rpmbuild
* Evaluate string expression.
@@ -266,7 +266,7 @@ int parseExpressionBoolean(Spec spec, const char * expr);
* @param expr expression to parse
* @return
*/
-char * parseExpressionString(Spec spec, const char * expr);
+char * parseExpressionString(rpmSpec spec, const char * expr);
/** \ingroup rpmbuild
* Run a build script, assembled from spec file scriptlet section.
@@ -278,7 +278,7 @@ char * parseExpressionString(Spec spec, const char * expr);
* @param test don't execute scripts or package if testing
* @return 0 on success, RPMERR_SCRIPT on failure
*/
-int doScript(Spec spec, int what, const char * name,
+int doScript(rpmSpec spec, int what, const char * name,
StringBuf sb, int test);
/** \ingroup rpmbuild
@@ -289,7 +289,7 @@ int doScript(Spec spec, int what, const char * name,
* @retval pkg package control structure
* @return 0 on success, 1 on failure
*/
-int lookupPackage(Spec spec, const char * name, int flag,
+int lookupPackage(rpmSpec spec, const char * name, int flag,
Package * pkg);
/** \ingroup rpmbuild
@@ -297,7 +297,7 @@ int lookupPackage(Spec spec, const char * name, int flag,
* @param spec spec file control structure
* @return package control structure
*/
-Package newPackage(Spec spec);
+Package newPackage(rpmSpec spec);
/** \ingroup rpmbuild
* Destroy all packages associated with spec file.
@@ -324,7 +324,7 @@ Package freePackage(Package pkg);
* @param index (0 always)
* @return 0 always
*/
-int addReqProv(Spec spec, Header h, rpmTag tagN,
+int addReqProv(rpmSpec spec, Header h, rpmTag tagN,
const char * N, const char * EVR, rpmsenseFlags Flags,
int index);
@@ -344,20 +344,20 @@ int rpmlibNeedsFeature(Header h, const char * feature, const char * featureEVR);
* @param test don't execute scripts or package if testing
* @return 0 on success
*/
-int processBinaryFiles(Spec spec, int installSpecialDoc, int test);
+int processBinaryFiles(rpmSpec spec, int installSpecialDoc, int test);
/** \ingroup rpmbuild
* Create and initialize header for source package.
* @param spec spec file control structure
*/
-void initSourceHeader(Spec spec);
+void initSourceHeader(rpmSpec spec);
/** \ingroup rpmbuild
* Post-build processing for source package.
* @param spec spec file control structure
* @return 0 on success
*/
-int processSourceFiles(Spec spec);
+int processSourceFiles(rpmSpec spec);
/** \ingroup rpmbuild
* Parse spec file into spec control structure.
@@ -388,21 +388,21 @@ int parseSpec(rpmts ts, const char * specFile,
* @param test don't execute scripts or package if testing
* @return 0 on success
*/
-int buildSpec(rpmts ts, Spec spec, int what, int test);
+int buildSpec(rpmts ts, rpmSpec spec, int what, int test);
/** \ingroup rpmbuild
* Generate binary package(s).
* @param spec spec file control structure
* @return 0 on success
*/
-int packageBinaries(Spec spec);
+int packageBinaries(rpmSpec spec);
/** \ingroup rpmbuild
* Generate source package.
* @param spec spec file control structure
* @return 0 on success
*/
-int packageSources(Spec spec);
+int packageSources(rpmSpec spec);
#ifdef __cplusplus
}