On Wed, 1 May 2013 17:27, Andrey Borzenkov <arvidjaar@...> wrote:
В Tue, 30 Apr 2013 13:45:51 +0200 (CEST) Yamaban <foerster@lisas.de> пишет:
On Tue, 30 Apr 2013 13:05, Meike Stone <meike.stone@...> wrote:
2013/4/26 Meike Stone <meike.stone@googlemail.com>:
Hello,
I try to build a RPM. All is working fine. But I need that after uninstall of the rpm two files always should be left on disk. If the package is updated, file should be replaced with the file from new rpm and replaced renamed as .rpmsave.
Is there a way to do this in the spec file?
In general: define the file as %config(noreplace)
Was not the question how to *replace* files during installation?
Please look up what EXACTLY the added noreplace does. in short: if file changed during prior install (e.g. changed file / filemode / timestamp) (see rpm --verify) the file is moved to {filename}.rpmsave, and the new file from the package is put into place. Trouble comes in the form of "location not allowed to be used as %config" or similar due to added rpmlint / rpm-macros in the Distro. "nacked" rpm does not imply such rules, the added Distro definitions do that. And yes, I already fell afoul this trouble.