On Sat, 22 Oct 2011 00:13:54 +0400, Ilya Chernykh
I want to skip all subpackages in a very fat package. How can I do this quickly, and, desirably, with a condition depending on a set variable?
See below.
I think about the file list: to prevent failure I would have to either add %exclude to all non-needed files (tens of them) or delete them after installation. Is there another way? There is no option in configure script to skip building the subpackages.
The only semi-quick way is defining a variable at the top %define build_subpacks 0 And then wrap all package blocks at the top like so: %if %build_subpacks %package docs [...] %description docs %endif and at the bottom wrap the files blocks like %ifdef build_subpacks %files docs [...] %else %exclude ... %endif either do it with conditional %excludes or put a conditional block in the %build section that deletes the files for the sub packages. There is AFAIK no really quick way to suppress the building of sub packages. hth Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org