From ae217996059f2e19e7b56d3ae9fd26e79f984852 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Aug 29 2013 10:05:30 +0000 Subject: ruby: Dont check requires:rubygem in some subpackages (#224). Exclude -doc, -devel and -fonts packages from above test. --- diff --git a/plugins/ruby.py b/plugins/ruby.py index 9b2b040..65f3243 100644 --- a/plugins/ruby.py +++ b/plugins/ruby.py @@ -332,6 +332,9 @@ class GemCheckRequiresRubygems(GemCheckBase): # than to examine %files failed = [] for pkg_name in self.spec.packages: + for suffix in ['-doc', '-fonts', '-devel']: + if pkg_name.endswith(suffix): + continue rpm_pkg = self.rpms.get(pkg_name) if not 'rubygems' in rpm_pkg.requires and \ not 'ruby(rubygems)' in rpm_pkg.requires: