]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: Do not install *.py[co] in python examples
authorJiri Denemark <jdenemar@redhat.com>
Mon, 17 Dec 2012 18:27:38 +0000 (19:27 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 18 Dec 2012 17:03:31 +0000 (18:03 +0100)
commit5cce9d28b03753a73a3a0c51d649771e3b7afeed
tree678c508e1a5a359ebf12e5c7c846f259e217af20
parent1846b80be8b56de9daccffe7a6e326170a78154d
spec: Do not install *.py[co] in python examples

Unfortunately, rpm is stupid enough to bytycompile python scripts even
though they are located in /usr/share/doc/libvirt-python-*/examples and
it does so after %install phase is finished. Thus there's no way we
could remove those files from BUILDROOT. As a workaround, we may safely
remove the examples subdirectory completely without losing anything. The
python scripts that were installed there are also copied directly into
/usr/share/doc/libvirt-python-*/ by

    %doc python/tests/*.py

rule. And yes, the files are actually tests, not examples.
libvirt.spec.in