From 6af6704576317c9d5e632cb58a470961fe74f853 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 23 Nov 2016 12:08:14 +0000 Subject: [PATCH] create-mkspec.sh: Add support for global.license option in project.conf Signed-off-by: Jan Lindemann --- scripts/create-mkspec.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/create-mkspec.sh b/scripts/create-mkspec.sh index 8de84ddf..7dc26875 100644 --- a/scripts/create-mkspec.sh +++ b/scripts/create-mkspec.sh @@ -19,16 +19,19 @@ _cat() sed 's/^ *|//' } +LICENSE=`cfg_value global.license` +[ "$LICENSE" ] || LICENSE="janware GmbH proprietary license" + _cat << EOT |echo "Name: \$NAME" |echo "Summary: `cfg_value summary`" |echo "Version: \$VERSION" |echo "Release: \$RELEASE" - |echo "License: Jannet IT Services proprietary license" + |echo "License: $LICENSE" |echo "Group: System/Libraries" |[ -n "\$SOURCE" ] && echo "Source: \$SOURCE" |echo "Vendor: Jannet IT Services" - |echo "URL: http://www.jannet.de" + |echo "URL: http://janware.com" |echo "BuildRoot: /var/tmp/%{name}-buildroot" |echo "" |echo "%description"