Disable bytecode compilation outside of site-packages

This commit is contained in:
Michael Simacek 2018-06-25 14:36:51 +02:00
parent e144c6b9ca
commit 9aa42bcd4a

View File

@ -2,6 +2,10 @@
# provided pseudo-artifacts: com.sun:tools and sun.jdk:jconsole. # provided pseudo-artifacts: com.sun:tools and sun.jdk:jconsole.
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}/maven-metadata/javapackages-metadata.xml$ %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}/maven-metadata/javapackages-metadata.xml$
# Disable automatic bytecode compilation for files in java-utils
# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
%global _python_bytecompile_extra 0
%bcond_without asciidoc %bcond_without asciidoc
%bcond_without gradle %bcond_without gradle
%bcond_without tests %bcond_without tests
@ -21,7 +25,7 @@
Name: javapackages-tools Name: javapackages-tools
Version: 5.2.0 Version: 5.2.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Macros and scripts for Java packaging support Summary: Macros and scripts for Java packaging support
@ -170,7 +174,7 @@ sed -i '/${mandir}/d' install
%if %{with xmvn_javadoc} %if %{with xmvn_javadoc}
sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava') sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava')
%endif %endif
sed -e 's/.[17]$/&*/' -e 's/.py$/&*/' -i files-* sed -e 's/.[17]$/&*/' -i files-*
%if %{without gradle} %if %{without gradle}
rm -rf %{buildroot}%{_bindir}/gradle-local rm -rf %{buildroot}%{_bindir}/gradle-local
@ -203,6 +207,9 @@ rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7
%license LICENSE %license LICENSE
%changelog %changelog
* Mon Jun 25 2018 Michael Simacek <msimacek@redhat.com> - 5.2.0-3
- Disable bytecode compilation outside of site-packages
* Wed Jun 20 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.2.0-2 * Wed Jun 20 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.2.0-2
- Fix running tests on Python 3.7 - Fix running tests on Python 3.7