2 cd `rpm --eval %{_builddir}`
4 filelist=`sed "s/['\"]/\\\&/g"`
5 if [ -f __rpm_noautoreqfiles ] ; then
6 for i in `cat __rpm_noautoreqfiles`; do
7 filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"`
11 requires="`echo $filelist | /usr/lib/rpm/find-requires`"
12 requires_php="`echo $filelist | xargs /usr/lib/rpm/php.req`"
14 if [ -f __rpm_noautoreq ] ; then
15 for i in `cat __rpm_noautoreq`; do
16 requires_php=`echo $requires_php | sed "s!\<$i[[:space:]]*!!g"`
20 requires_php_t="$requires_php"
21 if [ -f __rpm_noautoreqdep ] ; then
22 for i in `cat __rpm_noautoreqdep`; do
23 requires_php_t=`echo $requires_php_t | sed "s!\<$i[[:space:]]*!!g"`
27 requires_mod="`LC_ALL=C rpm -q --whatprovides --qf "%{NAME}\n" $requires_php_t 2>/dev/null`"
30 $requires_mod"| grep -v "no package provides" | sort -u