diff --git a/00-set-javac-1.8-source-target.patch b/00-set-javac-1.8-source-target.patch new file mode 100644 index 0000000..15c18a7 --- /dev/null +++ b/00-set-javac-1.8-source-target.patch @@ -0,0 +1,20 @@ +diff --git a/build.xml b/build.xml +index 2c22915..0e2f669 100644 +--- a/build.xml ++++ b/build.xml +@@ -10,13 +10,13 @@ + + + +- ++ + + + + + +- ++ + + + diff --git a/bytelist.spec b/bytelist.spec index 1159a58..303a562 100644 --- a/bytelist.spec +++ b/bytelist.spec @@ -6,13 +6,15 @@ Name: bytelist Version: 1.0.8 -Release: 20%{?dist} +Release: 21%{?dist} Summary: A java library for lists of bytes License: CPL or GPLv2+ or LGPLv2+ URL: http://github.com/%{cluster}/%{name} Source0: http://download.github.com/%{cluster}-%{name}-%{version}-0-g%{git_commit}.tar.gz +Patch0: 00-set-javac-1.8-source-target.patch + BuildArch: noarch BuildRequires: ant @@ -34,6 +36,7 @@ A small java library for manipulating lists of bytes. %prep %setup -q -n %{cluster}-%{name}-%{git_commit} +%patch0 -p1 find -name '*.class' -delete find -name '*.jar' -delete @@ -67,6 +70,9 @@ export CLASSPATH=$(build-classpath junit jcodings) %doc README.txt %changelog +* Sun Jul 19 2020 Fabio Valentini - 1.0.8-21 +- Set javac source and target to 1.8 to fix Java 11 builds. + * Fri Jul 10 2020 Jiri Vanek - 1.0.8-20 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11