The spec has been tested only on Centos 6 and later.
You need to install epel-release first.
yum install epel-release
You have two options to do that:
dnf copr enable registe/others
You need to have dnf-plugins-core installed.
yum copr enable registe/others
You need to have yum-plugin-copr installed.