yum -y install koji koji download-build --arch=x86_64 openssl-1.0.1e-38.fc20
yum localupdate openssl*-1.0.1e-38.fc20.x86_64.rpm
A while ago someone posted this method which seems to work well enough and takes care of the dependencies without installing needless *-dev options. Basically you need to create the koji repo file and then use yum to download the needed rpms automatically.
/etc/yum.repos.d/koji.repo:
[koji] name=Koji Repo baseurl=http://koji.fedoraproject.org/repos/f$releasever-build/latest/$basearch/ enabled=0 skip_if_unavailable=1 gpgcheck=0
and then run:
yum install openssl --enablerepo=updates-testing,koji
-wolfgang