Blame nobuildcolor.diff

Bernhard M. Wiedemann 1250f9
Disable file coloring for SUSE systems
Bernhard M. Wiedemann 1250f9
Bernhard M. Wiedemann 1250f9
--- build/rpmfc.c.orig	2013-07-12 12:12:45.000000000 +0000
Bernhard M. Wiedemann 1250f9
+++ build/rpmfc.c	2013-07-12 12:15:51.000000000 +0000
Bernhard M. Wiedemann 1250f9
@@ -1305,7 +1305,8 @@ rpmRC rpmfcGenerateDepends(const rpmSpec
Bernhard M. Wiedemann 1250f9
     /* XXX Make sure only primary (i.e. Elf32/Elf64) colors are added. */
Bernhard M. Wiedemann 1250f9
     for (int i = 0; i < fc->nfiles; i++)
Bernhard M. Wiedemann 1250f9
 	fc->fcolor[i] &= 0x0f;
Bernhard M. Wiedemann 1250f9
-    headerPutUint32(pkg->header, RPMTAG_FILECOLORS, fc->fcolor, fc->nfiles);
Bernhard M. Wiedemann 1250f9
+    if (rpmExpandNumeric("%{?_transaction_color}") != 0)
Bernhard M. Wiedemann 1250f9
+	headerPutUint32(pkg->header, RPMTAG_FILECOLORS, fc->fcolor, fc->nfiles);
Bernhard M. Wiedemann 1250f9
     
Bernhard M. Wiedemann 1250f9
     /* Add classes(#classes) */
Bernhard M. Wiedemann 1250f9
     for (rpmsid id = 1; id <= rpmstrPoolNumStr(fc->cdict); id++) {