[opensuse-packaging] skip subpackages
Hi! 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? 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. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi Ilya Am 21.10.2011 22:13, schrieb Ilya Chernykh:
Hi!
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? %bcond_with subpkg
%if %{with subpkg} %description -n devel bla %package -n devel Summary: bla Group: anygroup %endif then you can do: osc build --with subpkg ....... Cheers Chris
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.
-- Christian --------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de --------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
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
On Saturday 22 October 2011 01:19:55 Philipp Thomas wrote:
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.
Either way will take tens lines of code :-( -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 22 October 2011 01:17, Ilya Chernykh
On Saturday 22 October 2011 01:19:55 Philipp Thomas wrote:
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.
Either way will take tens lines of code :-(
http://en.opensuse.org/openSUSE:Build_Service_prjconf#ExportFilter ? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 22 October 2011 12:45:18 Cristian Morales Vega wrote:
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.
Either way will take tens lines of code :-(
http://en.opensuse.org/openSUSE:Build_Service_prjconf#ExportFilter ?
Thanks! This is exactly what I was asking for! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 22 October 2011 12:45:18 Cristian Morales Vega wrote:
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.
Either way will take tens lines of code :-(
http://en.opensuse.org/openSUSE:Build_Service_prjconf#ExportFilter ?
Err. Seems I want this on the package level, not on the project level because other packages have subpackages have similar names... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Freitag, 21. Oktober 2011, 23:19:55 schrieb Philipp Thomas:
On Sat, 22 Oct 2011 00:13:54 +0400, Ilya Chernykh
wrote:
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
it is not really needed to exclude %package and $description. Just excluding %files is enough.
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 -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 22 October 2011 14:11:06 Adrian Schröter wrote:
it is not really needed to exclude %package and $description. Just excluding %files is enough.
Excluding files will need adding tens of lines of code. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
Adrian Schröter
-
Christian
-
Cristian Morales Vega
-
Ilya Chernykh
-
Philipp Thomas