]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-find-php-requires
- ugly gcc hack not needed.
[packages/rpm.git] / rpm-find-php-requires
CommitLineData
290cc4ca
PG
1#!/bin/sh
2ulimit -c 0
3cd `rpm --eval %{_builddir}`
4
5filelist=`sed "s/['\"]/\\\&/g"`
6if [ -f __rpm_noautoreqfiles ] ; then
7 for i in `cat __rpm_noautoreqfiles`; do
8 filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"`
9 done
10fi
11
12requires="`echo $filelist | /usr/lib/rpm/find-requires`"
13requires_php="`echo $filelist | xargs /usr/lib/rpm/php.req`"
14
15if [ -f __rpm_noautoreq ] ; then
16 for i in `cat __rpm_noautoreq`; do
17 requires_php=`echo $requires_php | sed "s!\<$i[[:space:]]*!!g"`
18 done
19fi
20
21requires_php_t="$requires_php"
22if [ -f __rpm_noautoreqdep ] ; then
23 for i in `cat __rpm_noautoreqdep`; do
24 requires_php_t=`echo $requires_php_t | sed "s!\<$i[[:space:]]*!!g"`
25 done
26fi
27
5b0f0ac9 28requires_mod="`LC_ALL=C rpm -q --whatprovides --qf "%{NAME}\n" $requires_php_t 2>/dev/null`"
290cc4ca 29echo "$requires
5b0f0ac9
MM
30$requires_php
31$requires_mod"| grep -v "no package provides" | sort -u
This page took 0.031957 seconds and 4 git commands to generate.