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