On Tue, Sep 20, 2005 at 01:07:30PM -0400, Ignacio Vazquez-Abrams wrote:
On Tue, 2005-09-20 at 11:53 -0500, Justin Conover wrote:
> How do you implement this in a spec file?
>
> If file is here and there are changes, either replace it and create
> filename.save, or keep the old and create filename.rpmnew
.rpmnew=%config(noreplace)
.rpmsave=%config
You may want as well '%verify(not md5 size mtime)' on config files
and other times '%config(missingok,noreplace)', or just
'%config(missingok)', may be called for if such file is optional.
Michal