How to build Mercurial 1.5 RPM's on CentOS/Redhat Linux 5
This is pretty easy, but there just a couple things I had to do to make it work so I thought I would document it.
- yum install -y rpm-build python-devel
- cd /usr/src/redhat/SOURCES
- wget http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
- tar zxvf mercurial-1.5.2.tar.gz
- cd mercurial-1.5.2.tar.gz/contrib
- edit mercurial.spec and change Version: snapshot to Version: 1.5.2 and then remove the dependency of docutils
- rpmbuild -ba mercurial.spec
- That’s it - files are now in /usr/src/redhat/RPMS/<arch>/mercurial-1.5.2-0.<arch>.rpm