PREUN
/bin/sh
for i in /lib/modules/4.14.62-tmb-*-1.mga6/{build,source}; do if [ -L $i ]; then if [ "$(readlink $i)" = "/usr/src/4.14.62-tmb-1.mga6" ]; then rm -f $i fi fi done exit 0 # # kernel-source-latest: virtual rpm #
POSTIN
/bin/sh
for i in /lib/modules/4.14.62-tmb-*-1.mga6; do if [ -d $i ]; then if [ ! -L $i/build -a ! -L $i/source ]; then ln -sf /usr/src/4.14.62-tmb-1.mga6 $i/build ln -sf /usr/src/4.14.62-tmb-1.mga6 $i/source fi fi done