Use python2_sitearch and python2_sitelib macros
Fixes: /usr/bin/python: can't open file '/usr/lib/rpm/python-macro-helper': [Errno 2] No such file or directory
This commit is contained in:
parent
846a16972b
commit
1083f0e66f
@ -166,7 +166,7 @@ install -m 755 -p %{SOURCE15} %{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
|
# change /usr/bin/python3 to /usr/bin/python in policycoreutils-python
|
||||||
find %{buildroot}%{python_sitelib} %{buildroot}%{python_sitearch} -type f | xargs \
|
find %{buildroot}%{python2_sitelib} %{buildroot}%{python2_sitearch} -type f | xargs \
|
||||||
sed -i '1s%\(#! */usr/bin/python\)3%\1%'
|
sed -i '1s%\(#! */usr/bin/python\)3%\1%'
|
||||||
|
|
||||||
# change /usr/bin/python to %%{__python3} in policycoreutils-python3
|
# change /usr/bin/python to %%{__python3} in policycoreutils-python3
|
||||||
@ -289,20 +289,20 @@ The policycoreutils-python package contains the management tools use to manage
|
|||||||
an SELinux environment.
|
an SELinux environment.
|
||||||
|
|
||||||
%files -n python2-policycoreutils
|
%files -n python2-policycoreutils
|
||||||
%{python_sitearch}/seobject.py*
|
%{python2_sitearch}/seobject.py*
|
||||||
%{python_sitearch}/sepolgen
|
%{python2_sitearch}/sepolgen
|
||||||
%dir %{python_sitelib}/sepolicy
|
%dir %{python2_sitelib}/sepolicy
|
||||||
%{python_sitelib}/sepolicy/templates
|
%{python2_sitelib}/sepolicy/templates
|
||||||
%{python_sitelib}/sepolicy/__init__.py*
|
%{python2_sitelib}/sepolicy/__init__.py*
|
||||||
%{python_sitelib}/sepolicy/booleans.py*
|
%{python2_sitelib}/sepolicy/booleans.py*
|
||||||
%{python_sitelib}/sepolicy/communicate.py*
|
%{python2_sitelib}/sepolicy/communicate.py*
|
||||||
%{python_sitelib}/sepolicy/generate.py*
|
%{python2_sitelib}/sepolicy/generate.py*
|
||||||
%{python_sitelib}/sepolicy/interface.py*
|
%{python2_sitelib}/sepolicy/interface.py*
|
||||||
%{python_sitelib}/sepolicy/manpage.py*
|
%{python2_sitelib}/sepolicy/manpage.py*
|
||||||
%{python_sitelib}/sepolicy/network.py*
|
%{python2_sitelib}/sepolicy/network.py*
|
||||||
%{python_sitelib}/sepolicy/transition.py*
|
%{python2_sitelib}/sepolicy/transition.py*
|
||||||
%{python_sitelib}/sepolicy/sedbus.py*
|
%{python2_sitelib}/sepolicy/sedbus.py*
|
||||||
%{python_sitelib}/sepolicy*.egg-info
|
%{python2_sitelib}/sepolicy*.egg-info
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: SELinux policy core policy devel utilities
|
Summary: SELinux policy core policy devel utilities
|
||||||
@ -403,10 +403,10 @@ system-config-selinux is a utility for managing the SELinux environment
|
|||||||
%{_datadir}/system-config-selinux/system-config-selinux.py*
|
%{_datadir}/system-config-selinux/system-config-selinux.py*
|
||||||
%{_datadir}/system-config-selinux/*.glade
|
%{_datadir}/system-config-selinux/*.glade
|
||||||
%{_datadir}/system-config-selinux/*.ui
|
%{_datadir}/system-config-selinux/*.ui
|
||||||
%{python_sitelib}/sepolicy/gui.py*
|
%{python2_sitelib}/sepolicy/gui.py*
|
||||||
%{python_sitelib}/sepolicy/sepolicy.glade
|
%{python2_sitelib}/sepolicy/sepolicy.glade
|
||||||
%dir %{python_sitelib}/sepolicy/help
|
%dir %{python2_sitelib}/sepolicy/help
|
||||||
%{python_sitelib}/sepolicy/help/*
|
%{python2_sitelib}/sepolicy/help/*
|
||||||
%{python3_sitelib}/sepolicy/gui.py*
|
%{python3_sitelib}/sepolicy/gui.py*
|
||||||
%{python3_sitelib}/sepolicy/sepolicy.glade
|
%{python3_sitelib}/sepolicy/sepolicy.glade
|
||||||
%{_datadir}/icons/hicolor/*/apps/sepolicy.png
|
%{_datadir}/icons/hicolor/*/apps/sepolicy.png
|
||||||
|
Loading…
Reference in New Issue
Block a user