-
Install
fedpkg:sudo yum install fedpkg
-
Add yourself into group mock (you might need to re-login to server after this change):
sudo usermod -a -G mock $USER
-
Download
gitsources:fedpkg clone -a git && cd git fedpkg sources
-
Verify sources:
sha512sum -c sources
(TODO: gpg --verify)
-
Create srmp. Use
el6for RHEL6,el7for RHEL7.fedpkg --dist el7 srpm
-
Build package in mock:
mock -r epel-7-x86_64 git-2.16.0-1.el7.src.rpm
-
Install latest version of
gitfrom/var/lib/mock/epel-7-x86_64/result/.
This instruction is based on this mailing list post.