d902ac
Name:           apache-commons-collections
d902ac
Version:        3.2.2
d902ac
Release:        13%{?dist}
d902ac
Summary:        Provides new interfaces, implementations and utilities for Java Collections
d902ac
License:        ASL 2.0
d902ac
URL:            http://commons.apache.org/collections/
d902ac
BuildArch:      noarch
d902ac
d902ac
Source0:        http://www.apache.org/dist/commons/collections/source/commons-collections-%{version}-src.tar.gz
d902ac
d902ac
Patch0:         0001-Port-to-Java-8.patch
d902ac
Patch1:         0002-Port-to-OpenJDK-11.patch
d902ac
d902ac
BuildRequires:  maven-local
d902ac
BuildRequires:  mvn(junit:junit)
d902ac
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
d902ac
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
d902ac
d902ac
%description
d902ac
The introduction of the Collections API by Sun in JDK 1.2 has been a
d902ac
boon to quick and effective Java programming. Ready access to powerful
d902ac
data structures has accelerated development by reducing the need for
d902ac
custom container classes around each core object. Most Java2 APIs are
d902ac
significantly easier to use because of the Collections API.
d902ac
However, there are certain holes left unfilled by Sun's
d902ac
implementations, and the Jakarta-Commons Collections Component strives
d902ac
to fulfill them. Among the features of this package are:
d902ac
- special-purpose implementations of Lists and Maps for fast access
d902ac
- adapter classes from Java1-style containers (arrays, enumerations) to
d902ac
Java2-style collections.
d902ac
- methods to test or create typical set-theory properties of collections
d902ac
such as union, intersection, and closure.
d902ac
d902ac
%package testframework
d902ac
Summary:        Testframework for %{name}
d902ac
Requires:       %{name} = %{version}-%{release}
d902ac
d902ac
%description testframework
d902ac
%{summary}.
d902ac
d902ac
%package javadoc
d902ac
Summary:        Javadoc for %{name}
d902ac
d902ac
%description javadoc
d902ac
%{summary}.
d902ac
d902ac
%prep
d902ac
%setup -q -n commons-collections-%{version}-src
d902ac
d902ac
# remove all binary libs
d902ac
find . -name "*.jar" -exec rm -f {} \;
d902ac
find . -name "*.class" -exec rm -f {} \;
d902ac
d902ac
%patch0 -p1
d902ac
%patch1 -p1
d902ac
d902ac
# Fix file eof
d902ac
sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt
d902ac
d902ac
%mvn_package :commons-collections-testframework testframework
d902ac
%mvn_file ':commons-collections{,-testframework}' %{name}@1 commons-collections@1
d902ac
d902ac
%build
d902ac
%mvn_build -- -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6
d902ac
d902ac
%install
d902ac
%mvn_artifact commons-collections:commons-collections-testframework:%{version} target/commons-collections-testframework-%{version}.jar
d902ac
%mvn_install
d902ac
d902ac
%files -f .mfiles
d902ac
%doc PROPOSAL.html README.txt
d902ac
%license LICENSE.txt NOTICE.txt
d902ac
d902ac
%files testframework -f .mfiles-testframework
d902ac
d902ac
%files javadoc -f .mfiles-javadoc
d902ac
%license LICENSE.txt NOTICE.txt
d902ac
d902ac
%changelog
d902ac
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-13
d902ac
- Mass rebuild for javapackages-tools 201902
d902ac
d902ac
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-12
d902ac
- Enable tests
d902ac
d902ac
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-11
d902ac
- Mass rebuild for javapackages-tools 201901
d902ac
d902ac
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-10
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d902ac
d902ac
* Thu Jul 12 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-9
d902ac
- Remove workaround for symlink->directory rpm bug
d902ac
d902ac
* Tue Apr 24 2018 Mat Booth <mat.booth@redhat.com> - 3.2.2-8
d902ac
- Allow testframework to still be built even with tests disabled, which is
d902ac
  needed by other packages
d902ac
d902ac
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-7
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d902ac
d902ac
* Mon Sep 18 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.2-6
d902ac
- Temporarly disable running tests
d902ac
d902ac
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-5
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d902ac
d902ac
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d902ac
d902ac
* Wed Mar 23 2016 Michael Simacek <msimacek@redhat.com> - 3.2.2-3
d902ac
- Add workaround for symlink->directory rpm bug
d902ac
d902ac
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-2
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d902ac
d902ac
* Mon Nov 16 2015 Michael Simacek <msimacek@redhat.com> - 3.2.2-1
d902ac
- Update to upstream version 3.2.2
d902ac
- Merge two javadoc subpackages
d902ac
- Install with XMVn
d902ac
- Specfile cleanup
d902ac
d902ac
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-26
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d902ac
d902ac
* Thu Oct 23 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-25
d902ac
- Remove requires on apache-commons-parent
d902ac
d902ac
* Fri Oct 17 2014 Timothy St. Clair <tstclair@redhat.com> - 3.2.1-24
d902ac
- Fix broken Java 8 build
d902ac
d902ac
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-23
d902ac
- Remove legacy Obsoletes/Provides for jakarta-commons
d902ac
d902ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-22
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d902ac
d902ac
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21
d902ac
- Use .mfiles generated during build
d902ac
d902ac
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2.1-20
d902ac
- Use Requires: java-headless rebuild (#1067528)
d902ac
d902ac
* Mon Aug 12 2013 Mat Booth <fedora@matbooth.co.uk> - 3.2.1-19
d902ac
- Fix FTBFS rhbz #991965
d902ac
d902ac
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-18
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d902ac
d902ac
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-17
d902ac
- Remove unneeded BR: maven-idea-plugin
d902ac
d902ac
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-16
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d902ac
d902ac
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2.1-15
d902ac
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
d902ac
- Replace maven BuildRequires with maven-local
d902ac
d902ac
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-14
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d902ac
d902ac
* Wed Feb 08 2012 Jaromir Capik <jcapik@redhat.com> 3.2.1-13
d902ac
- saxon dependency removed - not needed
d902ac
- minor spec file changes according to the latest guidelines
d902ac
d902ac
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-12
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d902ac
d902ac
* Mon Jun 6 2011 Chris Spike <spike@fedoraproject.org> 3.2.1-11
d902ac
- Added *-testframework depmap entries.
d902ac
d902ac
* Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10
d902ac
- Drop tomcat5 subpackage.
d902ac
d902ac
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
d902ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d902ac
d902ac
* Mon Nov 8 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-8
d902ac
- Add commons-collections:commons-collections depmap.
d902ac
d902ac
* Mon Oct 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-7
d902ac
- Fix pom name.
d902ac
- Use newer maven plugins names.
d902ac
d902ac
* Tue Aug 31 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-6
d902ac
- Change package to own files in directories, not the directories
d902ac
d902ac
* Mon Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-5
d902ac
- Remove source and patches no longer needed for Maven
d902ac
- Fix non-standard groups and remove empty sections
d902ac
- Fix file permissions
d902ac
d902ac
* Sat Aug 28 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-4
d902ac
- Renamed from jakarta-commons-collections
d902ac
- Updated to use maven2
d902ac
- Replaced saxon:group instruction with xsl:for-each-group in pom-maven2jpp-newdepmap.xsl