969f7f
#!/bin/sh
969f7f
969f7f
# Finds requirements provided outside of the current file set
969f7f
969f7f
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
969f7f
969f7f
provides=`echo $filelist | /usr/lib/rpm/find-provides`
969f7f
969f7f
{
969f7f
for f in $filelist ; do
969f7f
	echo $f | /usr/lib/rpm/find-requires | while read req ; do
969f7f
		found=0
969f7f
		for p in $provides ; do
969f7f
			if [ "$req" = "$p" ]; then
969f7f
				found=1
969f7f
			fi
969f7f
		done
969f7f
		if [ "$found" = "0" ]; then
969f7f
			echo $req
969f7f
		fi
969f7f
	done
969f7f
done
969f7f
} | sort -u