On Sun, Sep 15, 2013 at 1:36 PM, Michael Schwendt <mschwendt@gmail.com> wrote:
On Sun, 15 Sep 2013 12:09:21 -0500, Richard Shaw wrote:

> >> Have you tried to tweak the %setup macro with the -n option ?
> >
> >
> > Yes, I have to because the source name doesn't match the package name
> > anymore...
> >
> > %setup -q -n %{srcname}-%{version}
> >
> > where srcname is defines at "tqsl"
> >
> > I could make another version definition but that seems wrong somehow and
> > even if that fixes cd'ing into the source dir, I'm not sure it would fix
> > the final package names...
> >
>
> Just tried that (%global tqslver 1.14.3) and it worked. Even named the
> packages correctly!

The readers of this thread cannot tell where %tqslver is used.

It could be that you're only confused about what %setup does. You really
just need to tell it which build directory to enter, and that builddir
will be entered automatically for the rest of the %prep, %build, %install
and %check sections. If its the top-level source dir, and the name of
that one differs from the default %name-%version, tweak the %setup
invocation as necessary using the -n parameter.


That's what I ended up doing, it just not documented on Maximum RPM that you need to do that.

Thanks,
Richard