If your package contains parts of the JNI (Java Native Interface), you should always use BuildArch: noarch . Thus, you will get a single RPM that can be installed in any architecture.
This says nothing about working on any architecture, of course. There are simple ways to mess up the multiarch promises of Java and the JVM (usually hard coding in assumptions related to architecture into code). But in terms of packaging, noarch is the standard in the Java world.
source share