My limesurvey tarball name is  "limesurvey192plus-build120412.tar.bz2". It is in SOURCE folder. So As u mentioned, I think
I would need
a %setup command with option -n.
So is this %setup correct? (I think it is correct)


On Sun, Apr 22, 2012 at 9:04 PM, Michael Schwendt <mschwendt@gmail.com> wrote:
On Sun, 22 Apr 2012 18:36:22 +0530, SP (Srineth) wrote:

> Hi,
> I think, dupral.rpm package is same as the limesurvey package. Therefore
> while searching through internet, I could find duprasl rpm spec file
> http://dries.ulyssis.org/rpm/packages/drupal5/drupal5-spec.html. I could
> get some tags and section using this file. But when limesurvey is built,
> show an error(shown in below ) in prep section, Even I did not give
> anything to that. Can anyone help me to solve that
> /var/tmp/rpm-tmp.221K8K: line 40: cd: limesurvey-12.04: No such file or
> directory
> error: Bad exit status from /var/tmp/rpm-tmp.221K8K (%prep)

This means you need to adjust the %setup command's option(s) in the %prep
section to match with the structure of the extracted limesurvey package.
The default is to enter directory %{name}-%{version}. Get familiar with
the limesurvey source tarball contents. Pay attention to what name its
top directory has. If it is not named limesurvey-12.04, you would need
a %setup command with option -n, such as

 %setup -n SomeOtherTopDirName

For more detailed help, full rpmbuild output is missing.

Fedora release 17 (Beefy Miracle) - Linux 3.3.2-1.fc17.x86_64
loadavg: 0.00 0.01 0.05