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