On Jun 05 2017, Michal Marek <mmarek@suse.com> wrote:
@@ -85,18 +88,39 @@ done
%install
+cat >boilerplate.list <<EOF +%%defattr(-,root,root) +%%doc COPYING +%%ghost /boot/dtb +%%dir %{dtbdir} +EOF + cd pp -for dts in $ALL_SUPPORTED_DTB; do - target=${dts%*.dts} - install -m 700 -d %{buildroot}%{dtbdir}/$(dirname $target) - install -m 644 $target.dtb %{buildroot}%{dtbdir}/$(dirname $target) + pkg=${spec%:*}
% should be doubled.
+ glob=${spec#*:} + : >../$pkg.list + for dts in $glob; do + if test ! -e "$dts"; then + continue + fi + if test ! -s ../$pkg.list; then + cp ../boilerplate.list ../$pkg.list + fi + target=${dts%*.dts}
Likewise. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org