[opensuse-packaging] subpackages
Hello, does anybody know if there is a way to only build a certain subpackage when a spec file does create multiple subpackages? rmpbuild -ba my.spec will build all rpms. Best Regards, Oliver Block -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Oliver Block wrote:
does anybody know if there is a way to only build a certain subpackage when a spec file does create multiple subpackages?
There is no way to do that. Build cannot decide which commands from %build and %install phase belong to which subpackage. -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thu, 7 May 2009, Pavol Rusnak wrote:
Oliver Block wrote:
does anybody know if there is a way to only build a certain subpackage when a spec file does create multiple subpackages?
There is no way to do that. Build cannot decide which commands from %build and %install phase belong to which subpackage.
Simply comment out the %files sections of the packages you want not be created for example with a %if 0. Richard. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Richard Guenther wrote:
Oliver Block wrote:
does anybody know if there is a way to only build a certain subpackage when a spec file does create multiple subpackages? There is no way to do that. Build cannot decide which commands from %build and %install phase belong to which subpackage.
Simply comment out the %files sections of the packages you want not be created for example with a %if 0.
But still, files for all packages will be created, just the ones for commented packages will be discarded. This will not reduce build time. Oliver, what exactly are you trying to acheive? -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Oliver Block
-
Pavol Rusnak
-
Richard Guenther