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

Richard Shaw hobbes1069 at gmail.com
Sun Sep 15 19:04:09 UTC 2013


On Sun, Sep 15, 2013 at 1:36 PM, Michael Schwendt <mschwendt at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20130915/096495c3/attachment.html>


More information about the devel mailing list