-
Notifications
You must be signed in to change notification settings - Fork 78
Home
Kazuhisa Hara edited this page Aug 17, 2013
·
18 revisions
Tested working (as sane as I could test for) on:
- RHEL 6 x86_64
- CentOS 5 x86_64
- Fedora 17 x86_64
- This spec is tested under el6 and el5 only. However, Fedora15 or later work. maybe.
$ sudo yum install rpm-build rpmdevtools openssl-devel zlib-devel redhat-rpm-config gcc gcc-c++ make libstdc++-devel
$ rpmdev-setuptree
$ cp <git repo dir>/nodejs.spec ~/rpmbuild/SPECS/
$ cp <git repo dir>/*.patch ~/rpmbuild/SOURCES/
$ spectool -g -R ~/rpmbuild/SPECS/nodejs.spec
$ rpmbuild --clean -ba ~/rpmbuild/SPECS/nodejs.spec
$ sudo yum install ~/rpmbuild/RPMS/x86_64/nodejs-X.X.X-X.el6.x86_64.rpm --nogpgcheck
when you try to build on el5, must enable the EPEL repository.
$ sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
$ sudo yum install -y rpm-build rpmdevtools openssl-devel zlib-devel python26 gcc gcc-c++ make libstdc++-devel
$ mkdir ~/rpmbuild
$ cd ~/rpmbuild
$ rpmdev-setuptree
$ cp <git repo dir>/nodejs.spec ~/rpmbuild/SPECS/
$ cp <git repo dir>/*.patch ~/rpmbuild/SOURCES/
$ spectool -g -R ~/rpmbuild/SPECS/nodejs.spec
$ rpmbuild --clean -ba ~/rpmbuild/SPECS/nodejs.spec
$ sudo yum install ~/rpmbuild/RPMS/x86_64/nodejs-X.X.X-X.x86_64.rpm --nogpgcheck