From 12cab09330b284b841bd12fe7a431a8df6205616 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 18 Mar 2013 13:52:41 +0000 Subject: [PATCH] create-mkspec.sh: Only install *.mk for -devel packages Exclude /opt//make/*.mk if no -devel flavour is built FIXME: This is a kludge: We can't safely assume that all *.mk-files reside there, that's up to the project's makefile variable definitions. Signed-off-by: Jan Lindemann --- scripts/create-mkspec.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/create-mkspec.sh b/scripts/create-mkspec.sh index c22f9bf7..1f1e47aa 100644 --- a/scripts/create-mkspec.sh +++ b/scripts/create-mkspec.sh @@ -123,9 +123,14 @@ EOT value global.subpackages | grep -q run && _cat << EOT |echo "%files -n \$NAME-run -f \$INSTALL_LOG.\$NAME-run" EOT -value global.subpackages | grep -q devel && _cat << EOT +if value global.subpackages | grep -q devel; then _cat << EOT |echo "%files -n \$NAME-devel -f \$INSTALL_LOG.\$NAME-devel" EOT +else + _cat << EOT + |echo "%exclude /opt/\$NAME/make/*.mk" +EOT +fi _cat << EOT |echo '%defattr (-, root, root)' EOT