Commit a49c6915 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmurl: try to implement Source-* support

parent 974b2509
...@@ -78,7 +78,20 @@ check_spec() ...@@ -78,7 +78,20 @@ check_spec()
else else
RPM_URL=$(eval_spec $SPEC | get_var "Url") RPM_URL=$(eval_spec $SPEC | get_var "Url")
if [ -n "$ABOUTDIR" ] ; then if [ -n "$ABOUTDIR" ] ; then
SOURCE=$(eval_spec $SPEC | get_var "Source") # hack: FIXME
#cat $SPEC | sed -e "s|^# Source-\(.*\):\([ \t]\)|%define rpmurl_source_\1\2|g" > $SPEC.rpmurl
#local NEWSOURCE=
#eval_spec $SPEC.rpmurl >$SPEC.rpmuuu
#if eval_spec $SPEC.rpmurl | egrep -q "%define rpmurl_source_(git|url)" ; then
# NEWSOURCE=$(eval_spec $SPEC.rpmurl | egrep "%define rpmurl_source_(git|url)" | sed -e "s/.*[ \t]\(.*\)/\1/g")
# echo $NEWSOURCE
#fi
#rm -f $SPEC.rpmurl
if [ -n "$NEWSOURCE" ] ; then
SOURCE="$NEWSOURCE"
else
SOURCE=$(eval_spec $SPEC | get_var "Source")
fi
RPM_URL=$(dirname $SOURCE) RPM_URL=$(dirname $SOURCE)
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment