2015-04-10 16:35:46 +02:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] rpmgroup-checks.diff
|
|
|
|
|
2010-04-28 22:41:49 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
TagsCheck.py | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
|
|
|
|
2017-09-28 13:35:09 +02:00
|
|
|
Index: rpmlint-rpmlint-1.10/TagsCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-rpmlint-1.10.orig/TagsCheck.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/TagsCheck.py
|
2017-09-28 22:18:14 +02:00
|
|
|
@@ -743,6 +743,8 @@ class TagsCheck(AbstractCheck.AbstractCh
|
2010-04-01 16:20:38 +02:00
|
|
|
self._unexpanded_macros(pkg, 'Group', group)
|
2010-01-27 18:18:50 +01:00
|
|
|
if not group:
|
|
|
|
printError(pkg, 'no-group-tag')
|
2011-11-29 13:43:23 +01:00
|
|
|
+ elif pkg.name.endswith('-devel') and not group.startswith('Development/'):
|
2010-04-01 16:20:38 +02:00
|
|
|
+ printWarning(pkg, 'devel-package-with-non-devel-group', group)
|
|
|
|
elif VALID_GROUPS and group not in VALID_GROUPS:
|
|
|
|
printWarning(pkg, 'non-standard-group', group)
|
|
|
|
|
2017-09-28 22:18:14 +02:00
|
|
|
@@ -1067,6 +1069,10 @@ won't fool the specfile parser, and rebu
|
2010-04-01 16:20:38 +02:00
|
|
|
'''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),
|