Red Hat Bugzilla – Bug 470714
Inherit group tag from src.rpm if unspecified in a subpackage
Last modified: 2013-07-02 19:32:10 EDT
Description of problem:
When I create a package with many subpackages, they do not inherit the src.rpm Group tag if unspecified like other metadata (and rpmlint will complain if this tag is unspecified)
This forces packagers to repeat many times over the same group info (big problem for font set packages which have many subpackages ; each line of useless fluff makes them less maintenable).
And we don't even use this tag anymore for anything useful.
Please limit the pain and make one group tag per spec files sufficient.
Version-Release number of selected component (if applicable):
Example problem spec
Note how the Group tag is about the only useless repetition that could not be factored out in every sub-package
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
Fixing version to align with rawhide again. Sorry for the noise.
The group tag is not mandatory for a while now. But good practise is to define at least the group tag in the main package otherwise it is set to "Unspecified".
Group tag of the main package is inherited by subpackages if they haven't defined the group themselves. It applies from now on.
I've just tested it with
And subpackages are all set to "Unspecified" :(
Maybe your change assumes there is a main package with the same name as the srpm?
In my package all the subpackages have different names (but the srpm has the correct group tag)
Could you point me to src.rpm of your package?
(In reply to comment #5)
> Could you point me to src.rpm of your package?
Here it is
The reason you are seeing this is that the patches for the group inheritance aren't in rawhide rpm yet. Only in upstream (basically base for rpm-4.7.0). Maybe we want to backport the patches to current Fedora so that you can use it.
Since F11 is seeing rpm changes all over the place is would be nice to have this one included to have a single big change at F11 time
The fix is now in backported to rawhide rpm-4.6.0-4.