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:
@ -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}
|
||||
|
Reference in New Issue
Block a user