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