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