]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: Avoid RPM verification errors on nwfilter XMLs
authorJiri Denemark <jdenemar@redhat.com>
Wed, 12 Apr 2017 19:36:01 +0000 (21:36 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 22:02:37 +0000 (18:02 -0400)
commit6611f3803604eb8ce021d4d19567e1823fd50d74
treeb31f537865392b64b199ee398fb72ecfa64c3cbc
parent79e09184e3e879624030af46b7e687a835f9d928
spec: Avoid RPM verification errors on nwfilter XMLs

/etc/libvirt/nwfilter/*.xml files are installed with no UUID, which
means libvirtd will automatically alter all of them once it starts. Thus
RPM verification will always fail on them. Let's use a trick similar to
the default network XML and store nwfilter XMLs in /usr/share. They will
be copied into /etc in %post. Additionally the /etc files are marked as
%ghost so that they are uninstalled if the RPM package is removed.

Note that the %post script overwrites existing files with new ones on
upgrade, which is what has always been happening.

https://bugzilla.redhat.com/show_bug.cgi?id=1431581
https://bugzilla.redhat.com/show_bug.cgi?id=1378774

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit 1d3963dba5b8fbaa1d465d642d516be530618d25)
libvirt.spec.in