From b714dcea37af2e23026a52be76e7317592ecb52e Mon Sep 17 00:00:00 2001 From: Ales Kozumplik Date: Tue, 3 Jan 2012 16:04:18 +0100 Subject: rpmbuild: warn if header color differs from color of the package architecture. - For example, warn when building an x86_64 package that only contains 32 bit binaries. - This should indicate to the maintainers that they might have gotten the architecture wrong. - Introduces 'archcolor' in rpmrc so we can map architectures to colors. - Related: RhBug:713323 --- rpmrc.in | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'rpmrc.in') diff --git a/rpmrc.in b/rpmrc.in index 0033bbdec..b62633939 100644 --- a/rpmrc.in +++ b/rpmrc.in @@ -82,6 +82,39 @@ optflags: sh3 -O2 -g optflags: sh4 -O2 -g -mieee optflags: sh4a -O2 -g -mieee +############################################################# +# Architecture colors + +archcolor: noarch 0 +archcolor: i386 1 +archcolor: alpha 2 +archcolor: sparc 1 +archcolor: sparc64 2 +archcolor: sparcv9 2 +archcolor: ppc 1 +archcolor: ppc64 2 + +archcolor: armv3l 1 +archcolor: armv4b 1 +archcolor: armv4l 1 +archcolor: armv4tl 1 +archcolor: armv5tel 1 +archcolor: armv5tejl 1 +archcolor: armv6l 1 +archcolor: armv7l 1 + +archcolor: m68kmint 1 + +archcolor: s390 1 +archcolor: s390x 2 + +archcolor: ia64 2 + +archcolor: x86_64 2 + +archcolor: sh3 1 +archcolor: sh4 1 + ############################################################# # Canonical arch names and numbers -- cgit v1.2.1