diff --git a/apache-commons-compress.spec b/apache-commons-compress.spec
index faf2f3e..2c75438 100644
--- a/apache-commons-compress.spec
+++ b/apache-commons-compress.spec
@@ -3,7 +3,7 @@
Name: apache-%{short_name}
Version: 1.20
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Java API for working with compressed files and archivers
License: ASL 2.0
URL: http://commons.apache.org/proper/commons-compress/
@@ -68,6 +68,9 @@ rm src/test/java/org/apache/commons/compress/OsgiITest.java
%pom_add_dep org.mockito:mockito-core::test
rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
+# Generate Java 8 level bytecode when built on Java 11
+%pom_xpath_replace "pom:maven.compiler.release" "8"
+
%build
%mvn_file : %{short_name} %{name}
%mvn_alias : commons:
@@ -83,6 +86,9 @@ rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStrea
%doc LICENSE.txt NOTICE.txt
%changelog
+* Thu Jul 16 2020 Mat Booth - 1.20-3
+- Ensure Java 8 level bytecode when built on Java 11
+
* Fri Jul 10 2020 Jiri Vanek - 1.20-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11