On Tue, 30 Apr 2013 13:05, Meike Stone
2013/4/26 Meike Stone
: 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) ..... in your %files section (to make it work, it needs touch, chmod in %post-install) http://rpm.org (Base) http://rpm.org/wiki/Docs (offical Docs, info and more) Esp: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_... (http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_...) Near Bottom. old: http://www.rpm.org/max-rpm-snapshot/ (http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list-directives.html) even older: http://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.P... (if missing use archive.org) http://web.archive.org/web/20110711135253/http://www.gurulabs.com/downloads/... - Yamaban. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org