The package extraction just limits the RPM's retrieved from the
build area.
Replace
Code: Select all
cp -p $tmp/*/ImageMagick-[6p]*.i386.rpm
Code: Select all
cp -p $tmp/*/ImageMagick-*.i386.rpm
The next line may need to be modified to limit the package installation (as root) to just what you want.