CPack/RPM: multiple %defattr not supported
Maybe undocumented, but %defattr
in %files
is defining the default %attr
for all the following entries.
I used this trick in plan .spec
files for large sections of similar attributes, thus avoiding multiple same %attr.
Sadly, CPACK_RPM_USER_FILELIST does not allow that since, at a glance, its processing by CPackRPM.cmake
results in %defattr(...) ""
. This is invalid syntax and breaks rpm.