Recently built an rpm for a client that needed to install nsis-2.29 on several redhat boxes. nsis-2.28 for centos/fedora is readily available at repo.calcforge.org .
I downloaded the centos source rpm and rebuilt it for redhat4 as described below:
-
Needed to install "gcc-c++" else the build failed.
# yum install gcc-c++
#rpm -ivh http://superb-west.dl.sourceforge.net/sourceforge/scons/scons-0.97-1.noarch.rpm
Note: got errors with the development release during nsis compile, so used the stable version instead.
Downloaded the nsis source and zipped files for version 2.29 from sourceforge and placed it in the SOURCES directory.$ wget http://easynews.dl.sourceforge.net/sourceforge/nsis/nsis-2.29-src.tar.bz2
$ wget http://easynews.dl.sourceforge.net/sourceforge/nsis/nsis-2.29.zip
$ wget http://repo.calcforge.org/centos/5/SRPMS/nsis-data-2.28-1.src.rpm
$ wget http://repo.calcforge.org/centos/5/SRPMS/nsis-2.28-1.src.rpm
$ rpm -ivh SRPMS/nsis-*.rpm
$ vi SPECS/nsis-data.spec
$ vi SPECS/nsis.spec
$ rpmbuild -bb SPECS/nsis-data.spec
$ rpmbuild -bb rpm/SPECS/nsis.spec
Getting error while building rpm
Hello Sandip,
I m trin to install nsis on RHAS4 update 1, I m able to build 1st rpm using rpmbuild -bb SPECS/nsis-data.spec -
/usr/src/redhat/RPMS/noarch/nsis-data-2.27-2.noarch.rpm
But I m getting error while I ran 2nd command rpmbuild -bb SPECS/nsis.spec
+ unset DISPLAY
+ scons PREFIX=/usr PREFIX_DEST=/var/tmp/nsis-2.27-2-root-root PREFIX_CONF=/etc SKIPSTUBS=all SKIPPLUGINS=all 'SKIPUTILS=Library/RegTool,UIs,Makensisw,zip2exe,MakeLangId,NSIS Menu' SKIPMISC=all VERSION=2.27 STRIP=false
scons: Reading SConscript files ...
File "/usr/src/redhat/BUILD/nsis-2.27-src/SConstruct", line 369
defenv['INSTVER'] += ' %sDVER_MAJOR=$VER_MAJOR' % optchar
^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.85009 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.85009 (%build)
Please let me know if you have any work around to solve this issue. I just want to install makensis command.
what is the python version?
What version of python are you using? You may require an updated python.