Fix Python bytecode removal on RHEL 7
This commit is contained in:
parent
1715885c41
commit
1a38a55a47
@ -146,6 +146,8 @@ sed -i '/${mandir}/d' install
|
||||
|
||||
rm -rf %{buildroot}%{python_sitelib}/javapackages-*.egg-info
|
||||
find %{buildroot}%{python_sitelib}/javapackages -name __pycache__ | xargs rm -rf
|
||||
find %{buildroot}%{python_sitelib}/javapackages -name \*.pyc | xargs rm -f
|
||||
find %{buildroot}%{python_sitelib}/javapackages -name \*.pyo | xargs rm -f
|
||||
mv %{buildroot}%{python_sitelib}/javapackages %{buildroot}%{_javadir}-utils/
|
||||
|
||||
sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava')
|
||||
|
Loading…
Reference in New Issue
Block a user