Skip to content

Commit

Permalink
spec: Don't pull in dependencies for example scripts
Browse files Browse the repository at this point in the history
If the scripts are marked as executable, RPM magic will scan them
for dependencies, which can pull in python2 for the python3 package
  • Loading branch information
crobinso committed Apr 20, 2016
1 parent e9c4e2a commit 8067f0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libvirt-python.spec.in
Expand Up @@ -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}
Expand Down

0 comments on commit 8067f0b

Please sign in to comment.