NOTE: By downloading and using Oracle JDK 7 you're accepting the Oracle Binary Code License Agreement for Java SE.
wget \
--no-cookies \
--no-check-certificate \
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \
$PACKAGE_URL
$ rpmrebuild --change-spec-preamble='sed -e "s/^Name:.*/Name: jdk1.7.0_80/"' --package /tmp/jdk-7u80-linux-x64.rpm
$ sudo yum localinstall -y /home/build/rpmbuild/RPMS/x86_64/jdk1.7.0_80-1.7.0_80-fcs.x86_64.rpm
Now you can install multiple Oracle JDK 7 versions coexisting peacefully.