Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-JPype1 for openSUSE:Factory checked in at 2023-06-13 16:10:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-JPype1 (Old) and /work/SRC/openSUSE:Factory/.python-JPype1.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-JPype1" Tue Jun 13 16:10:53 2023 rev:6 rq:1092829 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-JPype1/python-JPype1.changes 2023-03-07 16:50:44.653713999 +0100 +++ /work/SRC/openSUSE:Factory/.python-JPype1.new.15902/python-JPype1.changes 2023-06-13 16:10:54.311379238 +0200 @@ -1,0 +2,9 @@ +Mon Jun 12 11:00:29 UTC 2023 - Fridrich Strba <fst...@suse.com> + +- Do not hardcode java-15-openjdk, since this can be built with + any Java >= 9 +- Added patch: + * JPype1-java8compat.patch + + Build packages that are fully backward compatible to Java 8 + +------------------------------------------------------------------- New: ---- JPype1-java8compat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-JPype1.spec ++++++ --- /var/tmp/diff_new_pack.oG8qMj/_old 2023-06-13 16:10:54.919382826 +0200 +++ /var/tmp/diff_new_pack.oG8qMj/_new 2023-06-13 16:10:54.927382873 +0200 @@ -29,14 +29,16 @@ License: Apache-2.0 URL: https://github.com/jpype-project/jpype Source: https://files.pythonhosted.org/packages/source/J/JPype1/JPype1-%{version}.tar.gz +Patch0: JPype1-java8compat.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: ant BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: java-15-openjdk-devel +BuildRequires: java-devel >= 9 +BuildRequires: javapackages-tools BuildRequires: python-rpm-macros -Requires: java-15-openjdk-headless +Requires: java-headless >= 1.8 Recommends: python-numpy Suggests: python-typing_extensions ExcludeArch: %{ix86} armv7 @@ -60,6 +62,7 @@ %prep %setup -q -n JPype1-%{version} +%patch0 -p1 # Avoid build dependency on PyInstaller rm jpype/_pyinstaller/test_jpype_pyinstaller.py ++++++ JPype1-java8compat.patch ++++++ Only in JPype1-1.4.1: JPype1-java8compat.patch --- JPype1-1.4.1/native/build.xml 2020-07-17 00:34:07.000000000 +0200 +++ JPype1-1.4.1/native/build.xml 2023-06-12 11:24:36.344297754 +0200 @@ -1,7 +1,7 @@ <project default="all" name="JPype - Native"> <!-- JAVA_VERSION must match the oldest supported Java version --> - <property name="JAVA_VERSION" value="1.8" /> + <property name="JAVA_VERSION" value="8" /> <!-- src can't be "java" as it breaks nose tests --> <property name="src" location="java"/> @@ -16,6 +16,7 @@ <javac destdir="${build}/classes" source="${JAVA_VERSION}" target="${JAVA_VERSION}" + release="${JAVA_VERSION}" excludes="**/JPypeClassLoader.java" > <src path="${src}"/> @@ -23,6 +24,7 @@ <javac destdir="${build}/lib" source="${JAVA_VERSION}" target="${JAVA_VERSION}" + release="${JAVA_VERSION}" includes="**/JPypeClassLoader.java" > <src path="${src}"/> --- JPype1-1.4.1/test/build.xml 2020-07-17 00:34:07.000000000 +0200 +++ JPype1-1.4.1/test/build.xml 2023-06-12 12:47:52.223097870 +0200 @@ -20,8 +20,6 @@ <target name="compile-9" if="build-9"> <javac destdir="${build}" - source="${version}" - target="${version}" > <compilerarg value="--add-exports"/> <compilerarg value="java.base/jdk.internal.reflect=ALL-UNNAMED"/> @@ -34,8 +32,9 @@ <target name="compile-8" if="build-8"> <javac destdir="${build}" - source="${version}" - target="${version}" + source="8" + target="8" + release="8" > <src> <pathelement location="${src}/java8"/> @@ -47,8 +46,9 @@ <target name="compile-main"> <mkdir dir="${build}"/> <javac destdir="${build}" - source="${version}" - target="${version}" + source="8" + target="8" + release="8" debug="true" debuglevel="lines,vars,source" >