Gradle rpm plugin OS version in rpm

RPM plugin question - i am building RPM using gradle-rpm-plugin and the built rpm can’t be installed on my Linux box, it says:

package xxxxxxxxx-0:1-1.x86_64 is intended for a unknown operating system. In my rpm task i tried this:

arch = ‘NOARCH’

os = ‘LINUX’

I also changed arch to I386 and X86_64 with the same result. Does anyone know what I need to change to install it on my Linux machine. Here is the version of the OS i have:

cat /proc/version Linux version 2.6.32-279.el6.x86_64 ( (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Jun 13 18:24:36 EDT 2012

Have you considered the gradle-ospackage-plugin instead? It’s a more updated fork of the gradle-rpm-plugin that also makes DEBs for Debian.