usage of defattr
pmatilai at laiskiainen.org
Sat Jan 10 10:40:02 UTC 2015
On 01/10/2015 01:37 AM, Domen Vrankar wrote:
> I came across this
> (http://www.pclinuxos.com/forum/index.php?topic=117505.0) forum post
> and started wondering if defattr deprecated
> or at least advisable not to use it
> Is using attr in front of each file the preferred way of writing spec files?
> Are there any reasons why you should not change defattr from
> %defattr(-,root,root,-) to for eg %defattr(700,foo,bar,700) when you
> want only a certain user/group to use content of a certain rpm?
%defattr() being deprecated is just bollocks, it is not.
At least the Fedora packagers guide is just Very Wrong.
For the defattr() case, what its *trying* to say is that
%defattr(-, root, root) is not necessary in non-ancient rpm versions,
because rpm defaults to that. It doesn't mean its *deprecated* however,
nor is it ignored.
Similarly the notes on %clean and Group are wrong, they're not
deprecated or ignored, they're only not *required* anymore.
- Panu -
More information about the Rpm-list