Dirk Mueller 2017-09-30 12:54:30 +00:00 committed by Git OBS Bridge
parent c386a48124
commit 2f4e7357e7

View File

@ -91,11 +91,9 @@ cp -a %{_libdir}/libpython%{py3_ver}m.so.* %{buildroot}/opt/testing/%{_lib}
cp -a %{_bindir}/rpmlint %{buildroot}/opt/testing/share/rpmlint/rpmlint.py
pushd %{buildroot}/opt/testing/share/rpmlint
PYTHONOPTIMIZE=1 python3 -m py_compile *.py
rm -v *.py
popd
pushd %{buildroot}/opt/testing/%{_lib}/python%{py3_ver}/site-packages/
PYTHONOPTIMIZE=1 find -name \*.py -exec python3 -m py_compile {} \;
# find -name \*.py -delete
popd
rm -rf %{buildroot}/{usr,etc}
rm -f %{buildroot}/opt/testing/bin/rpmlint