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