|
|
1b1fb9 |
%global pkg_name apache-commons-collections
|
|
|
1b1fb9 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
1b1fb9 |
%{?java_common_find_provides_and_requires}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%global base_name collections
|
|
|
1b1fb9 |
%global short_name commons-%{base_name}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
1b1fb9 |
Version: 3.2.1
|
|
|
1c6248 |
Release: 21.13%{?dist}
|
|
|
1b1fb9 |
Summary: Provides new interfaces, implementations and utilities for Java Collections
|
|
|
1b1fb9 |
License: ASL 2.0
|
|
|
1b1fb9 |
URL: http://commons.apache.org/%{base_name}/
|
|
|
1b1fb9 |
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
Patch0: jakarta-%{short_name}-javadoc-nonet.patch
|
|
|
1b1fb9 |
Patch4: commons-collections-3.2-build_xml.patch
|
|
|
1c6248 |
Patch5: CVE-2015-7501.patch
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
BuildArch: noarch
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix}javapackages-tools
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix}maven-local
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-antrun-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-assembly-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-compiler-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-jar-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-javadoc-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-install-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-resources-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-doxia-sitetools
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-surefire-plugin
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix}ant
|
|
|
1b1fb9 |
BuildRequires: %{?scl_prefix_maven}apache-commons-parent >= 26-7
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%description
|
|
|
1b1fb9 |
The introduction of the Collections API by Sun in JDK 1.2 has been a
|
|
|
1b1fb9 |
boon to quick and effective Java programming. Ready access to powerful
|
|
|
1b1fb9 |
data structures has accelerated development by reducing the need for
|
|
|
1b1fb9 |
custom container classes around each core object. Most Java2 APIs are
|
|
|
1b1fb9 |
significantly easier to use because of the Collections API.
|
|
|
1b1fb9 |
However, there are certain holes left unfilled by Sun's
|
|
|
1b1fb9 |
implementations, and the Jakarta-Commons Collections Component strives
|
|
|
1b1fb9 |
to fulfill them. Among the features of this package are:
|
|
|
1b1fb9 |
- special-purpose implementations of Lists and Maps for fast access
|
|
|
1b1fb9 |
- adapter classes from Java1-style containers (arrays, enumerations) to
|
|
|
1b1fb9 |
Java2-style collections.
|
|
|
1b1fb9 |
- methods to test or create typical set-theory properties of collections
|
|
|
1b1fb9 |
such as union, intersection, and closure.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%package testframework
|
|
|
1b1fb9 |
Summary: Testframework for %{pkg_name}
|
|
|
1b1fb9 |
Requires: %{name} = %{version}-%{release}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%description testframework
|
|
|
1b1fb9 |
%{summary}.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%package javadoc
|
|
|
1b1fb9 |
Summary: Javadoc for %{pkg_name}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%description javadoc
|
|
|
1b1fb9 |
%{summary}.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%package testframework-javadoc
|
|
|
1b1fb9 |
Summary: Javadoc for %{pkg_name}-testframework
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%description testframework-javadoc
|
|
|
1b1fb9 |
%{summary}.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%prep
|
|
|
1b1fb9 |
%setup -q -n %{short_name}-%{version}-src
|
|
|
1b1fb9 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
1b1fb9 |
set -e -x
|
|
|
1b1fb9 |
# remove all binary libs
|
|
|
1b1fb9 |
find . -name "*.jar" -exec rm -f {} \;
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%patch0 -p1
|
|
|
1b1fb9 |
%patch4 -b .sav
|
|
|
1c6248 |
%patch5 -p1
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
# Fix file eof
|
|
|
1b1fb9 |
%{__sed} -i 's/\r//' LICENSE.txt
|
|
|
1b1fb9 |
%{__sed} -i 's/\r//' PROPOSAL.html
|
|
|
1b1fb9 |
%{__sed} -i 's/\r//' RELEASE-NOTES.html
|
|
|
1b1fb9 |
%{__sed} -i 's/\r//' README.txt
|
|
|
1b1fb9 |
%{__sed} -i 's/\r//' NOTICE.txt
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%mvn_file : %{pkg_name} %{short_name}
|
|
|
1b1fb9 |
%mvn_alias : "org.apache.commons:%{short_name}"
|
|
|
1b1fb9 |
%{?scl:EOF}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%build
|
|
|
1b1fb9 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
1b1fb9 |
set -e -x
|
|
|
1b1fb9 |
%mvn_build
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
ant tf.javadoc
|
|
|
1b1fb9 |
%{?scl:EOF}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%install
|
|
|
1b1fb9 |
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
|
|
|
1b1fb9 |
set -e -x
|
|
|
1b1fb9 |
%mvn_install
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
# this JAR doesn't have POM file
|
|
|
1b1fb9 |
install -Dm 644 target/%{short_name}-testframework-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}-testframework.jar
|
|
|
1b1fb9 |
ln -s %{pkg_name}-testframework.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}-testframework.jar
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
# testframework-javadoc
|
|
|
1b1fb9 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
|
|
|
1b1fb9 |
cp -pr build/docs/testframework/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-testframework
|
|
|
1b1fb9 |
%{?scl:EOF}
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%files -f .mfiles
|
|
|
1b1fb9 |
%doc PROPOSAL.html README.txt LICENSE.txt RELEASE-NOTES.html NOTICE.txt
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%files testframework
|
|
|
1b1fb9 |
%{_javadir}/%{pkg_name}-testframework.jar
|
|
|
1b1fb9 |
%{_javadir}/%{short_name}-testframework.jar
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%files javadoc -f .mfiles-javadoc
|
|
|
1b1fb9 |
%doc LICENSE.txt NOTICE.txt
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%files testframework-javadoc
|
|
|
1b1fb9 |
%{_javadocdir}/%{name}-testframework
|
|
|
1b1fb9 |
%doc LICENSE.txt NOTICE.txt
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
%changelog
|
|
|
1c6248 |
* Fri Nov 20 2015 Michal Srb <msrb@redhat.com> - 3.2.1-21.13
|
|
|
1c6248 |
- Fix Java object de-serialization vulnerability
|
|
|
1c6248 |
- Resolves: CVE-2015-7501
|
|
|
1c6248 |
|
|
|
1b1fb9 |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 3.2.1-21.12
|
|
|
1b1fb9 |
- Mass rebuild 2015-01-13
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 3.2.1-21.11
|
|
|
1b1fb9 |
- Mass rebuild 2015-01-09
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.10
|
|
|
1b1fb9 |
- Migrate requires and build-requires to rh-java-common
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.9
|
|
|
1b1fb9 |
- Mass rebuild 2014-12-15
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.8
|
|
|
1b1fb9 |
- Rebuild for rh-java-common collection
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.7
|
|
|
1b1fb9 |
- Mass rebuild 2014-05-26
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.6
|
|
|
1b1fb9 |
- Mass rebuild 2014-02-19
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.5
|
|
|
1b1fb9 |
- Mass rebuild 2014-02-18
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.4
|
|
|
1b1fb9 |
- Remove requires on java
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.3
|
|
|
1b1fb9 |
- SCL-ize build-requires
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.2
|
|
|
1b1fb9 |
- Rebuild to regenerate auto-requires
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-21.1
|
|
|
1b1fb9 |
- First maven30 software collection build
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.2.1-21
|
|
|
1b1fb9 |
- Mass rebuild 2013-12-27
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-20
|
|
|
1b1fb9 |
- Add BuildRequires on apache-commons-parent >= 26-7
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Aug 26 2013 Michal Srb <msrb@redhat.com> - 3.2.1-19
|
|
|
1b1fb9 |
- Migrate away from mvn-rpmbuild (Resolves: #997509)
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-18
|
|
|
1b1fb9 |
- Rebuild to regenerate API documentation
|
|
|
1b1fb9 |
- Resolves: CVE-2013-1571
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-17
|
|
|
1b1fb9 |
- Remove unneeded BR: maven-idea-plugin
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-16
|
|
|
1b1fb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.2.1-15
|
|
|
1b1fb9 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
1b1fb9 |
- Replace maven BuildRequires with maven-local
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-14
|
|
|
1b1fb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Feb 08 2012 Jaromir Capik <jcapik@redhat.com> 3.2.1-13
|
|
|
1b1fb9 |
- saxon dependency removed - not needed
|
|
|
1b1fb9 |
- minor spec file changes according to the latest guidelines
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-12
|
|
|
1b1fb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Jun 6 2011 Chris Spike <spike@fedoraproject.org> 3.2.1-11
|
|
|
1b1fb9 |
- Added *-testframework depmap entries.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10
|
|
|
1b1fb9 |
- Drop tomcat5 subpackage.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9
|
|
|
1b1fb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Nov 8 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-8
|
|
|
1b1fb9 |
- Add commons-collections:commons-collections depmap.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Oct 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-7
|
|
|
1b1fb9 |
- Fix pom name.
|
|
|
1b1fb9 |
- Use newer maven plugins names.
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Tue Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-6
|
|
|
1b1fb9 |
- Change package to own files in directories, not the directories
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Mon Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-5
|
|
|
1b1fb9 |
- Remove source and patches no longer needed for Maven
|
|
|
1b1fb9 |
- Fix non-standard groups and remove empty sections
|
|
|
1b1fb9 |
- Fix file permissions
|
|
|
1b1fb9 |
|
|
|
1b1fb9 |
* Sat Aug 28 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-4
|
|
|
1b1fb9 |
- Renamed from jakarta-commons-collections
|
|
|
1b1fb9 |
- Updated to use maven2
|
|
|
1b1fb9 |
- Replaced saxon:group instruction with xsl:for-each-group in pom-maven2jpp-newdepmap.xsl
|