On 01/10/2015 01:37 AM, Domen Vrankar wrote:
Hello,
I came across this
(http://www.pclinuxos.com/forum/index.php?topic=117505.0) forum post
and started wondering if defattr deprecated
(http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Packagers_Guide/sect-Packagers_Guide-Creating_a_Basic_Spec_File.html)
or at least advisable not to use it
(https://wiki.mageia.org/en/Packagers_RPM_tutorial)?
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 -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list