Do not use python3 in python 2 directories

This commit is contained in:
Petr Lautrbach 2016-10-04 08:43:07 +02:00
parent 953350ddce
commit 1888063970
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ install -m 755 -p %{SOURCE9} %{buildroot}/%{generatorsdir}/
install -m 755 -p %{SOURCE5} %{buildroot}/%{_libexecdir}/selinux/
ln -s ../selinux-autorelabel-mark.service %{buildroot}/%{_unitdir}/basic.target.wants/
# change /usr/bin/python3 to /usr/bin/python in policycoreutils-python
find %{buildroot}%{python_sitelib} %{buildroot}%{python_sitearch} -type f | xargs \
sed -i '1s/\(#! *\/usr\/bin\/python\)3/\1/'
%find_lang %{name}
%package python-utils