- convert python '~=' deps to '>=' master auto/th/rpm-5.4.15-59
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Oct 2020 19:08:16 +0000 (21:08 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 1 Oct 2020 19:08:16 +0000 (21:08 +0200)
- rel 59

rpm-pythoneggs.patch
rpm.spec

index 06eef437b32ba191a6728817bc7e73ce49cda295..4930b81d779e26b2cccc3df130dc30f00af8e4f8 100644 (file)
@@ -62,7 +62,7 @@
              deps = dist.requires()
              if Suggests:
                  depsextras = dist.requires(extras=dist.extras)
-@@ -153,15 +172,20 @@ for f in files:
+@@ -153,15 +172,23 @@ for f in files:
                          if dep in deps:
                              depsextras.remove(dep)
                  deps = depsextras
                              py_deps[name] = []
 -                        if not spec in py_deps[name]:
 -                            py_deps[name].append(spec)
-+                        plddep = (spec[0], make_pldver(spec[1]))
++                        if spec[0] == '~=':
++                            plddep = ('>=', make_pldver(spec[1]))
++                        else:
++                            plddep = (spec[0], make_pldver(spec[1]))
 +                        if not plddep in py_deps[name]:
 +                            py_deps[name].append(plddep)
                  if not dep.specs:
                      py_deps[name] = []
          # Unused, for automatic sub-package generation based on 'extras' from egg metadata
+@@ -208,7 +211,10 @@
+                         if spec[0] == '!=':
+                             print 'Conflicts:\t%s %s %s' % (dep.key, '==', spec[1])
+                         else:
+-                            print 'Requires:\t%s %s %s' % (dep.key, spec[0], spec[1])
++                            if spec[0] == '~=':
++                                print 'Requires:\t%s %s %s' % (dep.key, '>=', spec[1])
++                            else:
++                                print 'Requires:\t%s %s %s' % (dep.key, spec[0], spec[1])
+                 print '%%description\t%s' % extra
+                 print '%s extra for %s python egg' % (extra, dist.key)
+                 print '%%files\t\textras-%s\n' % extra
index f9d228c498f6f92f7cc51f614b50c03591b80c5a..40cbcac8d66ef3fd19ecafd44c2c881c3167a5ff 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -47,7 +47,7 @@ Summary(ru.UTF-8):    Менеджер пакетов от RPM
 Summary(uk.UTF-8):     Менеджер пакетів від RPM
 Name:          rpm
 Version:       5.4.15
-Release:       58
+Release:       59
 License:       LGPL v2.1
 Group:         Base
 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
This page took 0.073516 seconds and 4 git commands to generate.