From a1183a216e24eb717e9b8ba204568ef78c08af7f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 13 Nov 2018 11:17:43 +0000 Subject: [PATCH] create-mkspec.sh: Add support for entry url in [global] of project.conf Signed-off-by: Jan Lindemann --- scripts/create-mkspec.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/create-mkspec.sh b/scripts/create-mkspec.sh index 4341178c..191dc4bf 100644 --- a/scripts/create-mkspec.sh +++ b/scripts/create-mkspec.sh @@ -55,6 +55,8 @@ inifile="$1" subpackages=`cfg_value global.subpackages` license=`cfg_value global.license` [ "$license" ] || license="janware GmbH proprietary license" +url=`cfg_value global.url` +[ "$url" ] || url="https://janware.com" _cat <<- EOT |echo "Name: \$NAME" @@ -65,7 +67,7 @@ _cat <<- EOT |echo "Group: System/Libraries" |[ -n "\$SOURCE" ] && echo "Source: \$SOURCE" |echo "Vendor: janware GmbH" - |echo "URL: http://janware.com" + |echo "URL: $url" |echo "BuildRoot: /var/tmp/%{name}-buildroot" |echo "Distribution: jw / openSUSE Tumbleweed" |echo ""