[opensuse-packaging] Building just one subpackage?
Dear list, is it possible to build just one of the subpackages that one obs package has? I need to use iptables directly on openSUSE hosts and tried to build the iptables-service that CentOS has as a package, but this is being built from the iptables package, which has some subpackages. So I would like to build just that one subpackage... Anyone done this? Any hints? Or is it possible to only publish one of the packages, not all of them? (I guess not...) Thanks in advance, Johannes
On Thursday 2016-06-23 21:03, Johannes Kastl wrote:
is it possible to build just one of the subpackages that one obs package has?
There is no hardly a point in doing that, since the actions required to produce something (%build) are the same for all subpackages produced from a particular .spec.
Or is it possible to only publish one of the packages, not all of them? (I guess not...)
Sort of. You would have to publish=disable the package, then create an _aggregate that pulls just the <binary>x</binary> in. Not worth the trouble. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 23.06.16 21:20 Jan Engelhardt wrote:
On Thursday 2016-06-23 21:03, Johannes Kastl wrote:
is it possible to build just one of the subpackages that one obs package has?
There is no hardly a point in doing that, since the actions required to produce something (%build) are the same for all subpackages produced from a particular .spec.
I'll have to look into the package, I am not sure if there is anything compiled (for the services package) or if it is just some files, that are handled as Source1: etc. Thanks for your fast answer, Jan! Johannes
On Thu, Jun 23, Johannes Kastl wrote:
is it possible to build just one of the subpackages that one obs package has?
Yes, fill the %files -n <subpkg> and remove all remaining files from %{buildroot} and remove remaining %files sections. As a result just that sub package will exist. Olaf -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Jan Engelhardt
-
Johannes Kastl
-
Olaf Hering