Hi Rich, That works. I installed dos2unix and now my first spec file seems to be working. Thanks a million for all your patience and valuable inputs. Keep it going.. Have a nice day. Regs, Pradeep -----Original Message----- From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx] On Behalf Of Richard Dawe Sent: Friday, October 15, 2004 1:56 PM To: RPM Package Manager Subject: RE: Help on RPM packaging !!! Hello. On Fri, 2004-10-15 at 09:12, Pradeepkumar, Pyatalo (IE10) wrote: > I have attached the RPM build output for your reference. You have a spurious carriage return character in your spec file. Look for the ^M in rpm-tmp.9099. Try removing the carriage return character and rerunning rpmbuild. An easy way to do this is: dos2unix EPS.spec Hope that helps, bye, Rich [snip] > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.9099 (%prep) > ---- > > #!/bin/sh > > RPM_SOURCE_DIR="/home/pradeep/rpms/SOURCES" > RPM_BUILD_DIR="/home/pradeep/rpms/BUILD" > RPM_OPT_FLAGS="-O2 -march=i386 -mcpu=i686" > RPM_ARCH="i386" > RPM_OS="linux" > export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS > RPM_DOC_DIR="/usr/share/doc" > export RPM_DOC_DIR > RPM_PACKAGE_NAME="eps3" > RPM_PACKAGE_VERSION="1.0" > RPM_PACKAGE_RELEASE="1" > export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE > RPM_BUILD_ROOT="/var/tmp/eps3-1.0-1-root" > export RPM_BUILD_ROOT > > set -x > umask 022 > cd /home/pradeep/rpms/BUILD > cd /home/pradeep/rpms/BUILD > rm -rf eps3-1.0 > /bin/gzip -dc /home/pradeep/rpms/SOURCES/eps3-1.0-1.tgz | tar -xvvf - > STATUS=$? > if [ $STATUS -ne 0 ]; then > exit $STATUS > fi > cd eps3-1.0 > [ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root . > [ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root . > /bin/chmod -Rf a+rX,g-w,o-w . > ^M > > exit 0 > ---- > -- Richard Dawe Software Engineer - Mail Engine MessageLabs Ltd., UK ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list