mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
create-mkspec.sh: Add support for global.vendor config entry
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bcbc9f83bc
commit
eecc030d74
1 changed files with 5 additions and 7 deletions
|
|
@ -31,14 +31,10 @@ subpackage_description()
|
||||||
{
|
{
|
||||||
case $1 in
|
case $1 in
|
||||||
run)
|
run)
|
||||||
_cat <<-EOT
|
echo "Runtime files"
|
||||||
|Runtime files
|
|
||||||
EOT
|
|
||||||
;;
|
;;
|
||||||
devel)
|
devel)
|
||||||
_cat <<-EOT
|
echo "Development files"
|
||||||
|Development files
|
|
||||||
EOT
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
@ -55,6 +51,8 @@ inifile="$1"
|
||||||
subpackages=`cfg_value global.subpackages`
|
subpackages=`cfg_value global.subpackages`
|
||||||
license=`cfg_value global.license`
|
license=`cfg_value global.license`
|
||||||
[ "$license" ] || license="janware GmbH proprietary license"
|
[ "$license" ] || license="janware GmbH proprietary license"
|
||||||
|
vendor=`cfg_value global.vendor`
|
||||||
|
[ "$vendor" ] || vendor="janware GmbH"
|
||||||
url=`cfg_value global.url`
|
url=`cfg_value global.url`
|
||||||
[ "$url" ] || url="https://janware.com"
|
[ "$url" ] || url="https://janware.com"
|
||||||
|
|
||||||
|
|
@ -68,7 +66,7 @@ _cat <<- EOT
|
||||||
|echo "License: $license"
|
|echo "License: $license"
|
||||||
|echo "Group: System/Libraries"
|
|echo "Group: System/Libraries"
|
||||||
|[ -n "\$SOURCE" ] && echo "Source: \$SOURCE"
|
|[ -n "\$SOURCE" ] && echo "Source: \$SOURCE"
|
||||||
|echo "Vendor: janware GmbH"
|
|echo "Vendor: $vendor"
|
||||||
|echo "URL: $url"
|
|echo "URL: $url"
|
||||||
|echo "BuildRoot: /var/tmp/%{name}-buildroot"
|
|echo "BuildRoot: /var/tmp/%{name}-buildroot"
|
||||||
|echo "Distribution: jw / openSUSE Tumbleweed"
|
|echo "Distribution: jw / openSUSE Tumbleweed"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue