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

View File

@ -133,6 +133,10 @@ install -m 755 -p %{SOURCE9} %{buildroot}/%{generatorsdir}/
install -m 755 -p %{SOURCE5} %{buildroot}/%{_libexecdir}/selinux/ install -m 755 -p %{SOURCE5} %{buildroot}/%{_libexecdir}/selinux/
ln -s ../selinux-autorelabel-mark.service %{buildroot}/%{_unitdir}/basic.target.wants/ 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} %find_lang %{name}
%package python-utils %package python-utils