summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-04-22 16:22:24 +0200
committerOlav Vitters <olav@vitters.nl>2020-04-22 16:22:24 +0200
commit629d37454ab89c3da75b05a1f57f32e30a70a98f (patch)
tree0996fb5eae5d4d69e1094352308fffe5d39fea8f
parent47f77b637758cdde4a2fdc90f19633d488205ce6 (diff)
downloadmgagnome-629d37454ab89c3da75b05a1f57f32e30a70a98f.tar
mgagnome-629d37454ab89c3da75b05a1f57f32e30a70a98f.tar.gz
mgagnome-629d37454ab89c3da75b05a1f57f32e30a70a98f.tar.bz2
mgagnome-629d37454ab89c3da75b05a1f57f32e30a70a98f.tar.xz
mgagnome-629d37454ab89c3da75b05a1f57f32e30a70a98f.zip
add ability to convert python3 BR into python3dist()
-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],
}
}