1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-05 16:21:59 +03:00

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
This commit is contained in:
Cole Robinson
2016-04-20 14:47:48 -04:00
parent e9c4e2abff
commit 8067f0bed0

View File

@ -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}