The attached patch tries to detect if the build platform has the rules.d
polkit directory and only installs the file from contrib if so. As an
additional improvement we might add a config option that specifies the
directory directly, but I don't think it's needed at the moment.
I ran a local mock build of epel-6 and fedora and those passed. Now the
patch is in CI to check Debian.
Sorry again for the careless review of the first patch.