]> 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)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 19 Apr 2017 09:36:06 +0000 (11:36 +0200)
commit1d3963dba5b8fbaa1d465d642d516be530618d25
treeb22733c0d3e6dd3b0aae2f99766e4b8804c47f05
parentbd13b26da25bd33ca3d8885448df76e5b3eecf6a
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>
libvirt.spec.in