On Tue, Jul 05, 2011 at 03:52:54PM -0300, Eduardo Lima (Etrunko) wrote:
# HG changeset patch
# User Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
# Date 1309891951 10800
# Node ID cd4aec302d94b587ede84e68356998c01188f265
# Parent 20138a9d4f2b4780664545e412cab7a4c26d7503
libvirt-cim.spec: Use %config(noreplace) for libvirt-cim.conf
This way we avoid overwriting eventual changes to the config file
introduced manually.
Reference:
-
http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html
Signed-off-by: Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
diff --git a/libvirt-cim.spec.in b/libvirt-cim.spec.in
--- a/libvirt-cim.spec.in
+++ b/libvirt-cim.spec.in
@@ -136,7 +136,7 @@
%{_datadir}/libvirt-cim/*.registration
%{_datadir}/libvirt-cim/cim_schema_*-MOFs.zip
%{_sysconfdir}/ld.so.conf.d/libvirt-cim.conf
-%{_sysconfdir}/libvirt-cim.conf
+%config(noreplace) %{_sysconfdir}/libvirt-cim.conf
%changelog
* Wed Oct 28 2009 Richard Maciel <rmaciel(a)linux.vnet.ibm.com> - 0.1-1
Definitely, having edited config files cleaned up on updates is
really nasty, ACK, +1
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/