Summary :Fate RPM
Name :fate
Version :1.0
Release :1
Licence: CMA
Group :Application/Productivity
Source :/home/stellent/redhat/SOURCES/fate.tar.gz
#The BuildRoot specifies the location where the RPM build has to be performed
BuildRoot :/tmp/cma-build
%description
RPM Trial version
#This section prepares the sources for building,%setup macro unpacks the sources to the BUILD directory
%prep
%setup -q -n %{name}-%{version}
# The %clean section will remove all the files from the Buildroot after the build is done
%clean
rm -rf $RPM_BUILD_ROOT
# Whichever directories are created under the $RPM_BUILD_ROOT will be removed after the build is done
%install
# Creating all the desired directories at the target machine
mkdir -p $RPM_BUILD_ROOT/tmp/lis
# Copying all the files to the target directories of portlets and migration
cp -R $RPM_BUILD_DIR/fate/* $RPM_BUILD_ROOT/tmp/lis
# The %files section installs all the files at the target location
%files
/tmp/lis/*
And the error i am getting is
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52364
+ umask 022
+ cd /home/stellent/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/stellent/redhat/BUILD
+ rm -rf fate-1.0
+ /usr/bin/gzip -dc /home/stellent/redhat/SOURCES/fate.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd fate-1.0
/var/tmp/rpm-tmp.52364: line 33: cd: fate-1.0: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.52364 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.52364 (%prep)
Kindly Advice ....
Thanks
Lis Thomas
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list