<div dir="ltr">Ok, apparently I&#39;ve been unintentionally obtuse...<div><br></div><div>The problem isn&#39;t (directly) with %setup. I know how to do that.</div><div><br></div><div>The problem is when you have a (-n type) subpackage that is of a different version from the main source.</div>
<div><br></div><div>Maximum RPM tells you properly that you can include a Version: tag from inside your %package. The problem is then %setup grabs the version tag from the subpackage and not the main one.</div><div><br></div>
<div>The solution is to define your own version macro, in this case %tsqlver, and use it for both the main Version: tag and in setup: %setup -q -n %{name}-%{tqslver}.</div><div><br></div><div>This is what Maximum RPM fails to explain, it doesn&#39;t show a %setup line in it&#39;s example of a subpackage that&#39;s a different version from the main package.</div>
<div><br></div><div>Thanks,</div><div>Richard</div></div>