В Wed, 1 May 2013 12:16:32 -0400 Greg Freemyer <greg.freemyer@gmail.com> пишет:
On Wed, May 1, 2013 at 11:27 AM, Andrey Borzenkov <arvidjaar@gmail.com> 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? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
I think the harder question was how to not delete them on uninstallation of the rpm.
It should be saved as .rpmold; is it not enough? But again, only if file was changed, so you cannot be sure it is always present.
I would probably try to install them to a base location, then copy them to the final location in the %postin section, but I don't know if that would work or not.
Greg
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org