SHA256
1
0
forked from pool/rpmlint
rpmlint/rpmgroup-checks.diff
OBS User autobuild 698597df8c Accepting request 36612 from Base:System
Copy from Base:System/rpmlint based on submit request 36612 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/36612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=55
2010-04-01 14:20:38 +00:00

23 lines
879 B
Diff

--- TagsCheck.py
+++ TagsCheck.py
@@ -653,6 +653,8 @@
self._unexpanded_macros(pkg, 'Group', group)
if not group:
printError(pkg, 'no-group-tag')
+ elif pkg.name.find('-devel') != -1 and not group.startswith('Development/'):
+ printWarning(pkg, 'devel-package-with-non-devel-group', group)
elif VALID_GROUPS and group not in VALID_GROUPS:
printWarning(pkg, 'non-standard-group', group)
@@ -949,6 +951,10 @@
'''There is no Group tag in your package. You have to specify a valid group
in your spec file using the Group tag.''',
+'devel-package-with-non-devel-group',
+'''The package ends with -devel but does not have a RPM group starting with
+Development/''',
+
'non-standard-group',
'''The value of the Group tag in the package is not valid. Valid groups are:
"%s".''' % '", "'.join(VALID_GROUPS),