[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: preserving file attributes from make install in rpm spec file



On Dec 13, 2007 10:35 AM, Jeff Johnson <n3npq jbj gmail com> wrote:
>

> What you miss is %attr markers in the %files manifest.
>
> Add explicit
>    %attr(mode,user,group)
> (substituting the actual values for "mode", "user", "group" above)
> for paths listed in the %files manifest.
>
> There is also %defattr, and there's a certain art to expressing
>  %attr so that itscopes correctly across glob patterns, but rpm
> packaging easily separates the actual {mode,user,group} used
> during build from the same tuple used during install.
>

Thank you Jeff and Matthew for the rapid responses!

Do I understand correctlythat I can
 omit the make install line in %install section
 if I add appropriate %attr lines in the %file section?

Something like this?

%files
%attr(755,root,root)
/usr/local/bin/file01
%attr(644,root,root)
/usr/local/bin/file02
%attr(750,root,wheel)
/usr/local/bin/file03
%attr(750,root,aaa)
/usr/local/bin/file04
%attr(750,root,bbb)
/usr/local/bin/file05

-Bob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]