From c7c4ac2a2e499416eda91d854ae008bb5c16c7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Sat, 16 Oct 2010 11:12:45 +0000 Subject: fix build with rpm 5.3 api --- NEWS | 3 +++ rpmeval.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 489084f..fd528d9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Version 1.109 - ?? ??????? 2010, by ??? +- fix build with rpm 5.3 + Version 1.108 - 16 October 2010, by Per Øyvind Karlsen - add gem_helper.rb and it's corresponding macros %gem_unpack, %gem_build & gem_install for simplifying & streamlining ruby gem packaging. diff --git a/rpmeval.c b/rpmeval.c index 5daaed8..c719352 100644 --- a/rpmeval.c +++ b/rpmeval.c @@ -22,7 +22,11 @@ int main(int argc, char **argv) fprintf(stderr, "Cannot load configuration\n"); return rc; } - if (rc = rpmLoadMacroFile(rpmGlobalMacroContext, argv[1])) { + if (rc = rpmLoadMacroFile(rpmGlobalMacroContext, argv[1] +#ifndef RPMDBI_LABEL + ,2 +#endif + )) { fprintf(stderr, "Cannot read %s\n", argv[1]); return rc; } -- cgit v1.2.1