byte-compile Python plug-ins separately from Fedora 29 on

This commit is contained in:
Nils Philippsen 2018-07-05 12:48:59 +02:00
parent 8639b86eb8
commit c2eae577ed

View File

@ -31,6 +31,18 @@
# webp support
%bcond_without webp
# If Python plug-ins need to be byte-compiled separately
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} > 28 || 0%{?rhel} > 7
%bcond_without python_separately_bytecompile
%else
%bcond_with python_separately_bytecompile
%endif
%if %{with python_separately_bytecompile}
# Disable automatic compilation of Python files in extra directories
%global _python_bytecompile_extra 0
%endif
# skip tests known to be problematic in a specific version
#global skip_checks_version X.Y.Z
#global skip_checks test1 test2 test3
@ -416,6 +428,10 @@ for file in $(cat gimp-plugin-files-py); do
done
done >> gimp-plugin-files
%if %{with python_separately_bytecompile}
%py_byte_compile %{__python2} %{buildroot}%{_libdir}/gimp/%{lib_api_version}
%endif
%if %{with static}
find %{buildroot}%{_libdir}/gimp/%{lib_api_version} -type f | sed "s@^%{buildroot}@@g" | grep '\.a$' > gimp-static-files
%endif
@ -660,6 +676,7 @@ make check %{?_smp_mflags}
%changelog
* Thu Jul 05 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.4-1
- version 2.10.4
- byte-compile Python plug-ins separately from Fedora 29 on
* Wed May 23 2018 Nils Philippsen <nils@tiptoe.de> - 2:2.10.2-2
- bump required babl and gegl versions