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