summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgagnome15
1 files changed, 15 insertions, 0 deletions
diff --git a/mgagnome b/mgagnome
index fb9dd4f..f826efc 100755
--- a/mgagnome
+++ b/mgagnome
@@ -1551,6 +1551,21 @@ def cmd_clean_spec_multi(args):
'check_provide': lambda prov: prov.startswith('perl('),
'basereqs': lambda req: set((req[len('perl-'):], )),
'extra': lambda basereqs, versions: ['perl(%s)' % basereq.replace('-', '::') for basereq in basereqs],
+ },
+ # PySolFC.spec:BuildRequires: python3-setuptools
+ # $ rpm -q python3-setuptools --provides | grep python3dist
+ # python3dist(setuptools)
+ # python3dist(setuptools) = 46.1.3
+ #
+ # There's also provides such as:
+ # python3.8dist(setuptools)
+ # pythonegg(3)(setuptools)
+ 'python': {
+ 'desc': 'convert python buildrequires into python3dist()',
+ 'check_br': lambda req: req.startswith('python3-'),
+ 'check_provide': lambda prov: prov.startswith('python3dist('),
+ 'basereqs': lambda req: set((req[len('python3-'):], )),
+ 'extra': lambda basereqs, versions: ['python3dist(%s)' % basereq for basereq in basereqs],
}
}