a5e00f
Name:           apache-commons-compress
a5e00f
Version:        1.19
a5e00f
Release:        2%{?dist}
a5e00f
Summary:        Java API for working with compressed files and archivers
a5e00f
License:        ASL 2.0
a5e00f
URL:            http://commons.apache.org/proper/commons-compress/
a5e00f
BuildArch:      noarch
a5e00f
a5e00f
Source0:        http://archive.apache.org/dist/commons/compress/source/commons-compress-%{version}-src.tar.gz
a5e00f
a5e00f
Patch0:         0001-Remove-Brotli-compressor.patch
a5e00f
Patch1:         0002-Remove-ZSTD-compressor.patch
a5e00f
Patch2:         0003-Avoid-use-of-internal-Mockito-API.patch
a5e00f
a5e00f
BuildRequires:  maven-local
a5e00f
BuildRequires:  mvn(junit:junit)
a5e00f
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
a5e00f
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
a5e00f
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
a5e00f
BuildRequires:  mvn(org.mockito:mockito-core)
a5e00f
BuildRequires:  mvn(org.osgi:org.osgi.core)
a5e00f
BuildRequires:  mvn(org.tukaani:xz)
a5e00f
a5e00f
%description
a5e00f
The Apache Commons Compress library defines an API for working with
a5e00f
ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 files.
a5e00f
In version 1.14 read-only support for Brotli decompression has been added,
a5e00f
but it has been removed form this package.
a5e00f
a5e00f
%package javadoc
a5e00f
Summary:        API documentation for %{name}
a5e00f
a5e00f
%description javadoc
a5e00f
This package provides %{summary}.
a5e00f
a5e00f
%prep
a5e00f
%setup -q -n commons-compress-%{version}-src
a5e00f
a5e00f
# Unavailable Google Brotli library (org.brotli.dec)
a5e00f
%patch0 -p1
a5e00f
%pom_remove_dep org.brotli:dec
a5e00f
rm -r src/{main,test}/java/org/apache/commons/compress/compressors/brotli
a5e00f
a5e00f
# Unavailable ZSTD JNI library
a5e00f
%patch1 -p1
a5e00f
%pom_remove_dep :zstd-jni
a5e00f
rm -r src/{main,test}/java/org/apache/commons/compress/compressors/zstandard
a5e00f
rm src/test/java/org/apache/commons/compress/compressors/DetectCompressorTestCase.java
a5e00f
a5e00f
# Avoid using internal Mockito APIs
a5e00f
%patch2 -p1
a5e00f
a5e00f
# remove osgi tests, we don't have deps for them
a5e00f
%pom_remove_dep org.ops4j.pax.exam:::test
a5e00f
%pom_remove_dep :org.apache.felix.framework::test
a5e00f
%pom_remove_dep :javax.inject::test
a5e00f
%pom_remove_dep :slf4j-api::test
a5e00f
rm src/test/java/org/apache/commons/compress/OsgiITest.java
a5e00f
a5e00f
# Remove test that requires powermock
a5e00f
%pom_remove_dep org.powermock:
a5e00f
%pom_add_dep org.mockito:mockito-core::test
a5e00f
rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
a5e00f
a5e00f
%build
a5e00f
%mvn_file  : commons-compress %{name}
a5e00f
%mvn_alias : commons:
a5e00f
%if 0%{?rhel} && 0%{?rhel} <= 7
a5e00f
export LC_ALL=en_US.UTF-8
a5e00f
%endif
a5e00f
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.compress
a5e00f
a5e00f
%install
a5e00f
%mvn_install
a5e00f
a5e00f
%files -f .mfiles
a5e00f
%doc LICENSE.txt NOTICE.txt
a5e00f
a5e00f
%files javadoc -f .mfiles-javadoc
a5e00f
%doc LICENSE.txt NOTICE.txt
a5e00f
a5e00f
%changelog
a5e00f
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.19-2
a5e00f
- Mass rebuild for javapackages-tools 201902
a5e00f
a5e00f
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 1.19-1
a5e00f
- Update to upstream version 1.19
a5e00f
a5e00f
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.18-6
a5e00f
- Mass rebuild for javapackages-tools 201901
a5e00f
a5e00f
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.18-5
a5e00f
- Remove build-dependency on powermock
a5e00f
a5e00f
* Thu Feb 14 2019 Mat Booth <mat.booth@redhat.com> - 1.18-4
a5e00f
- Rebuild to regenerate OSGi metadata
a5e00f
a5e00f
* Thu Feb 07 2019 Mat Booth <mat.booth@redhat.com> - 1.18-3
a5e00f
- Fix test suite build against Mockito 2.x
a5e00f
a5e00f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a5e00f
a5e00f
* Fri Oct 05 2018 Marian Koncek <mkoncek@redhat.com> - 1.18-1
a5e00f
- Update to upstream version 1.18
a5e00f
- Resolves: CVE-2018-11771
a5e00f
a5e00f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a5e00f
a5e00f
* Tue Jun 05 2018 Michael Simacek <msimacek@redhat.com> - 1.17-1
a5e00f
- Update to upstream version 1.17
a5e00f
a5e00f
* Mon Feb 12 2018 Michael Simacek <msimacek@redhat.com> - 1.16.1-1
a5e00f
- Update to upstream version 1.16.1
a5e00f
a5e00f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a5e00f
a5e00f
* Sun Oct 22 2017 Michael Simacek <msimacek@redhat.com> - 1.15-1
a5e00f
- Update to upstream version 1.15
a5e00f
a5e00f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a5e00f
a5e00f
* Wed Jun 14 2017 Roman Vais <rvais@redhat.com> - 1.14-1
a5e00f
- Update to upstream version 1.14
a5e00f
- Remove Brotli support, it is not packaged for fedora 
a5e00f
a5e00f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a5e00f
a5e00f
* Mon Jan 02 2017 Michael Simacek <msimacek@redhat.com> - 1.13-1
a5e00f
- Update to upstream version 1.13
a5e00f
a5e00f
* Wed Jun 22 2016 Michael Simacek <msimacek@redhat.com> - 1.12-1
a5e00f
- Update to upstream version 1.12
a5e00f
a5e00f
* Mon May 02 2016 Michael Simacek <msimacek@redhat.com> - 1.11-1
a5e00f
- Update to upstream version 1.11
a5e00f
a5e00f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-0.3.svn1684406
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a5e00f
a5e00f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-0.2.svn1684406
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a5e00f
a5e00f
* Tue Jun  9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10-0.1.svn1684406
a5e00f
- Update to latest upstream snapshot
a5e00f
a5e00f
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-2
a5e00f
- Remove legacy Obsoletes/Provides for jakarta-commons
a5e00f
a5e00f
* Mon Oct 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-1
a5e00f
- Update to upstream version 1.9
a5e00f
a5e00f
* Wed Jul 30 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.1-3
a5e00f
- Fix build-requires on apache-commons-parent
a5e00f
a5e00f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a5e00f
a5e00f
* Fri May 23 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8.1-1
a5e00f
- Update to upstream version 1.8.1
a5e00f
a5e00f
* Mon Mar 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8-2
a5e00f
- Remove dependency on maven-scm-publish-plugin
a5e00f
a5e00f
* Fri Mar 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.8-1
a5e00f
- Update to upstream version 1.8
a5e00f
a5e00f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-2
a5e00f
- Use Requires: java-headless rebuild (#1067528)
a5e00f
a5e00f
* Mon Jan 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-1
a5e00f
- Update to upstream version 1.7
a5e00f
a5e00f
* Tue Oct 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-1
a5e00f
- Update to upstream version 1.6
a5e00f
a5e00f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a5e00f
a5e00f
* Thu Mar 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-1
a5e00f
- Update to upstream version 1.5
a5e00f
a5e00f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-6
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a5e00f
a5e00f
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4.1-5
a5e00f
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
a5e00f
- Replace maven BuildRequires with maven-local
a5e00f
a5e00f
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.1-4
a5e00f
- Bump release tag
a5e00f
a5e00f
* Tue Jan  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.1-3
a5e00f
- Build with xmvn
a5e00f
- Update to current packaging guidelines
a5e00f
a5e00f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a5e00f
a5e00f
* Thu May 24 2012 Sandro Mathys <red at fedoraproject.org> - 1.4.1-1
a5e00f
- Updated to 1.4.1
a5e00f
- Fixes CVE-2012-2098 Low: Denial of Service
a5e00f
a5e00f
* Fri Apr 27 2012 Sandro Mathys <red at fedoraproject.org> - 1.4-1
a5e00f
- Updated to 1.4
a5e00f
a5e00f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a5e00f
a5e00f
* Tue Nov 01 2011 Sandro Mathys <red at fedoraproject.org> - 1.3-1
a5e00f
- Updated to 1.3
a5e00f
a5e00f
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-2
a5e00f
- Fixing mistake where different versions of the spec file got mixed up
a5e00f
a5e00f
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-1
a5e00f
- Updated to 1.2
a5e00f
a5e00f
* Sat Apr 16 2011 Chris Spike <spike@fedoraproject.org> 1.1-1
a5e00f
- Updated to 1.1
a5e00f
- Adapted to current java packaging guidelines
a5e00f
a5e00f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
a5e00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a5e00f
a5e00f
* Sun Jul 11 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-8
a5e00f
- Fixed the Maven depmap line by replacing org.apache.maven by org.apache.commons
a5e00f
a5e00f
* Mon May 31 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-7
a5e00f
- Fixed regression with missing Provides/Obsoletes for javadocs
a5e00f
- Fixed changelog format
a5e00f
a5e00f
* Sun May 23 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-6
a5e00f
- Fixed Maven depmap to use commons-compress
a5e00f
a5e00f
* Thu May 13 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-5
a5e00f
- Added missing Provides/Obsoletes for javadocs 
a5e00f
a5e00f
* Mon May 10 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-4
a5e00f
- Cleared some problems after the review
a5e00f
a5e00f
* Thu May 06 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-3
a5e00f
- Now using maven2 (mvn-jpp) instead of directly calling javac & co
a5e00f
a5e00f
* Tue May 04 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-2
a5e00f
- Renamed from jakarta-commons-compress