When building an RPM from existing source code, I'm getting the following error:
/usr/bin/strip: unable to copy file '/home/vagrant/temp/BUILDROOT/python3-3.4.3-1.el6.x86_64/usr/lib/libpython3.4m.a'; reason: Permission denied
When I look at the permissions for this file, it has no Write permission.
-r-xr-xr-x 1 vagrant vagrant 12823866 May 14 17:33 libpython3.4m.a
I've tried setting the permission in the %files section:
%attr(0644,root,root) /usr/lib/libpython3.4m.a
But this has no effect.
When does the stripping process occur, and how can I fix the file so it can be stripped, before the stripping operation occurs?