Hi,
Thanks for your quick reply. I am using QNX RTOS for building rpm from this spec file.
I just have 3 txt file and spect file. Here is spect file content. 3 txt file just conatins some information story. I am logged - in as "root". It is requirment. I compiled, build and installed rpm my own on QNX.
I copy pasted that 3 text files in /opt/sys/src/rpm/SOURCES and spec file in /opt/sys/src/rpm/SPECS folder and then tried to execute spec file from /opt/sys/src/rpm/SPECS .
Now i am getting following errors
# rpm -ba MyrpmTest2.spec
Executing(%
+ umask 022
+ cd /opt/sys/src/rpm/BUILD
+ cd /opt/sys/src/rpm/BUILD
+ rm -rf story-1.0
+ /bin/mkdir -p story-1.0
+ cd story-1.0
+ cp /opt/sys/src/rpm/SOURCES/P
+ cp /opt/sys/src/rpm/SOURCES/O
+ cp /opt/sys/src/rpm/SOURCES/Z
+
: cannot execute - No such file or directory
error: Bad exit status from /opt/sys/var/tmp/rpm-tmp.1
RPM build errors:
Bad exit status from /opt/sys/var/tmp/rpm-tmp.1
#
Please help me to resolve this errors.
Thanks in advance.
Following is the spec content.
###cut here
Summary: story, some test package
Name: story
Version: 1.0
Release: 1
License: GPL
Group: MAA System
BuildRoot: %{_tmppath}/%{name}
%descri
%{nam
%prep
%setup -T -c
cp $RPM_SOURCE_DIR/Prog.txt .
cp $RPM_SOURCE_DIR/Oste.txt .
cp $RPM_SOURCE_DIR/Zaub.txt .
%install
mkdir -p $RPM_BUILD_ROOT/opt/%{name
install -m 0640 Prog.txt $RPM_BUILD_ROOT/opt/%{name
install -m 0640 Oste.txt $RPM_BUILD_ROOT/opt/%{name
install -m 0640 Zaub.txt $RPM_BUILD_ROOT/opt/%{name
%files
%d
%
/opt/%{name}/P
/op
/o
%
*
- freeform changelog, fixed format date line. Newest entries top.
###cut here





by: kosarajudeepakPosted on 2009-08-17 at 07:25:31ID: 25114700
what pacakage is it and what are the spec file options, if u can upload spec file we might help and at what point of spec file are you getting the above error.