create-mkspec.sh: Add support for global.license option in project.conf

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-11-23 12:08:14 +00:00
commit 6af6704576

View file

@ -19,16 +19,19 @@ _cat()
sed 's/^ *|//' sed 's/^ *|//'
} }
LICENSE=`cfg_value global.license`
[ "$LICENSE" ] || LICENSE="janware GmbH proprietary license"
_cat << EOT _cat << EOT
|echo "Name: \$NAME" |echo "Name: \$NAME"
|echo "Summary: `cfg_value summary`" |echo "Summary: `cfg_value summary`"
|echo "Version: \$VERSION" |echo "Version: \$VERSION"
|echo "Release: \$RELEASE" |echo "Release: \$RELEASE"
|echo "License: Jannet IT Services proprietary license" |echo "License: $LICENSE"
|echo "Group: System/Libraries" |echo "Group: System/Libraries"
|[ -n "\$SOURCE" ] && echo "Source: \$SOURCE" |[ -n "\$SOURCE" ] && echo "Source: \$SOURCE"
|echo "Vendor: Jannet IT Services" |echo "Vendor: Jannet IT Services"
|echo "URL: http://www.jannet.de" |echo "URL: http://janware.com"
|echo "BuildRoot: /var/tmp/%{name}-buildroot" |echo "BuildRoot: /var/tmp/%{name}-buildroot"
|echo "" |echo ""
|echo "%description" |echo "%description"