summaryrefslogtreecommitdiff
path: root/libvirt-python.spec.in
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2016-04-20 14:47:48 -0400
committerCole Robinson <crobinso@redhat.com>2016-04-20 14:47:48 -0400
commit8067f0bed0242302145f7f31c88af4552466b42e (patch)
tree64e6b681015917b77f6bd27874862820489b58fb /libvirt-python.spec.in
parente9c4e2abffef007a28112ebb40a9586b0128f10b (diff)
downloadlibvirt-python-8067f0bed0242302145f7f31c88af4552466b42e.tar.gz
spec: Don't pull in dependencies for example scripts
If the scripts are marked as executable, RPM magic will scan them for dependencies, which can pull in python2 for the python3 package
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r--libvirt-python.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index 8a21003..3021ebd 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -49,6 +49,11 @@ of recent versions of Linux (and other OSes).
%prep
%setup -q
+# Unset execute bit for example scripts; it can introduce spurious
+# RPM dependencies, like /usr/bin/python which can pull in python2
+# for the -python3 package
+find examples -type f -exec chmod 0644 \{\} \;
+
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%if %{with_python3}