From e8830a1f9ebb01fce56e8a41d36da784f72d35b9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 10 Jul 2002 18:58:25 +0000 Subject: [PATCH] mkspec-wrapper.sh: Fix REQUIRED_XXX parsing --- scripts/mkspec-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mkspec-wrapper.sh b/scripts/mkspec-wrapper.sh index 765ec557..88215aac 100644 --- a/scripts/mkspec-wrapper.sh +++ b/scripts/mkspec-wrapper.sh @@ -59,8 +59,8 @@ 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/\([a-zA-Z-]\+\) *\([<>=]*\) *\([0-9\.-]*\)/\1-run \2 \3,/g; s/,$//'` + REQUIRES_DEVEL=`echo $REQUIRES | sed -e 's/\([a-zA-Z-]\+\) *\([<>=]*\) *\([0-9\.-]*\)/\1-devel \2 \3,/g; s/,$//'` fi #echo "REQUIRES_RUN=\"$REQUIRES_RUN\""