Michal Marek wrote:
Wolfgang Rosenauer wrote:
Source91: filter-requires.sh
%define _use_internal_dependency_generator 0
%define __find_requires %{SOURCE91}
where filter-requires.sh basically would create the list for RPM.
That seems not to work (at least with openSUSE 10.3 within the
buildservice).
Well, it should work :). What does your filter-requires.sh script look
like? It should expect a list of filenames on stdin and output a list of
dependencies on stdout.
Probably there was another issue in the spec. Trying again now with that
fixed and see if it works now:
#!/bin/sh
# Finds requirements provided outside of the current file set
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
provides=`echo $filelist | /usr/lib/rpm/find-provides`
{
for f in $filelist ; do
echo $f | /usr/lib/rpm/find-requires | while read req ; do
found=0
for p in $provides ; do
if [ "$req" = "$p" ]; then
found=1
fi
done
if [ "$found" = "0" ]; then
echo $req
fi
done
done
} | sort -u
Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]