https://bugzilla.redhat.com/show_bug.cgi?id=2316067 --- Comment #3 from Petr Pisar <ppisar@xxxxxxxxxx> --- Or there is a third way: 3) Use %{privlib} and %{archlib} macros in the definition of __provides_exclude_from. That would require more shuffling in the spec because the macros are defined later.