9cc4e0
%global base_name       compress
9cc4e0
%global short_name      commons-%{base_name}
9cc4e0
9cc4e0
Name:           apache-%{short_name}
9cc4e0
Version:        1.5
9cc4e0
Release:        4%{?dist}
9cc4e0
Summary:        Java API for working with compressed files and archivers
9cc4e0
Group:          Development/Libraries
9cc4e0
License:        ASL 2.0
9cc4e0
URL:            http://commons.apache.org/%{base_name}/
9cc4e0
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
9cc4e0
BuildArch:      noarch
9cc4e0
9cc4e0
BuildRequires:  maven-local
9cc4e0
BuildRequires:  javapackages-tools >= 0.10.0
9cc4e0
BuildRequires:  apache-commons-parent >= 26-7
9cc4e0
BuildRequires:  maven-surefire-provider-junit
9cc4e0
BuildRequires:  xz-java
9cc4e0
9cc4e0
Provides:       jakarta-%{short_name} = %{version}-%{release}
9cc4e0
Obsoletes:      jakarta-%{short_name} < 1.0-2
9cc4e0
9cc4e0
%description
9cc4e0
The Apache Commons Compress library defines an API for working with
9cc4e0
ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 files.
9cc4e0
9cc4e0
9cc4e0
%package javadoc
9cc4e0
Summary:        API documentation for %{name}
9cc4e0
Group:          Documentation
9cc4e0
Provides:       jakarta-%{short_name}-javadoc = %{version}-%{release}
9cc4e0
Obsoletes:      jakarta-%{short_name}-javadoc < 1.0-2
9cc4e0
9cc4e0
%description javadoc
9cc4e0
This package provides %{summary}.
9cc4e0
9cc4e0
%prep
9cc4e0
%setup -q -n %{short_name}-%{version}-src
9cc4e0
9cc4e0
%build
9cc4e0
%mvn_file  : %{short_name} %{name}
9cc4e0
%mvn_alias : commons:
9cc4e0
%mvn_build
9cc4e0
9cc4e0
%install
9cc4e0
%mvn_install
9cc4e0
9cc4e0
%files -f .mfiles
9cc4e0
%doc LICENSE.txt NOTICE.txt
9cc4e0
9cc4e0
%files javadoc -f .mfiles-javadoc
9cc4e0
%doc LICENSE.txt NOTICE.txt
9cc4e0
9cc4e0
9cc4e0
%changelog
9cc4e0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5-4
9cc4e0
- Mass rebuild 2013-12-27
9cc4e0
9cc4e0
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-3
9cc4e0
- Add BuildRequires on apache-commons-parent >= 26-7
9cc4e0
9cc4e0
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-2
9cc4e0
- Rebuild to regenerate API documentation
9cc4e0
- Resolves: CVE-2013-1571
9cc4e0
9cc4e0
* Thu Mar 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-1
9cc4e0
- Update to upstream version 1.5
9cc4e0
9cc4e0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-6
9cc4e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9cc4e0
9cc4e0
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4.1-5
9cc4e0
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
9cc4e0
- Replace maven BuildRequires with maven-local
9cc4e0
9cc4e0
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.1-4
9cc4e0
- Bump release tag
9cc4e0
9cc4e0
* Tue Jan  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4.1-3
9cc4e0
- Build with xmvn
9cc4e0
- Update to current packaging guidelines
9cc4e0
9cc4e0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
9cc4e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9cc4e0
9cc4e0
* Thu May 24 2012 Sandro Mathys <red at fedoraproject.org> - 1.4.1-1
9cc4e0
- Updated to 1.4.1
9cc4e0
- Fixes CVE-2012-2098 Low: Denial of Service
9cc4e0
9cc4e0
* Fri Apr 27 2012 Sandro Mathys <red at fedoraproject.org> - 1.4-1
9cc4e0
- Updated to 1.4
9cc4e0
9cc4e0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
9cc4e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9cc4e0
9cc4e0
* Tue Nov 01 2011 Sandro Mathys <red at fedoraproject.org> - 1.3-1
9cc4e0
- Updated to 1.3
9cc4e0
9cc4e0
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-2
9cc4e0
- Fixing mistake where different versions of the spec file got mixed up
9cc4e0
9cc4e0
* Thu Aug 04 2011 Sandro Mathys <red at fedoraproject.org> - 1.2-1
9cc4e0
- Updated to 1.2
9cc4e0
9cc4e0
* Sat Apr 16 2011 Chris Spike <spike@fedoraproject.org> 1.1-1
9cc4e0
- Updated to 1.1
9cc4e0
- Adapted to current java packaging guidelines
9cc4e0
9cc4e0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
9cc4e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9cc4e0
9cc4e0
* Sun Jul 11 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-8
9cc4e0
- Fixed the Maven depmap line by replacing org.apache.maven by org.apache.commons
9cc4e0
9cc4e0
* Mon May 31 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-7
9cc4e0
- Fixed regression with missing Provides/Obsoletes for javadocs
9cc4e0
- Fixed changelog format
9cc4e0
9cc4e0
* Sun May 23 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-6
9cc4e0
- Fixed Maven depmap to use commons-compress
9cc4e0
9cc4e0
* Thu May 13 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-5
9cc4e0
- Added missing Provides/Obsoletes for javadocs 
9cc4e0
9cc4e0
* Mon May 10 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-4
9cc4e0
- Cleared some problems after the review
9cc4e0
9cc4e0
* Thu May 06 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-3
9cc4e0
- Now using maven2 (mvn-jpp) instead of directly calling javac & co
9cc4e0
9cc4e0
* Tue May 04 2010 Sandro Mathys <red at fedoraproject.org> - 1.0-2
9cc4e0
- Renamed from jakarta-commons-compress