%global base_name collections %global short_name commons-%{base_name} Name: apache-%{short_name} Version: 3.2.2 Release: %mkrel 7 Summary: Provides new interfaces, implementations and utilities for Java Collections License: ASL 2.0 Group: Development/Java URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Patch0: 0001-Port-to-Java-8.patch BuildArch: noarch BuildRequires: ant BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) %description The introduction of the Collections API by Sun in JDK 1.2 has been a boon to quick and effective Java programming. Ready access to powerful data structures has accelerated development by reducing the need for custom container classes around each core object. Most Java2 APIs are significantly easier to use because of the Collections API. However, there are certain holes left unfilled by Sun's implementations, and the Jakarta-Commons Collections Component strives to fulfill them. Among the features of this package are: - special-purpose implementations of Lists and Maps for fast access - adapter classes from Java1-style containers (arrays, enumerations) to Java2-style collections. - methods to test or create typical set-theory properties of collections such as union, intersection, and closure. %package testframework Summary: Testframework for %{name} Requires: %{name} = %{version}-%{release} %description testframework %{summary}. %package javadoc Summary: Javadoc for %{name} Provides: %{name}-testframework-javadoc = %{version}-%{release} Obsoletes: %{name}-testframework-javadoc < %{version}-%{release} %description javadoc %{summary}. %prep %setup -q -n %{short_name}-%{version}-src # remove all binary libs find . -name "*.jar" -exec rm -f {} \; find . -name "*.class" -exec rm -f {} \; %patch0 -p1 # Fix file eof sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt %mvn_package :%{short_name}-testframework testframework %mvn_file ':%{short_name}{,-testframework}' %{name}@1 %{short_name}@1 %build %mvn_build -f %ant tf.javadoc -Dtf.build.docs=target/site/apidocs/ %mvn_artifact %{short_name}:%{short_name}-testframework:%{version} target/%{short_name}-testframework-%{version}.jar %install %mvn_install # Workaround for RPM bug #646523 - can't change symlink to directory %pretrans javadoc -p <lua> dir = "%{_javadocdir}/%{name}" dummy = posix.readlink(dir) and os.remove(dir) %files -f .mfiles %doc PROPOSAL.html README.txt LICENSE.txt NOTICE.txt %files testframework -f .mfiles-testframework %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Tue Sep 18 2018 umeabot <umeabot> 3.2.2-7.mga7 (not released yet) + Revision: 1259671 - Mageia 7 Mass Rebuild * Wed May 17 2017 neoclust <neoclust> 3.2.2-6.mga6 + Revision: 1102455 - Fix BuildRequires * Fri Apr 29 2016 daviddavid <daviddavid> 3.2.2-5.mga6 + Revision: 1007668 - Add workaround for symlink->directory rpm bug * Wed Mar 02 2016 neoclust <neoclust> 3.2.2-4.mga6 + Revision: 982116 - Second rebuild of the java stack * Sun Feb 21 2016 neoclust <neoclust> 3.2.2-3.mga6 + Revision: 975474 - First rebuild of the java stack + umeabot <umeabot> - Mageia 6 Mass Rebuild * Wed Nov 25 2015 daviddavid <daviddavid> 3.2.2-1.mga6 + Revision: 906047 - sync with fc24 (update to 3.2.2) - fixes new deserialization security (mga#17227) * Sat Dec 27 2014 pterjan <pterjan> 3.2.1-24.mga5 + Revision: 806411 - Clean rebuild - Sync with Fedora + dmorgan <dmorgan> - Restore from Obsolete - Fix Requires into java-headless + sander85 <sander85> - Depends on broken java stack + umeabot <umeabot> - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild * Sat Jan 11 2014 dmorgan <dmorgan> 3.2.1-17.mga4 + Revision: 566209 - Disable tests * Tue Oct 22 2013 umeabot <umeabot> 3.2.1-16.mga4 + Revision: 545586 - Mageia 4 Mass Rebuild * Wed Oct 16 2013 dmorgan <dmorgan> 3.2.1-15.mga4 + Revision: 501428 - Build with xmvn * Fri Jan 11 2013 umeabot <umeabot> 3.2.1-14.mga3 + Revision: 345654 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Jul 08 2012 dmorgan <dmorgan> 3.2.1-13.mga3 + Revision: 268867 - saxon dependency removed - not needed - minor spec file changes according to the latest guidelines * Wed Jul 20 2011 dmorgan <dmorgan> 3.2.1-12.mga2 + Revision: 127185 - Added *-testframework depmap entries. * Wed Apr 27 2011 dmorgan <dmorgan> 3.2.1-11.mga1 + Revision: 92225 - Rebuild after bootstrapping - imported package apache-commons-collections * Wed Mar 16 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-10 - Drop tomcat5 subpackage. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Nov 8 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-8 - Add commons-collections:commons-collections depmap. * Mon Oct 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2.1-7 - Fix pom name. - Use newer maven plugins names. * Tue Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-6 - Change package to own files in directories, not the directories * Mon Aug 30 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-5 - Remove source and patches no longer needed for Maven - Fix non-standard groups and remove empty sections - Fix file permissions * Sat Aug 28 2010 Carl Green <carlgreen at gmail.com> - 3.2.1-4 - Renamed from jakarta-commons-collections - Updated to use maven2 - Replaced saxon:group instruction with xsl:for-each-group in pom-maven2jpp-newdepmap.xsl