#!/bin/sh
# Add firmware files in /lib/firmware into RPM provides

while read instfile ; do
  case $instfile in
    */lib/firmware/*) test -f "$instfile" || continue ;;
    *) continue ;;
  esac

  instfile=${instfile##*/lib/firmware/}
  instfile=${instfile%.xz}
  echo "firmware($instfile)"
done
