( lx | 2015. 02. 06., p – 13:37 )

Ah, így világos:

awk 'NF < 3 {getline x; $0 = ($0 x)} ; {sub(/\.(x86_64|noarch)$/, "-" $2 "&", $1); print $1}'