Hi All,<br>         I do not know if this is the right way to post or not. I do not know much abut mailing lists. I tried to find forums for rpm but in vain. I have a situation where I want to package my web application as an RPM package. It includes only copying from one place to another. The benefit will be of versioning. If I have a new release, then it will maintain the versions in rpm database. So if I want to revert to previous version, it will be easy due to rpm database.<br>
<br>          I am attaching my spec file. I run the following command to build the rpm package.<br><br><i><b>spkisl896:/usr/src/packages # rpmbuild -v -bb --clean SPECS/tasmportlet_original.spec</b></i><br><br>But it gives the following error.<b><i><br>
<br>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52497<br>+ umask 022<br>+ cd /usr/src/packages/BUILD<br>+ cd /usr/src/packages/BUILD<br>+ rm -rf tasmportlets-1<br>+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/tasmportlets-1.tar.gz<br>
+ tar -xvvf -<br>drwxr-xr-x 0/0               0 2011-02-09 18:59 tasmportlets-1/<br>-rw-r--r-- 0/0            1476 2011-02-09 18:59 tasmportlets-1/LinuxProj.war<br>+ STATUS=0<br>+ &#39;[&#39; 0 -ne 0 &#39;]&#39;<br>+ cd tasmportlets-1<br>
++ /usr/bin/id -u<br>+ &#39;[&#39; 0 = 0 &#39;]&#39;<br>+ /bin/chown -Rhf root .<br>++ /usr/bin/id -u<br>+ &#39;[&#39; 0 = 0 &#39;]&#39;<br>+ /bin/chgrp -Rhf root .<br>+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .<br>+ exit 0<br>Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.52497<br>
+ umask 022<br>+ cd /usr/src/packages/BUILD<br>+ /bin/rm -rf /tmp/tasmportlets-1-buildroot<br>++ dirname /tmp/tasmportlets-1-buildroot<br>+ /bin/mkdir -p /tmp<br>+ /bin/mkdir /tmp/tasmportlets-1-buildroot<br>+ cd tasmportlets-1<br>
+ $&#39;\r&#39;<br>: command not found497: line 27: <br>error: Bad exit status from /var/tmp/rpm-tmp.52497 (%build)<br><br><br>RPM build errors:<br>    Bad exit status from /var/tmp/rpm-tmp.52497 (%build)</i></b><br><br clear="all">
I am also attaching the file /var/tmp/rpm-tmp.52497.<br><br>Can you guys please help me out here. Please note that I am very much new to RPM and Linux as well.<br>-- <br>Regards,<br>S. Fawad Ali Shah<br>Software Engineer,<br>
Stafona. Inc.<br>Cell # +92 334 5001577<br>