SPECS: template.spec - cleanup backups

Radoslaw Zielinski radek42 at gmail.com
Wed May 31 00:05:04 CEST 2006


Elan Ruusamäe <glen at delfi.ee> [30-05-2006 23:14]:
> On Tuesday 30 May 2006 22:59, Paweł Gołaszewski wrote:
>>> +# you'll need this if you cp -a complete dir in source
>>> +# cleanup backups after patching
>>> +find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512
>>> rm -f
>> Maybe it should be made in every spec? some default rpm-macro?
>> These files (some *.bak, *~ an many more) are not needed almoust always.
> i was thinking maybe it would be possible to hook into %prep macro like 'unset
> DISPLAY' and friends are done. but it needs to be _last_ in %prep section. i
> don't know how to do that.

An opt-out macro like this is IMHO asking for trouble.  Eventual gain
(like, one line less somewhere) won't balance the hours spend on
wondering "wtf doesn't work here".

-- 
Radosław Zieliński <radek at pld-linux.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /mailman/pipermail/pld-devel-en/attachments/20060531/724899a1/attachment.sig 


More information about the pld-devel-en mailing list