for node in stdin stderr stdout null; do ln -s /dev/$${node} testing/dev/$${node}; done
for cf in hosts resolv.conf passwd shadow group gshadow mtab fstab; do [ -f /etc/$${cf} ] && ln -s /etc/$${cf} testing/etc/$${cf}; done
ln -s ../$(bindir) testing/usr/bin
- for prog in gzip cat patch tar sh ln chmod rm mkdir uname grep sed find file mktemp cut sort diff; do p=`which $${prog}`; ln -s $${p} testing/$${p}; done
+ for prog in gzip cat patch tar sh ln chmod rm mkdir uname grep sed find file mktemp cut sort diff touch; do p=`which $${prog}`; ln -s $${p} testing/$${p}; done
for d in /proc /sys /selinux /etc/selinux; do if [ -d $${d} ]; then ln -s $${d} testing/$${d}; fi; done
(cd testing/magic && file -C)
for f in fi de en pl none; do
echo "This is $f language" > $RPM_BUILD_ROOT/%{_datadir}/%{name}/$f.txt
done
+touch $RPM_BUILD_ROOT/%{_datadir}/%{name}/empty.txt
%clean
rm -rf $RPM_BUILD_ROOT
%lang(en) %{_datadir}/%{name}/en.txt
%lang(pl) %{_datadir}/%{name}/pl.txt
%{_datadir}/%{name}/none.txt
+%{_datadir}/%{name}/empty.txt
],
[0],
[normal /usr/share/flangtest/de.txt
+normal /usr/share/flangtest/empty.txt
not installed /usr/share/flangtest/en.txt
normal /usr/share/flangtest/fi.txt
normal /usr/share/flangtest/none.txt