On 22/01/16 03:11, Jason L Tibbitts III wrote:
I'm now working on some magic macros for EPEL5.  Currently (on my
machine, at least) you can use %license and don't need BuildRoot:.  I'm
curious about some other boilerplate constructs, though.

%defattr in %files:
I've been told that even EPEL5 doesn't need this, but still it
persists.  Can someone verify that it really is not required?  Why do
people keep putting it in if so?

The need for this went away with rpm 4.4, so EL-4 needed it and EL-5 does not. It's probably still there because people can't remember whether it was EL-5 or EL-6 that removed the need for it, and left it there to be on the safe side.

Cleaning %buildroot in %install::
Why is is so essential that the buildroot be cleaned as the first line
of %install?  I think I can make this happen magically but I'm not sure
why it's needed at all.

%clean
What actually goes wrong if %clean isn't there?  If it's just some cruft
that might be left over after a successful build, then is it really an
issue if it's not present?

Might these affect people doing short-circuit builds? That's never been a part of my workflow so I've not come across any issues with it.

Paul.
_______________________________________________
epel-devel mailing list
epel-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/epel-devel@lists.fedoraproject.org

Reply via email to