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