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