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