Fix Python bytecode removal on RHEL 7

This commit is contained in:
Mikolaj Izdebski 2019-08-20 14:34:29 +02:00
parent 1715885c41
commit 1a38a55a47

View File

@ -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')