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