On Sun, 15 Sep 2013 15:07:58 -0500, Richard Shaw wrote: > Ok, apparently I've been unintentionally obtuse... > > The problem isn't (directly) with %setup. I know how to do that. > > The problem is when you have a (-n type) subpackage that is of a different > version from the main source. > > 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. > > 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}. > > This is what Maximum RPM fails to explain, it doesn't show a %setup line in > it's example of a subpackage that's a different version from the main > package. Remember that the "Version:" implicitly defines %{version}, so the last one in the spec file takes precedence. Then you cannot use %setup -q -n %{srcname}-%{version} as you need to replace %{version} properly. -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct