Compare commits
No commits in common. "c8-stream-201902" and "c8-beta-stream-201801" have entirely different histories.
c8-stream-
...
c8-beta-st
@ -1 +1 @@
|
||||
df2eaf0fe313ac68f0ace6e460fa56633051472b SOURCES/commons-compress-1.19-src.tar.gz
|
||||
50e3ee4b70cbe97581e17298cbd42b62157c13b2 SOURCES/commons-compress-1.18-src.tar.gz
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/commons-compress-1.19-src.tar.gz
|
||||
SOURCES/commons-compress-1.18-src.tar.gz
|
||||
|
@ -1,10 +1,10 @@
|
||||
From d42b16c3334229cc400c6713f3bd11c8df2f70cc Mon Sep 17 00:00:00 2001
|
||||
From bba585e9e4fdfc67de3b53b58b8d60923e1ccd0c Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Mon, 12 Feb 2018 10:53:48 +0100
|
||||
Subject: [PATCH 1/3] Remove Brotli compressor
|
||||
Subject: [PATCH 1/2] Remove Brotli compressor
|
||||
|
||||
---
|
||||
.../compress/compressors/CompressorStreamFactory.java | 7 +------
|
||||
.../commons/compress/compressors/CompressorStreamFactory.java | 7 +------
|
||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
|
||||
@ -33,5 +33,5 @@ index d730b9d..ab178a9 100644
|
||||
|
||||
if (XZ.equalsIgnoreCase(name)) {
|
||||
--
|
||||
2.20.1
|
||||
2.14.3
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
From 575df9b9a3519186ac801a10eb632e0e2b4ddbdd Mon Sep 17 00:00:00 2001
|
||||
From bab91e014f73296a8ac9a3aef2aaa324a85e9b96 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Mon, 12 Feb 2018 10:59:55 +0100
|
||||
Subject: [PATCH 2/3] Remove ZSTD compressor
|
||||
Subject: [PATCH 2/2] Remove ZSTD compressor
|
||||
|
||||
---
|
||||
.../compressors/CompressorStreamFactory.java | 14 ++------------
|
||||
.../compress/compressors/CompressorStreamFactory.java | 14 ++------------
|
||||
1 file changed, 2 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java
|
||||
@ -54,5 +54,5 @@ index ab178a9..3817704 100644
|
||||
} catch (final IOException e) {
|
||||
throw new CompressorException("Could not create CompressorOutputStream", e);
|
||||
--
|
||||
2.20.1
|
||||
2.14.3
|
||||
|
||||
|
@ -1,32 +0,0 @@
|
||||
From 4dd332d8f82d3a5f0ac6654d2c1733e44da6ddbd Mon Sep 17 00:00:00 2001
|
||||
From: Mat Booth <mat.booth@redhat.com>
|
||||
Date: Thu, 7 Feb 2019 14:57:25 +0000
|
||||
Subject: [PATCH 3/3] Avoid use of internal Mockito API
|
||||
|
||||
---
|
||||
.../compress/utils/FixedLengthBlockOutputStreamTest.java | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java b/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
||||
index cfda61b..e94ccee 100644
|
||||
--- a/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
||||
+++ b/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
||||
@@ -39,7 +39,6 @@ import java.nio.file.Path;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import org.hamcrest.core.IsInstanceOf;
|
||||
import org.junit.Test;
|
||||
-import org.mockito.internal.matchers.GreaterOrEqual;
|
||||
|
||||
public class FixedLengthBlockOutputStreamTest {
|
||||
|
||||
@@ -294,7 +293,6 @@ public class FixedLengthBlockOutputStreamTest {
|
||||
|
||||
private static void assertContainsAtOffset(String msg, byte[] expected, int offset,
|
||||
byte[] actual) {
|
||||
- assertThat(actual.length, new GreaterOrEqual<>(offset + expected.length));
|
||||
for (int i = 0; i < expected.length; i++) {
|
||||
assertEquals(String.format("%s ([%d])", msg, i), expected[i], actual[i + offset]);
|
||||
}
|
||||
--
|
||||
2.20.1
|
||||
|
@ -1,24 +1,27 @@
|
||||
Name: apache-commons-compress
|
||||
Version: 1.19
|
||||
Release: 2%{?dist}
|
||||
%global base_name compress
|
||||
%global short_name commons-%{base_name}
|
||||
|
||||
Name: apache-%{short_name}
|
||||
Version: 1.18
|
||||
Release: 1%{?dist}
|
||||
Summary: Java API for working with compressed files and archivers
|
||||
License: ASL 2.0
|
||||
URL: http://commons.apache.org/proper/commons-compress/
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: http://archive.apache.org/dist/commons/compress/source/commons-compress-%{version}-src.tar.gz
|
||||
Source0: http://archive.apache.org/dist/commons/compress/source/%{short_name}-%{version}-src.tar.gz
|
||||
|
||||
Patch0: 0001-Remove-Brotli-compressor.patch
|
||||
Patch1: 0002-Remove-ZSTD-compressor.patch
|
||||
Patch2: 0003-Avoid-use-of-internal-Mockito-API.patch
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.mockito:mockito-core)
|
||||
BuildRequires: mvn(org.osgi:org.osgi.core)
|
||||
BuildRequires: mvn(org.powermock:powermock-api-mockito)
|
||||
BuildRequires: mvn(org.powermock:powermock-module-junit4)
|
||||
BuildRequires: mvn(org.tukaani:xz)
|
||||
|
||||
%description
|
||||
@ -34,7 +37,7 @@ Summary: API documentation for %{name}
|
||||
This package provides %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n commons-compress-%{version}-src
|
||||
%setup -q -n %{short_name}-%{version}-src
|
||||
|
||||
# Unavailable Google Brotli library (org.brotli.dec)
|
||||
%patch0 -p1
|
||||
@ -47,9 +50,6 @@ rm -r src/{main,test}/java/org/apache/commons/compress/compressors/brotli
|
||||
rm -r src/{main,test}/java/org/apache/commons/compress/compressors/zstandard
|
||||
rm src/test/java/org/apache/commons/compress/compressors/DetectCompressorTestCase.java
|
||||
|
||||
# Avoid using internal Mockito APIs
|
||||
%patch2 -p1
|
||||
|
||||
# remove osgi tests, we don't have deps for them
|
||||
%pom_remove_dep org.ops4j.pax.exam:::test
|
||||
%pom_remove_dep :org.apache.felix.framework::test
|
||||
@ -57,18 +57,11 @@ rm src/test/java/org/apache/commons/compress/compressors/DetectCompressorTestCas
|
||||
%pom_remove_dep :slf4j-api::test
|
||||
rm src/test/java/org/apache/commons/compress/OsgiITest.java
|
||||
|
||||
# Remove test that requires powermock
|
||||
%pom_remove_dep org.powermock:
|
||||
%pom_add_dep org.mockito:mockito-core::test
|
||||
rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
|
||||
|
||||
%build
|
||||
%mvn_file : commons-compress %{name}
|
||||
%mvn_file : %{short_name} %{name}
|
||||
%mvn_alias : commons:
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
export LC_ALL=en_US.UTF-8
|
||||
%endif
|
||||
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.compress
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
@ -80,27 +73,6 @@ export LC_ALL=en_US.UTF-8
|
||||
%doc LICENSE.txt NOTICE.txt
|
||||
|
||||
%changelog
|
||||
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.19-2
|
||||
- Mass rebuild for javapackages-tools 201902
|
||||
|
||||
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 1.19-1
|
||||
- Update to upstream version 1.19
|
||||
|
||||
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.18-6
|
||||
- Mass rebuild for javapackages-tools 201901
|
||||
|
||||
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.18-5
|
||||
- Remove build-dependency on powermock
|
||||
|
||||
* Thu Feb 14 2019 Mat Booth <mat.booth@redhat.com> - 1.18-4
|
||||
- Rebuild to regenerate OSGi metadata
|
||||
|
||||
* Thu Feb 07 2019 Mat Booth <mat.booth@redhat.com> - 1.18-3
|
||||
- Fix test suite build against Mockito 2.x
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Oct 05 2018 Marian Koncek <mkoncek@redhat.com> - 1.18-1
|
||||
- Update to upstream version 1.18
|
||||
- Resolves: CVE-2018-11771
|
||||
|
Loading…
Reference in New Issue
Block a user