https://bugzilla.redhat.com/show_bug.cgi?id=1288731
--- Comment #17 from Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl --- Right. Something like this seems to work: %global __provides_exclude_from %{_libexecdir}/os-autoinst %global __requires_exclude ^perl\((autotest|backend|basetest|bmwqemu|commands|consoles|cv|distribution|lockapi|mmapi|needle|ocr|testapi) %{?perl_default_filter}
It's not very pretty, but at least if upstream adds more modules, the package will become uninstallable, so it cannot become out of date without someone noticing.
Please add: Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
On %docdir - I can read wiki pages too, but I don't just throw lines in spec files for no reason
I don't throw comments in my review for no good reason either ;) I checked with rpmbuild --showrc that %perl_default_filter has %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir} so unless there's some bug, this line should not be necessary. rpmdiff also says that this line makes no difference.