From bb0341d8ae834bc76d4c0480d11482e3b08f5503 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 10 Jul 2002 16:11:43 +0000 Subject: [PATCH] mkspec-wrapper.sh: Add support for lesser / greater syntax in dependencies --- scripts/mkspec-wrapper.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/mkspec-wrapper.sh b/scripts/mkspec-wrapper.sh index 18f4a7bc..709188b0 100644 --- a/scripts/mkspec-wrapper.sh +++ b/scripts/mkspec-wrapper.sh @@ -59,9 +59,12 @@ if [ -z "$NAME" ]; then fi if [ -n "$REQUIRES" ]; then - REQUIRES_RUN=`echo $REQUIRES | sed -e 's/,/ /g; s/-[0-9-\.]*\b/-run&/g'` - REQUIRES_DEVEL=`echo $REQUIRES | sed -e 's/,/ /g; s/-[0-9-\.]*\b/-devel&/g'` + REQUIRES_RUN=`echo $REQUIRES | sed -e 's/,/ /g; s/[-<>=][0-9-\.]*\b/-run&/g'` + REQUIRES_DEVEL=`echo $REQUIRES | sed -e 's/,/ /g; s/[-<>=][0-9-\.]*\b/-devel&/g'` fi +#echo "REQUIRES_RUN=\"$REQUIRES_RUN\"" +#exit + . $MKSPEC_SH