Full subpackage (-n type) with different version from main package

Michael Schwendt mschwendt at gmail.com
Sun Sep 15 18:36:14 UTC 2013

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.

More information about the devel mailing list