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