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