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.sourcefo rge.net/sourceforge/scons/scon s-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.2 9-src.tar.bz2
$ wget http://easynews.dl.sourceforge .net/sourceforge/nsis/nsis-2.2 9.zip
$ wget http://repo.calcforge.org/cent os/5/SRPMS/nsis-data-2.28-1.sr c.rpm
$ wget http://repo.calcforge.org/cent os/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
- sandip's blog
- Login or register to post comments
Comments
Hello Sandip, sis-data-2.27-2.noarch.rpm
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/n
But I m getting error while I ran 2nd command rpmbuild -bb SPECS/nsis.spec -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 27-src/SConstruct", line 369
+ unset DISPLAY
+ scons PREFIX=/usr PREFIX_DEST=/var/tmp/nsis-2.27
scons: Reading SConscript files ...
File "/usr/src/redhat/BUILD/nsis-2.
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 version of python are you using? You may require an updated python.