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