summaryrefslogtreecommitdiffstats
path: root/RPM4/src/RPM4.xs
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/src/RPM4.xs')
-rw-r--r--RPM4/src/RPM4.xs6
1 files changed, 6 insertions, 0 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index cd8fa56..3f54b29 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -426,7 +426,13 @@ int _specbuild(rpmSpec spec, SV * sv_buildflags) {
if (buildflags == RPMBUILD_NONE) croak("No action given for build");
BTA_t flags = calloc(1, sizeof(*flags));
flags->buildAmount = buildflags;
+#if defined(RPM4_15_0)
+ rpmts ts = rpmtsCreate();
+ return rpmSpecBuild(ts, spec, flags);
+ (void)rpmtsFree(ts);
+#else
return rpmSpecBuild(spec, flags);
+#endif
}
void _installsrpms(rpmts ts, char * filename) {