Doubt | RPM SOURCE FILE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
 
I have a doubt...
 
When we do the rpmbuild, while un taring the source, why does the RPM always look for a directory which is in this format -  %{name}-%{version} . ( Or  is this hw it should be ? )
 
Below is the SPEC file

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

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux