diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 098ac95..269aa02 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -2301,6 +2301,7 @@ build the list of the build requirements""${NORM}" : elif [ "${req:0:7}" = "rpmlib(" -o \ "${req:0:7}" = "config(" -o \ + "${req:0:5}" = "rtld(" -o \ "${req:0:11}" = "executable(" ]; then # not a build requirement : @@ -2317,9 +2318,12 @@ build the list of the build requirements""${NORM}" [ "$buildreq" ] || echo "# $req: perl requirement not resolved" elif [ "${req}" = "python(abi)" ]; then - # FIXME: libpython-devel should be defined in autospec.conf # python requirement - buildreq="libpython-devel" + reqver=${line/*= /} + buildreq="libpython${reqver/\.}-devel" + rpm -q --qf %{name} --whatprovides "$buildreq" &>/dev/null || { + buildreq="libpython${reqver/\.*}-devel" + } elif [[ "$req" =~ .*\.so\.[0-9]* ]]; then solibpath_catch="" # is a shared library