diff --git a/ChangeLog b/ChangeLog index e71e254..ee253d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,10 @@ Changes in version 1.9.2 * pck-update - Davide Madrisan: Action 6: do support static requirements containing <,>,<=,>=,... + * pck-update - Davide Madrisan: + Action 6: never include in the list of build requirements an rpm provided + by the package itself. + -------------------------------------------------------------------------------- Changes in version 1.9.1 diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 68c8a1f..b1a13e4 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -2465,8 +2465,13 @@ $(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null rpm -q ${buildreq}-devel &>/dev/null && buildreq="$(rpm -q --qf %{name} ${buildreq}-devel)" fi - # finally print buildrequires block - [ "$buildreq" ] && echo "BuildRequires: $buildreq" + if [ -z "$(for p in ${SPEC_TARGET[*]}; do + # self-provided package + [ "$p" = "$buildreq" ] && echo "$p" + done)" ]; then + # finally print buildrequires block + [ "$buildreq" ] && echo "BuildRequires: $buildreq" + fi done ) >> $frequires notify.note "