From a6bda3b8cb6f73f9200e2897e7f65c661c489f41 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 10:03:51 +0000 Subject: [PATCH 01/65] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- import.log | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 164b332..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: apache-commons-math -# $Id$ -NAME := apache-commons-math -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log deleted file mode 100644 index 2558a13..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -apache-commons-math-2_0-4_fc12:HEAD:apache-commons-math-2.0-4.fc12.src.rpm:1263293499 From 1aa36371fc71387757030e85438d1ebe8f1665de Mon Sep 17 00:00:00 2001 From: spike Date: Fri, 22 Oct 2010 04:01:45 +0200 Subject: [PATCH 02/65] Updated to 2.1 Removed dependency on main package for -javadoc subpackage Fixed maven depmap entry Added jarfile symlinks (rhbz#612455) Added javadoc symlinks Added license file to -javadoc subpackage --- .gitignore | 1 + apache-commons-math.spec | 110 +++++++++++++---------- commons-math-remove-clirr-from-pom.patch | 35 ++++++++ sources | 2 +- 4 files changed, 98 insertions(+), 50 deletions(-) create mode 100644 commons-math-remove-clirr-from-pom.patch diff --git a/.gitignore b/.gitignore index aafde05..68e9658 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ commons-math-2.0-src.tar.gz +/commons-math-2.1-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 92339dc..5dc40e4 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,39 +1,38 @@ %global base_name math %global short_name commons-%{base_name} -Name: apache-commons-math -Version: 2.0 -Release: 6%{?dist} -Summary: Java library of lightweight mathematics and statistics components +Name: apache-%{short_name} +Version: 2.1 +Release: 1%{?dist} +Summary: Java library of lightweight mathematics and statistics components -Group: Development/Libraries -License: ASL 1.1 and ASL 2.0 and BSD -URL: http://commons.apache.org/math/ -Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Group: Development/Libraries +License: ASL 1.1 and ASL 2.0 and BSD +URL: http://commons.apache.org/%{base_name}/ +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Patch0: %{short_name}-remove-clirr-from-pom.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -# Cannot build with gcj, gjdoc currently blocks this (bug similar to -# rhbz#510243) -BuildRequires: java-devel >= 1:1.6.0 -BuildRequires: jpackage-utils -BuildRequires: junit4 -BuildRequires: maven-doxia-sitetools -BuildRequires: maven-plugin-bundle -BuildRequires: maven-surefire-maven-plugin -BuildRequires: maven-surefire-provider-junit4 -BuildRequires: maven2-plugin-antrun -BuildRequires: maven2-plugin-assembly -BuildRequires: maven2-plugin-compiler -BuildRequires: maven2-plugin-idea -BuildRequires: maven2-plugin-install -BuildRequires: maven2-plugin-jar -BuildRequires: maven2-plugin-javadoc -BuildRequires: maven2-plugin-resources -Requires: java >= 1:1.6.0 -Requires: jpackage-utils -Requires(post): jpackage-utils -Requires(postun):jpackage-utils -BuildArch: noarch +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: jpackage-utils +BuildRequires: junit4 +BuildRequires: maven2 >= 2.2.1 +BuildRequires: maven-antrun-plugin +BuildRequires: maven-assembly-plugin +BuildRequires: maven-compiler-plugin +BuildRequires: maven-idea-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-plugin-bundle +BuildRequires: maven-resources-plugin +BuildRequires: maven-surefire-plugin +BuildRequires: maven-surefire-provider-junit4 +Requires: java >= 1:1.6.0 +Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils +BuildArch: noarch %description Commons Math is a library of lightweight, self-contained mathematics and @@ -42,10 +41,9 @@ Java programming language or Commons Lang. %package javadoc -Summary: Javadocs for %{name} -Group: Documentation -Requires: %{name} = %{version}-%{release} -Requires: jpackage-utils +Summary: Javadoc for %{name} +Group: Documentation +Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. @@ -53,6 +51,7 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src +%patch0 -p0 %build @@ -62,24 +61,28 @@ mvn-jpp \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ install javadoc:javadoc - %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -mkdir -p $RPM_BUILD_ROOT%{_javadir} -cp -p target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir} -ln -s %{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar +# jars +install -d -m 0755 %{buildroot}%{_javadir} +install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) -mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} -cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom +%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name} -mkdir -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms -cp -p pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom -%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name} +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version} +cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ +ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %post @@ -89,21 +92,30 @@ rm -rf $RPM_BUILD_ROOT %postun %update_maven_depmap - %files %defattr(-,root,root,-) %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt +%{_javadir}/* %{_mavenpomdir}/* -%{_javadir}/*.jar %{_mavendepmapfragdir}/* - %files javadoc %defattr(-,root,root,-) +%doc LICENSE.txt +%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} + %changelog +* Fri Oct 22 2010 Chris Spike 2.1-1 +- Updated to 2.1 +- Removed dependency on main package for -javadoc subpackage +- Fixed maven depmap entry +- Added jarfile symlinks (rhbz#612455) +- Added javadoc symlinks +- Added license file to -javadoc subpackage + * Wed Feb 3 2010 ELMORABITY Mohamed 2.0-6 - Add missing %%post/%%postun Requires - Use macro %%{_mavendepmapfragdir} instead of %%{_datadir}/maven2/pom diff --git a/commons-math-remove-clirr-from-pom.patch b/commons-math-remove-clirr-from-pom.patch new file mode 100644 index 0000000..adf545a --- /dev/null +++ b/commons-math-remove-clirr-from-pom.patch @@ -0,0 +1,35 @@ +--- pom.xml 2010-10-22 03:37:42.930470377 +0200 ++++ pom.xml 2010-10-22 03:38:07.199469768 +0200 +@@ -269,17 +269,6 @@ + + + +- +- org.codehaus.mojo +- clirr-maven-plugin +- 2.2.2 +- +- +- +- +- +- +- + + + +@@ -324,14 +313,6 @@ + ${basedir}/license-header.txt + + +- +- org.codehaus.mojo +- clirr-maven-plugin +- 2.2.2 +- +- info +- +- + + + diff --git a/sources b/sources index d967afc..d5004c5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0572a2e542c0e138328466ff2c8dafce commons-math-2.0-src.tar.gz +5e7f431d77e87888c79f74b0d5a603f0 commons-math-2.1-src.tar.gz From c52b9fbd32fdf031933df5a3d04070e214177ec6 Mon Sep 17 00:00:00 2001 From: spike Date: Fri, 22 Oct 2010 04:24:05 +0200 Subject: [PATCH 03/65] Fixed maven-surefire-plugin BR for F14 --- apache-commons-math.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 5dc40e4..b109fcc 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -26,7 +26,8 @@ BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-plugin-bundle BuildRequires: maven-resources-plugin -BuildRequires: maven-surefire-plugin +#Should be replaced by maven-surefire-plugin after f15 branch +BuildRequires: maven-surefire-maven-plugin BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 Requires: jpackage-utils @@ -108,6 +109,9 @@ rm -rf %{buildroot} %changelog +* Fri Oct 22 2010 Chris Spike 2.1-2 +- Fixed maven-surefire-plugin BR for F14 + * Fri Oct 22 2010 Chris Spike 2.1-1 - Updated to 2.1 - Removed dependency on main package for -javadoc subpackage From 8840285d082732a8925006762a567ad543cd6a7d Mon Sep 17 00:00:00 2001 From: mbooth Date: Wed, 29 Dec 2010 16:50:59 +0000 Subject: [PATCH 04/65] Drop versioned jars and javadocs, fixes F15 upgrade path. --- apache-commons-math.spec | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index b109fcc..16d1d0a 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -67,9 +67,8 @@ rm -rf %{buildroot} # jars install -d -m 0755 %{buildroot}%{_javadir} -install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar -(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) -(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +(cd %{buildroot}%{_javadir} && for jar in *; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) # pom install -d -m 755 %{buildroot}%{_mavenpomdir} @@ -77,9 +76,8 @@ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom %add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name} # javadoc -install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version} -cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ -ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ %clean @@ -93,6 +91,13 @@ rm -rf %{buildroot} %postun %update_maven_depmap + +%pre javadoc +# workaround for rpm bug, can be removed in F-17 +[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ +rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : + + %files %defattr(-,root,root,-) %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt @@ -103,12 +108,14 @@ rm -rf %{buildroot} %files javadoc %defattr(-,root,root,-) %doc LICENSE.txt -%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %changelog +* Wed Dec 29 2010 Mat Booth 2.1-3 +- Drop versioned jars and javadocs, fixes F15 upgrade path. + * Fri Oct 22 2010 Chris Spike 2.1-2 - Fixed maven-surefire-plugin BR for F14 From 401328157be79a8b08983010ae87dc3094e408d5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Mon, 7 Feb 2011 19:34:15 -0600 Subject: [PATCH 05/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 16d1d0a..c242f7e 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 2.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -113,6 +113,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %changelog +* Mon Feb 07 2011 Fedora Release Engineering - 2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Wed Dec 29 2010 Mat Booth 2.1-3 - Drop versioned jars and javadocs, fixes F15 upgrade path. From efafd5518625b8c979458f76009620696d439838 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Thu, 10 Mar 2011 15:52:34 +0100 Subject: [PATCH 06/65] Update to 2.2 --- .gitignore | 1 + ...mmons-math-2.2-remove_clirr_from_pom.patch | 19 ++++++++++--------- apache-commons-math.spec | 13 ++++++++----- sources | 2 +- 4 files changed, 20 insertions(+), 15 deletions(-) rename commons-math-remove-clirr-from-pom.patch => apache-commons-math-2.2-remove_clirr_from_pom.patch (63%) diff --git a/.gitignore b/.gitignore index 68e9658..f8e7695 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ commons-math-2.0-src.tar.gz /commons-math-2.1-src.tar.gz +/commons-math-2.2-src.tar.gz diff --git a/commons-math-remove-clirr-from-pom.patch b/apache-commons-math-2.2-remove_clirr_from_pom.patch similarity index 63% rename from commons-math-remove-clirr-from-pom.patch rename to apache-commons-math-2.2-remove_clirr_from_pom.patch index adf545a..357a5a0 100644 --- a/commons-math-remove-clirr-from-pom.patch +++ b/apache-commons-math-2.2-remove_clirr_from_pom.patch @@ -1,13 +1,14 @@ ---- pom.xml 2010-10-22 03:37:42.930470377 +0200 -+++ pom.xml 2010-10-22 03:38:07.199469768 +0200 -@@ -269,17 +269,6 @@ +diff -up commons-math-2.2-src/pom.xml.orig commons-math-2.2-src/pom.xml +--- commons-math-2.2-src/pom.xml.orig 2011-02-26 19:14:36.000000000 +0100 ++++ commons-math-2.2-src/pom.xml 2011-03-10 15:05:36.988244002 +0100 +@@ -280,17 +280,6 @@ - - org.codehaus.mojo - clirr-maven-plugin -- 2.2.2 +- 2.3 - - - @@ -16,18 +17,18 @@ - - - - -@@ -324,14 +313,6 @@ + + +@@ -350,14 +339,6 @@ ${basedir}/license-header.txt - - org.codehaus.mojo - clirr-maven-plugin -- 2.2.2 +- 2.2.3 - -- info +- ${minSeverity} - - diff --git a/apache-commons-math.spec b/apache-commons-math.spec index c242f7e..d152f3a 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,15 +2,15 @@ %global short_name commons-%{base_name} Name: apache-%{short_name} -Version: 2.1 -Release: 4%{?dist} +Version: 2.2 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -Patch0: %{short_name}-remove-clirr-from-pom.patch +Patch0: %{name}-2.2-remove_clirr_from_pom.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: java-devel >= 1:1.6.0 @@ -26,7 +26,7 @@ BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-plugin-bundle BuildRequires: maven-resources-plugin -#Should be replaced by maven-surefire-plugin after f15 branch +# Should be replaced by maven-surefire-plugin after f15 branch BuildRequires: maven-surefire-maven-plugin BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 @@ -52,7 +52,7 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p0 +%patch0 -p1 -b .remove_clirr_from_pom %build @@ -113,6 +113,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %changelog +* Thu Mar 10 2011 Mohamed El Morabity - 2.2-1 +- Update to 2.2 + * Mon Feb 07 2011 Fedora Release Engineering - 2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index d5004c5..610c9ba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5e7f431d77e87888c79f74b0d5a603f0 commons-math-2.1-src.tar.gz +6261d7991154c992477b32b8f3bea18b commons-math-2.2-src.tar.gz From cfa96745527e51cfab54540103a6d6204812c51b Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 15:36:20 -0600 Subject: [PATCH 07/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index d152f3a..4f85ec6 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -113,6 +113,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %changelog +* Thu Jan 12 2012 Fedora Release Engineering - 2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Thu Mar 10 2011 Mohamed El Morabity - 2.2-1 - Update to 2.2 From 8be1e55cdc72d7c05532c9bbd532d8d374e4522b Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Mon, 16 Jan 2012 21:32:39 +0100 Subject: [PATCH 08/65] - Add missing apache-rat-plugin dependency - Use Maven 3 - Spec cleanup --- apache-commons-math.spec | 69 ++++++++++++---------------------------- 1 file changed, 21 insertions(+), 48 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 4f85ec6..de67e88 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-%{short_name} Version: 2.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -11,28 +11,20 @@ License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Patch0: %{name}-2.2-remove_clirr_from_pom.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils -BuildRequires: junit4 -BuildRequires: maven2 >= 2.2.1 -BuildRequires: maven-antrun-plugin -BuildRequires: maven-assembly-plugin +BuildRequires: maven BuildRequires: maven-compiler-plugin -BuildRequires: maven-idea-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin -BuildRequires: maven-plugin-bundle +BuildRequires: maven-release-plugin BuildRequires: maven-resources-plugin -# Should be replaced by maven-surefire-plugin after f15 branch -BuildRequires: maven-surefire-maven-plugin +BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 Requires: jpackage-utils -Requires(post): jpackage-utils -Requires(postun): jpackage-utils BuildArch: noarch %description @@ -56,63 +48,44 @@ This package contains the API documentation for %{name}. %build -export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository -mkdir -p $MAVEN_REPO_LOCAL -mvn-jpp \ - -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ - install javadoc:javadoc +mvn-rpmbuild install javadoc:javadoc + %install -rm -rf %{buildroot} - # jars -install -d -m 0755 %{buildroot}%{_javadir} -install -pm 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar -(cd %{buildroot}%{_javadir} && for jar in *; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) +install -Dpm 0644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar +pushd $RPM_BUILD_ROOT%{_javadir}/ +ln -s %{name}.jar %{short_name}.jar +popd # pom -install -d -m 755 %{buildroot}%{_mavenpomdir} -install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom -%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name} +install -dm 0755 $RPM_BUILD_ROOT%{_mavenpomdir}/ +install -pm 0644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc -install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} -cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ - - -%clean -rm -rf %{buildroot} - - -%post -%update_maven_depmap - - -%postun -%update_maven_depmap - - -%pre javadoc -# workaround for rpm bug, can be removed in F-17 -[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ -rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : +install -dm 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %files -%defattr(-,root,root,-) %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* + %files javadoc -%defattr(-,root,root,-) %doc LICENSE.txt %{_javadocdir}/%{name} - %changelog +* Mon Jan 16 2012 Mohamed El Morabity - 2.2-3 +- Add missing apache-rat-plugin dependency +- Use Maven 3 +- Spec cleanup + * Thu Jan 12 2012 Fedora Release Engineering - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From 2ae73fed9590fc231e0cd2dff20679b124d384d9 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Thu, 22 Mar 2012 19:22:35 +0100 Subject: [PATCH 09/65] Update to 3.0 --- .gitignore | 1 + ...mmons-math-2.2-remove_clirr_from_pom.patch | 36 ------------------- apache-commons-math.spec | 27 +++++--------- sources | 2 +- 4 files changed, 10 insertions(+), 56 deletions(-) delete mode 100644 apache-commons-math-2.2-remove_clirr_from_pom.patch diff --git a/.gitignore b/.gitignore index f8e7695..103c59b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ commons-math-2.0-src.tar.gz /commons-math-2.1-src.tar.gz /commons-math-2.2-src.tar.gz +/commons-math3-3.0-src.tar.gz diff --git a/apache-commons-math-2.2-remove_clirr_from_pom.patch b/apache-commons-math-2.2-remove_clirr_from_pom.patch deleted file mode 100644 index 357a5a0..0000000 --- a/apache-commons-math-2.2-remove_clirr_from_pom.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -up commons-math-2.2-src/pom.xml.orig commons-math-2.2-src/pom.xml ---- commons-math-2.2-src/pom.xml.orig 2011-02-26 19:14:36.000000000 +0100 -+++ commons-math-2.2-src/pom.xml 2011-03-10 15:05:36.988244002 +0100 -@@ -280,17 +280,6 @@ - - - -- -- org.codehaus.mojo -- clirr-maven-plugin -- 2.3 -- -- -- -- -- -- -- - - - -@@ -350,14 +339,6 @@ - ${basedir}/license-header.txt - - -- -- org.codehaus.mojo -- clirr-maven-plugin -- 2.2.3 -- -- ${minSeverity} -- -- - - - diff --git a/apache-commons-math.spec b/apache-commons-math.spec index de67e88..5b0a5b1 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,27 +1,19 @@ %global base_name math -%global short_name commons-%{base_name} +%global short_name commons-%{base_name}3 -Name: apache-%{short_name} -Version: 2.2 -Release: 3%{?dist} +Name: apache-commons-math +Version: 3.0 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -Patch0: %{name}-2.2-remove_clirr_from_pom.patch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven -BuildRequires: maven-compiler-plugin -BuildRequires: maven-install-plugin -BuildRequires: maven-jar-plugin -BuildRequires: maven-javadoc-plugin -BuildRequires: maven-release-plugin -BuildRequires: maven-resources-plugin -BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 Requires: jpackage-utils @@ -44,7 +36,6 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p1 -b .remove_clirr_from_pom %build @@ -52,18 +43,13 @@ mvn-rpmbuild install javadoc:javadoc %install -# jars install -Dpm 0644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar -pushd $RPM_BUILD_ROOT%{_javadir}/ -ln -s %{name}.jar %{short_name}.jar -popd +ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar -# pom install -dm 0755 $RPM_BUILD_ROOT%{_mavenpomdir}/ install -pm 0644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar -# javadoc install -dm 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ @@ -81,6 +67,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Thu Mar 22 2012 Mohamed El Morabity - 3.0-1 +- Update to 3.0 + * Mon Jan 16 2012 Mohamed El Morabity - 2.2-3 - Add missing apache-rat-plugin dependency - Use Maven 3 diff --git a/sources b/sources index 610c9ba..3d1c927 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6261d7991154c992477b32b8f3bea18b commons-math-2.2-src.tar.gz +4fdbdc4427b15b2f930dee9240790552 commons-math3-3.0-src.tar.gz From 42f8c7fe775a5c17563b654aae15670436a39925 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 18 Jul 2012 11:17:25 -0500 Subject: [PATCH 10/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 5b0a5b1..befd3bb 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-commons-math Version: 3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -67,6 +67,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Wed Jul 18 2012 Fedora Release Engineering - 3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Thu Mar 22 2012 Mohamed El Morabity - 3.0-1 - Update to 3.0 From 153ebca925b887a84bc0d3fbe09897245a4759db Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Sun, 30 Dec 2012 02:51:15 +0100 Subject: [PATCH 11/65] Update to 3.1 --- .gitignore | 1 + apache-commons-math.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 103c59b..7331864 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ commons-math-2.0-src.tar.gz /commons-math-2.1-src.tar.gz /commons-math-2.2-src.tar.gz /commons-math3-3.0-src.tar.gz +/commons-math3-3.1-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index befd3bb..9f6e094 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,8 +2,8 @@ %global short_name commons-%{base_name}3 Name: apache-commons-math -Version: 3.0 -Release: 2%{?dist} +Version: 3.1 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -39,7 +39,7 @@ This package contains the API documentation for %{name}. %build -mvn-rpmbuild install javadoc:javadoc +mvn-rpmbuild install javadoc:aggregate %install @@ -67,6 +67,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Sun Dec 30 2012 Mohamed El Morabity - 3.1-1 +- Update to 3.1 + * Wed Jul 18 2012 Fedora Release Engineering - 3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index 3d1c927..c05b42b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4fdbdc4427b15b2f930dee9240790552 commons-math3-3.0-src.tar.gz +89600ffbe0b9882fc96fb59e99fff887 commons-math3-3.1-src.tar.gz From a328922919a557972ba4ec5a462051c8810f27e2 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Tue, 15 Jan 2013 15:22:02 +0100 Subject: [PATCH 12/65] Update to 3.1.1 --- .gitignore | 1 + apache-commons-math.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7331864..b20e0b2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ commons-math-2.0-src.tar.gz /commons-math-2.2-src.tar.gz /commons-math3-3.0-src.tar.gz /commons-math3-3.1-src.tar.gz +/commons-math3-3.1.1-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 9f6e094..a340c59 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ %global short_name commons-%{base_name}3 Name: apache-commons-math -Version: 3.1 +Version: 3.1.1 Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components @@ -67,6 +67,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Tue Jan 15 2013 Mohamed El Morabity - 3.1.1-1 +- Update to 3.1.1 + * Sun Dec 30 2012 Mohamed El Morabity - 3.1-1 - Update to 3.1 diff --git a/sources b/sources index c05b42b..6a1a1f6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -89600ffbe0b9882fc96fb59e99fff887 commons-math3-3.1-src.tar.gz +8d1b5934304262797c56d19a5c3305ad commons-math3-3.1.1-src.tar.gz From 71d64e851e4b21a9919e7eb3d872c9954bed1747 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Wed, 6 Feb 2013 19:32:14 +0100 Subject: [PATCH 13/65] - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local --- apache-commons-math.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index a340c59..19f1657 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-commons-math Version: 3.1.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -13,7 +13,7 @@ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils -BuildRequires: maven +BuildRequires: maven-local BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 Requires: jpackage-utils @@ -67,6 +67,10 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Wed Feb 06 2013 Java SIG - 3.1.1-2 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + * Tue Jan 15 2013 Mohamed El Morabity - 3.1.1-1 - Update to 3.1.1 From 093795d8730cb1ef657f3fcc598b0ab511fea801 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 13 Feb 2013 10:46:46 -0600 Subject: [PATCH 14/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 19f1657..5dee4aa 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-commons-math Version: 3.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -67,6 +67,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Wed Feb 13 2013 Fedora Release Engineering - 3.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Wed Feb 06 2013 Java SIG - 3.1.1-2 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local From 44037a79b91cc879a1ae866c02c7feec2c265f40 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Sat, 11 May 2013 23:54:28 +0200 Subject: [PATCH 15/65] Update to 3.2 --- .gitignore | 1 + apache-commons-math.spec | 9 +++++---- sources | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b20e0b2..8327c48 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ commons-math-2.0-src.tar.gz /commons-math3-3.0-src.tar.gz /commons-math3-3.1-src.tar.gz /commons-math3-3.1.1-src.tar.gz +/commons-math3-3.2-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 5dee4aa..8f83b38 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,8 +2,8 @@ %global short_name commons-%{base_name}3 Name: apache-commons-math -Version: 3.1.1 -Release: 3%{?dist} +Version: 3.2 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -14,7 +14,6 @@ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local -BuildRequires: maven-surefire-provider-junit4 Requires: java >= 1:1.6.0 Requires: jpackage-utils BuildArch: noarch @@ -28,7 +27,6 @@ Java programming language or Commons Lang. %package javadoc Summary: Javadoc for %{name} Group: Documentation -Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. @@ -67,6 +65,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Sat May 11 2013 Mohamed El Morabity - 3.2-1 +- Update to 3.2 + * Wed Feb 13 2013 Fedora Release Engineering - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 6a1a1f6..b5b48c3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8d1b5934304262797c56d19a5c3305ad commons-math3-3.1.1-src.tar.gz +a44e9b189fbf53e06f75cb6728c3642a commons-math3-3.2-src.tar.gz From 37cd7827ccf8f2417ddb15ef0ca817f58d96e652 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 2 Aug 2013 20:20:39 -0500 Subject: [PATCH 16/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 8f83b38..b891495 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -3,7 +3,7 @@ Name: apache-commons-math Version: 3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -65,6 +65,9 @@ cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Sat May 11 2013 Mohamed El Morabity - 3.2-1 - Update to 3.2 From a448339774a42da9f7a0327024cca3769a17739a Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Tue, 6 Aug 2013 13:22:21 +0100 Subject: [PATCH 17/65] Update for newer guidelines --- apache-commons-math.spec | 44 ++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index b891495..257806f 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,15 +1,13 @@ -%global base_name math -%global short_name commons-%{base_name}3 +%global short_name commons-math3 Name: apache-commons-math Version: 3.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components - Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD -URL: http://commons.apache.org/%{base_name}/ -Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +URL: http://commons.apache.org/math/ +Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils @@ -23,7 +21,6 @@ Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang. - %package javadoc Summary: Javadoc for %{name} Group: Documentation @@ -31,40 +28,29 @@ Group: Documentation %description javadoc This package contains the API documentation for %{name}. - %prep %setup -q -n %{short_name}-%{version}-src +# Compatibility links +%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" +%mvn_file :%{short_name} %{short_name} %{name} %build -mvn-rpmbuild install javadoc:aggregate - +%mvn_build %install -install -Dpm 0644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar -ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{short_name}.jar +%mvn_install -install -dm 0755 $RPM_BUILD_ROOT%{_mavenpomdir}/ -install -pm 0644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom -%add_maven_depmap JPP-%{name}.pom %{name}.jar - -install -dm 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} -cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/ - - -%files +%files -f .mfiles %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt -%{_javadir}/* -%{_mavenpomdir}/* -%{_mavendepmapfragdir}/* - - -%files javadoc -%doc LICENSE.txt -%{_javadocdir}/%{name} +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt %changelog +* Tue Aug 06 2013 Mat Booth - 3.2-3 +- Update for newer guidelines + * Sat Aug 03 2013 Fedora Release Engineering - 3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 03695ce37148e0bab8fe16044f7cab9f13600a58 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 28 Mar 2014 18:52:13 +0100 Subject: [PATCH 18/65] Use Requires: java-headless rebuild (#1067528) Signed-off-by: Michael Simacek Signed-off-by: Mikolaj Izdebski --- apache-commons-math.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 257806f..2b1fd98 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -12,7 +12,6 @@ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-% BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local -Requires: java >= 1:1.6.0 Requires: jpackage-utils BuildArch: noarch @@ -48,6 +47,9 @@ This package contains the API documentation for %{name}. %doc LICENSE.txt NOTICE.txt %changelog +* Fri Mar 28 2014 Michael Simacek - 3.2-4 +- Use Requires: java-headless rebuild (#1067528) + * Tue Aug 06 2013 Mat Booth - 3.2-3 - Update for newer guidelines From fa484b98489058069795126394d45a878b593cc3 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:08:41 +0200 Subject: [PATCH 19/65] Fix RHBZ #1084441 + unit tests for JDK 8 --- apache-commons-math.spec | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 2b1fd98..16067ed 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -8,6 +8,15 @@ Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz +# Fix RHBZ #1084441 (Fix BOBYQAOptimizerTest failing tests; see also +# https://issues.apache.org/jira/browse/MATH-1057) +Patch0: %{name}-3.2-RHBZ1084441.patch +# commons-math doesn't reimplement (yet) in +# org.apache.commons.math3.util.FastMath the new methods introduced by Java 8 in +# java.lang.StrictMath. This patch disables the unit test checking that all +# StrictMath methods are reimplemented in commons-math +# TODO: drop this patch once commons-math fully supports Java 8 +Patch1: %{name}-3.2-JDK8.patch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils @@ -20,6 +29,7 @@ Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang. + %package javadoc Summary: Javadoc for %{name} Group: Documentation @@ -27,26 +37,40 @@ Group: Documentation %description javadoc This package contains the API documentation for %{name}. + %prep %setup -q -n %{short_name}-%{version}-src +%patch0 -p1 -b .RHBZ1084441 +%patch1 -p1 -b .JDK8 # Compatibility links %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} + %build %mvn_build + %install %mvn_install + %files -f .mfiles %doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt + %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt + %changelog +* Wed Apr 23 2014 Mohamed El Morabity - 3.2-4 +- Fix RHBZ #1084441 (see + https://issues.apache.org/jira/browse/MATH-1057) +- Disable unit test checking that all StrictMath methods are reimplemented in + commons-math + * Fri Mar 28 2014 Michael Simacek - 3.2-4 - Use Requires: java-headless rebuild (#1067528) From a2f2d1448a9defa32d1e6fd6112fb3641327fda9 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:13:13 +0200 Subject: [PATCH 20/65] Add missing patches From 928b54bd33954d030caceb9ee1c90357778da529 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:17:40 +0200 Subject: [PATCH 21/65] Add missing patches (fix) From ba8f0025e2fe006cd6c0e777ca0f5ee7bbb7b15b Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:19:43 +0200 Subject: [PATCH 22/65] Add missing patches (fix again) From 82cd806e40c214fc72620b268c4faa0f480b4e95 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:21:52 +0200 Subject: [PATCH 23/65] Add missing patches (fix at last) From f255b537158e4bfdf1362b94c819e1e2ebe9d138 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Wed, 23 Apr 2014 11:37:14 +0200 Subject: [PATCH 24/65] Add missing patches --- apache-commons-math-3.2-JDK8.patch | 11 ++ apache-commons-math-3.2-RHBZ1084441.patch | 209 ++++++++++++++++++++++ 2 files changed, 220 insertions(+) create mode 100644 apache-commons-math-3.2-JDK8.patch create mode 100644 apache-commons-math-3.2-RHBZ1084441.patch diff --git a/apache-commons-math-3.2-JDK8.patch b/apache-commons-math-3.2-JDK8.patch new file mode 100644 index 0000000..e9bbb40 --- /dev/null +++ b/apache-commons-math-3.2-JDK8.patch @@ -0,0 +1,11 @@ +diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java +--- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java.orig 2013-04-02 21:21:33.000000000 +0200 ++++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java 2014-04-23 10:36:11.392214112 +0200 +@@ -1103,6 +1103,7 @@ public class FastMathTest { + return allfound; + } + ++ @Ignore + @Test + public void checkMissingFastMathClasses() { + boolean ok = compareClassMethods(StrictMath.class, FastMath.class); diff --git a/apache-commons-math-3.2-RHBZ1084441.patch b/apache-commons-math-3.2-RHBZ1084441.patch new file mode 100644 index 0000000..4beedc2 --- /dev/null +++ b/apache-commons-math-3.2-RHBZ1084441.patch @@ -0,0 +1,209 @@ +diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java +--- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java.orig 2013-04-02 21:21:28.000000000 +0200 ++++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java 2014-04-22 13:34:00.746933253 +0200 +@@ -28,6 +28,7 @@ import org.apache.commons.math3.optimiza + import org.apache.commons.math3.optimization.PointValuePair; + import org.apache.commons.math3.optimization.InitialGuess; + import org.apache.commons.math3.optimization.SimpleBounds; ++import org.apache.commons.math3.util.FastMath; + import org.junit.Assert; + import org.junit.Ignore; + import org.junit.Test; +@@ -207,7 +208,7 @@ public class BOBYQAOptimizerTest { + new PointValuePair(point(DIM,0.0),0.0); + doTest(new Ackley(), startPoint, boundaries, + GoalType.MINIMIZE, +- 1e-8, 1e-5, 1000, expected); ++ 1e-7, 1e-5, 1000, expected); + } + + @Test +@@ -317,7 +318,7 @@ public class BOBYQAOptimizerTest { + + int dim = startPoint.length; + // MultivariateOptimizer optim = +-// new PowellOptimizer(1e-13, Math.ulp(1d)); ++// new PowellOptimizer(1e-13, FastMath.ulp(1d)); + // PointValuePair result = optim.optimize(100000, func, goal, startPoint); + final double[] lB = boundaries == null ? null : boundaries[0]; + final double[] uB = boundaries == null ? null : boundaries[1]; +@@ -462,7 +463,7 @@ public class BOBYQAOptimizerTest { + double f = 0; + x = B.Rotate(x); + for (int i = 0; i < x.length; ++i) +- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; ++ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; + return f; + } + } +@@ -482,7 +483,7 @@ public class BOBYQAOptimizerTest { + public double value(double[] x) { + double f = 0; + for (int i = 0; i < x.length; ++i) +- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; ++ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; + return f; + } + } +@@ -499,7 +500,7 @@ public class BOBYQAOptimizerTest { + public double value(double[] x) { + double f = 0; + for (int i = 0; i < x.length; ++i) +- f += Math.pow(Math.abs(x[i]), 2. + 10 * (double) i ++ f += FastMath.pow(FastMath.abs(x[i]), 2. + 10 * (double) i + / (x.length - 1.)); + // System.out.print("" + (fcount++) + ") "); + // for (int i = 0; i < x.length; i++) +@@ -512,7 +513,7 @@ public class BOBYQAOptimizerTest { + private static class SsDiffPow implements MultivariateFunction { + + public double value(double[] x) { +- double f = Math.pow(new DiffPow().value(x), 0.25); ++ double f = FastMath.pow(new DiffPow().value(x), 0.25); + return f; + } + } +@@ -544,12 +545,12 @@ public class BOBYQAOptimizerTest { + double res2 = 0; + double fac = 0; + for (int i = 0; i < x.length; ++i) { +- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); ++ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); + f += fac * fac * x[i] * x[i]; +- res2 += Math.cos(2. * Math.PI * fac * x[i]); ++ res2 += FastMath.cos(2. * FastMath.PI * fac * x[i]); + } +- f = (20. - 20. * Math.exp(-0.2 * Math.sqrt(f / x.length)) +- + Math.exp(1.) - Math.exp(res2 / x.length)); ++ f = (20. - 20. * FastMath.exp(-0.2 * FastMath.sqrt(f / x.length)) ++ + FastMath.exp(1.) - FastMath.exp(res2 / x.length)); + return f; + } + } +@@ -572,11 +573,11 @@ public class BOBYQAOptimizerTest { + double f = 0; + double fac; + for (int i = 0; i < x.length; ++i) { +- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); ++ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); + if (i == 0 && x[i] < 0) + fac *= 1.; + f += fac * fac * x[i] * x[i] + amplitude +- * (1. - Math.cos(2. * Math.PI * fac * x[i])); ++ * (1. - FastMath.cos(2. * FastMath.PI * fac * x[i])); + } + return f; + } +@@ -621,7 +622,7 @@ public class BOBYQAOptimizerTest { + for (sp = 0., k = 0; k < DIM; ++k) + sp += basis[i][k] * basis[i][k]; /* squared norm */ + for (k = 0; k < DIM; ++k) +- basis[i][k] /= Math.sqrt(sp); ++ basis[i][k] /= FastMath.sqrt(sp); + } + } + } +diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java +--- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java.orig 2013-04-02 21:21:29.000000000 +0200 ++++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java 2014-04-22 13:34:32.953022425 +0200 +@@ -18,6 +18,7 @@ package org.apache.commons.math3.optim.n + + import java.util.Arrays; + import java.util.Random; ++ + import org.apache.commons.math3.analysis.MultivariateFunction; + import org.apache.commons.math3.exception.DimensionMismatchException; + import org.apache.commons.math3.exception.TooManyEvaluationsException; +@@ -29,6 +30,7 @@ import org.apache.commons.math3.optim.no + import org.apache.commons.math3.optim.PointValuePair; + import org.apache.commons.math3.optim.InitialGuess; + import org.apache.commons.math3.optim.SimpleBounds; ++import org.apache.commons.math3.util.FastMath; + import org.junit.Assert; + import org.junit.Ignore; + import org.junit.Test; +@@ -208,7 +210,7 @@ public class BOBYQAOptimizerTest { + new PointValuePair(point(DIM,0.0),0.0); + doTest(new Ackley(), startPoint, boundaries, + GoalType.MINIMIZE, +- 1e-8, 1e-5, 1000, expected); ++ 1e-7, 1e-5, 1000, expected); + } + + @Test +@@ -464,7 +466,7 @@ public class BOBYQAOptimizerTest { + double f = 0; + x = B.Rotate(x); + for (int i = 0; i < x.length; ++i) +- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; ++ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; + return f; + } + } +@@ -484,7 +486,7 @@ public class BOBYQAOptimizerTest { + public double value(double[] x) { + double f = 0; + for (int i = 0; i < x.length; ++i) +- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; ++ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; + return f; + } + } +@@ -501,7 +503,7 @@ public class BOBYQAOptimizerTest { + public double value(double[] x) { + double f = 0; + for (int i = 0; i < x.length; ++i) +- f += Math.pow(Math.abs(x[i]), 2. + 10 * (double) i ++ f += FastMath.pow(FastMath.abs(x[i]), 2. + 10 * (double) i + / (x.length - 1.)); + // System.out.print("" + (fcount++) + ") "); + // for (int i = 0; i < x.length; i++) +@@ -514,7 +516,7 @@ public class BOBYQAOptimizerTest { + private static class SsDiffPow implements MultivariateFunction { + + public double value(double[] x) { +- double f = Math.pow(new DiffPow().value(x), 0.25); ++ double f = FastMath.pow(new DiffPow().value(x), 0.25); + return f; + } + } +@@ -546,12 +548,12 @@ public class BOBYQAOptimizerTest { + double res2 = 0; + double fac = 0; + for (int i = 0; i < x.length; ++i) { +- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); ++ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); + f += fac * fac * x[i] * x[i]; +- res2 += Math.cos(2. * Math.PI * fac * x[i]); ++ res2 += FastMath.cos(2. * FastMath.PI * fac * x[i]); + } +- f = (20. - 20. * Math.exp(-0.2 * Math.sqrt(f / x.length)) +- + Math.exp(1.) - Math.exp(res2 / x.length)); ++ f = (20. - 20. * FastMath.exp(-0.2 * FastMath.sqrt(f / x.length)) ++ + FastMath.exp(1.) - FastMath.exp(res2 / x.length)); + return f; + } + } +@@ -574,11 +576,11 @@ public class BOBYQAOptimizerTest { + double f = 0; + double fac; + for (int i = 0; i < x.length; ++i) { +- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); ++ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); + if (i == 0 && x[i] < 0) + fac *= 1.; + f += fac * fac * x[i] * x[i] + amplitude +- * (1. - Math.cos(2. * Math.PI * fac * x[i])); ++ * (1. - FastMath.cos(2. * FastMath.PI * fac * x[i])); + } + return f; + } +@@ -623,7 +625,7 @@ public class BOBYQAOptimizerTest { + for (sp = 0., k = 0; k < DIM; ++k) + sp += basis[i][k] * basis[i][k]; /* squared norm */ + for (k = 0; k < DIM; ++k) +- basis[i][k] /= Math.sqrt(sp); ++ basis[i][k] /= FastMath.sqrt(sp); + } + } + } From a811a73ba59d1ca29927853384cb30477f1d8b72 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 19:59:01 -0500 Subject: [PATCH 25/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 16067ed..29cb9af 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -65,6 +65,9 @@ This package contains the API documentation for %{name}. %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 3.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Wed Apr 23 2014 Mohamed El Morabity - 3.2-4 - Fix RHBZ #1084441 (see https://issues.apache.org/jira/browse/MATH-1057) From e79cd9716e0721ab47956d3024d2e11dd4b4cf24 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Fri, 13 Jun 2014 18:47:51 +0200 Subject: [PATCH 26/65] Update to 3.3 --- .gitignore | 1 + apache-commons-math-3.2-JDK8.patch | 11 -- apache-commons-math-3.2-RHBZ1084441.patch | 209 ---------------------- apache-commons-math.spec | 24 ++- sources | 2 +- 5 files changed, 13 insertions(+), 234 deletions(-) delete mode 100644 apache-commons-math-3.2-JDK8.patch delete mode 100644 apache-commons-math-3.2-RHBZ1084441.patch diff --git a/.gitignore b/.gitignore index 8327c48..256582e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ commons-math-2.0-src.tar.gz /commons-math3-3.1-src.tar.gz /commons-math3-3.1.1-src.tar.gz /commons-math3-3.2-src.tar.gz +/commons-math3-3.3-src.tar.gz diff --git a/apache-commons-math-3.2-JDK8.patch b/apache-commons-math-3.2-JDK8.patch deleted file mode 100644 index e9bbb40..0000000 --- a/apache-commons-math-3.2-JDK8.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java ---- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java.orig 2013-04-02 21:21:33.000000000 +0200 -+++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/util/FastMathTest.java 2014-04-23 10:36:11.392214112 +0200 -@@ -1103,6 +1103,7 @@ public class FastMathTest { - return allfound; - } - -+ @Ignore - @Test - public void checkMissingFastMathClasses() { - boolean ok = compareClassMethods(StrictMath.class, FastMath.class); diff --git a/apache-commons-math-3.2-RHBZ1084441.patch b/apache-commons-math-3.2-RHBZ1084441.patch deleted file mode 100644 index 4beedc2..0000000 --- a/apache-commons-math-3.2-RHBZ1084441.patch +++ /dev/null @@ -1,209 +0,0 @@ -diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java ---- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java.orig 2013-04-02 21:21:28.000000000 +0200 -+++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optimization/direct/BOBYQAOptimizerTest.java 2014-04-22 13:34:00.746933253 +0200 -@@ -28,6 +28,7 @@ import org.apache.commons.math3.optimiza - import org.apache.commons.math3.optimization.PointValuePair; - import org.apache.commons.math3.optimization.InitialGuess; - import org.apache.commons.math3.optimization.SimpleBounds; -+import org.apache.commons.math3.util.FastMath; - import org.junit.Assert; - import org.junit.Ignore; - import org.junit.Test; -@@ -207,7 +208,7 @@ public class BOBYQAOptimizerTest { - new PointValuePair(point(DIM,0.0),0.0); - doTest(new Ackley(), startPoint, boundaries, - GoalType.MINIMIZE, -- 1e-8, 1e-5, 1000, expected); -+ 1e-7, 1e-5, 1000, expected); - } - - @Test -@@ -317,7 +318,7 @@ public class BOBYQAOptimizerTest { - - int dim = startPoint.length; - // MultivariateOptimizer optim = --// new PowellOptimizer(1e-13, Math.ulp(1d)); -+// new PowellOptimizer(1e-13, FastMath.ulp(1d)); - // PointValuePair result = optim.optimize(100000, func, goal, startPoint); - final double[] lB = boundaries == null ? null : boundaries[0]; - final double[] uB = boundaries == null ? null : boundaries[1]; -@@ -462,7 +463,7 @@ public class BOBYQAOptimizerTest { - double f = 0; - x = B.Rotate(x); - for (int i = 0; i < x.length; ++i) -- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; -+ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; - return f; - } - } -@@ -482,7 +483,7 @@ public class BOBYQAOptimizerTest { - public double value(double[] x) { - double f = 0; - for (int i = 0; i < x.length; ++i) -- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; -+ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; - return f; - } - } -@@ -499,7 +500,7 @@ public class BOBYQAOptimizerTest { - public double value(double[] x) { - double f = 0; - for (int i = 0; i < x.length; ++i) -- f += Math.pow(Math.abs(x[i]), 2. + 10 * (double) i -+ f += FastMath.pow(FastMath.abs(x[i]), 2. + 10 * (double) i - / (x.length - 1.)); - // System.out.print("" + (fcount++) + ") "); - // for (int i = 0; i < x.length; i++) -@@ -512,7 +513,7 @@ public class BOBYQAOptimizerTest { - private static class SsDiffPow implements MultivariateFunction { - - public double value(double[] x) { -- double f = Math.pow(new DiffPow().value(x), 0.25); -+ double f = FastMath.pow(new DiffPow().value(x), 0.25); - return f; - } - } -@@ -544,12 +545,12 @@ public class BOBYQAOptimizerTest { - double res2 = 0; - double fac = 0; - for (int i = 0; i < x.length; ++i) { -- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); -+ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); - f += fac * fac * x[i] * x[i]; -- res2 += Math.cos(2. * Math.PI * fac * x[i]); -+ res2 += FastMath.cos(2. * FastMath.PI * fac * x[i]); - } -- f = (20. - 20. * Math.exp(-0.2 * Math.sqrt(f / x.length)) -- + Math.exp(1.) - Math.exp(res2 / x.length)); -+ f = (20. - 20. * FastMath.exp(-0.2 * FastMath.sqrt(f / x.length)) -+ + FastMath.exp(1.) - FastMath.exp(res2 / x.length)); - return f; - } - } -@@ -572,11 +573,11 @@ public class BOBYQAOptimizerTest { - double f = 0; - double fac; - for (int i = 0; i < x.length; ++i) { -- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); -+ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); - if (i == 0 && x[i] < 0) - fac *= 1.; - f += fac * fac * x[i] * x[i] + amplitude -- * (1. - Math.cos(2. * Math.PI * fac * x[i])); -+ * (1. - FastMath.cos(2. * FastMath.PI * fac * x[i])); - } - return f; - } -@@ -621,7 +622,7 @@ public class BOBYQAOptimizerTest { - for (sp = 0., k = 0; k < DIM; ++k) - sp += basis[i][k] * basis[i][k]; /* squared norm */ - for (k = 0; k < DIM; ++k) -- basis[i][k] /= Math.sqrt(sp); -+ basis[i][k] /= FastMath.sqrt(sp); - } - } - } -diff -up commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java.orig commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java ---- commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java.orig 2013-04-02 21:21:29.000000000 +0200 -+++ commons-math3-3.2-src/src/test/java/org/apache/commons/math3/optim/nonlinear/scalar/noderiv/BOBYQAOptimizerTest.java 2014-04-22 13:34:32.953022425 +0200 -@@ -18,6 +18,7 @@ package org.apache.commons.math3.optim.n - - import java.util.Arrays; - import java.util.Random; -+ - import org.apache.commons.math3.analysis.MultivariateFunction; - import org.apache.commons.math3.exception.DimensionMismatchException; - import org.apache.commons.math3.exception.TooManyEvaluationsException; -@@ -29,6 +30,7 @@ import org.apache.commons.math3.optim.no - import org.apache.commons.math3.optim.PointValuePair; - import org.apache.commons.math3.optim.InitialGuess; - import org.apache.commons.math3.optim.SimpleBounds; -+import org.apache.commons.math3.util.FastMath; - import org.junit.Assert; - import org.junit.Ignore; - import org.junit.Test; -@@ -208,7 +210,7 @@ public class BOBYQAOptimizerTest { - new PointValuePair(point(DIM,0.0),0.0); - doTest(new Ackley(), startPoint, boundaries, - GoalType.MINIMIZE, -- 1e-8, 1e-5, 1000, expected); -+ 1e-7, 1e-5, 1000, expected); - } - - @Test -@@ -464,7 +466,7 @@ public class BOBYQAOptimizerTest { - double f = 0; - x = B.Rotate(x); - for (int i = 0; i < x.length; ++i) -- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; -+ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; - return f; - } - } -@@ -484,7 +486,7 @@ public class BOBYQAOptimizerTest { - public double value(double[] x) { - double f = 0; - for (int i = 0; i < x.length; ++i) -- f += Math.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; -+ f += FastMath.pow(factor, i / (x.length - 1.)) * x[i] * x[i]; - return f; - } - } -@@ -501,7 +503,7 @@ public class BOBYQAOptimizerTest { - public double value(double[] x) { - double f = 0; - for (int i = 0; i < x.length; ++i) -- f += Math.pow(Math.abs(x[i]), 2. + 10 * (double) i -+ f += FastMath.pow(FastMath.abs(x[i]), 2. + 10 * (double) i - / (x.length - 1.)); - // System.out.print("" + (fcount++) + ") "); - // for (int i = 0; i < x.length; i++) -@@ -514,7 +516,7 @@ public class BOBYQAOptimizerTest { - private static class SsDiffPow implements MultivariateFunction { - - public double value(double[] x) { -- double f = Math.pow(new DiffPow().value(x), 0.25); -+ double f = FastMath.pow(new DiffPow().value(x), 0.25); - return f; - } - } -@@ -546,12 +548,12 @@ public class BOBYQAOptimizerTest { - double res2 = 0; - double fac = 0; - for (int i = 0; i < x.length; ++i) { -- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); -+ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); - f += fac * fac * x[i] * x[i]; -- res2 += Math.cos(2. * Math.PI * fac * x[i]); -+ res2 += FastMath.cos(2. * FastMath.PI * fac * x[i]); - } -- f = (20. - 20. * Math.exp(-0.2 * Math.sqrt(f / x.length)) -- + Math.exp(1.) - Math.exp(res2 / x.length)); -+ f = (20. - 20. * FastMath.exp(-0.2 * FastMath.sqrt(f / x.length)) -+ + FastMath.exp(1.) - FastMath.exp(res2 / x.length)); - return f; - } - } -@@ -574,11 +576,11 @@ public class BOBYQAOptimizerTest { - double f = 0; - double fac; - for (int i = 0; i < x.length; ++i) { -- fac = Math.pow(axisratio, (i - 1.) / (x.length - 1.)); -+ fac = FastMath.pow(axisratio, (i - 1.) / (x.length - 1.)); - if (i == 0 && x[i] < 0) - fac *= 1.; - f += fac * fac * x[i] * x[i] + amplitude -- * (1. - Math.cos(2. * Math.PI * fac * x[i])); -+ * (1. - FastMath.cos(2. * FastMath.PI * fac * x[i])); - } - return f; - } -@@ -623,7 +625,7 @@ public class BOBYQAOptimizerTest { - for (sp = 0., k = 0; k < DIM; ++k) - sp += basis[i][k] * basis[i][k]; /* squared norm */ - for (k = 0; k < DIM; ++k) -- basis[i][k] /= Math.sqrt(sp); -+ basis[i][k] /= FastMath.sqrt(sp); - } - } - } diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 29cb9af..d8cb707 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,22 +1,13 @@ %global short_name commons-math3 Name: apache-commons-math -Version: 3.2 -Release: 5%{?dist} +Version: 3.3 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz -# Fix RHBZ #1084441 (Fix BOBYQAOptimizerTest failing tests; see also -# https://issues.apache.org/jira/browse/MATH-1057) -Patch0: %{name}-3.2-RHBZ1084441.patch -# commons-math doesn't reimplement (yet) in -# org.apache.commons.math3.util.FastMath the new methods introduced by Java 8 in -# java.lang.StrictMath. This patch disables the unit test checking that all -# StrictMath methods are reimplemented in commons-math -# TODO: drop this patch once commons-math fully supports Java 8 -Patch1: %{name}-3.2-JDK8.patch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils @@ -40,13 +31,15 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p1 -b .RHBZ1084441 -%patch1 -p1 -b .JDK8 # Compatibility links %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} +# Disable Jacoco Maven plugin until a suitable version is available in Fedora +# (0.7.0) +rm src/site/resources/profile.jacoco + %build %mvn_build @@ -65,6 +58,11 @@ This package contains the API documentation for %{name}. %changelog +* Fri Jun 13 2014 Mohamed El Morabity - 3.3-1 +- Update to 3.3 +- Drop apache-commons-math-3.2-RHBZ1084441.patch (fixed in 3.3) +- Drop apache-commons-math-3.2-JDK8.patch (Java 8 support enabled in 3.3) + * Sat Jun 07 2014 Fedora Release Engineering - 3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index b5b48c3..79288f3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a44e9b189fbf53e06f75cb6728c3642a commons-math3-3.2-src.tar.gz +b8156da5ce35c4c963aecfdad919950a commons-math3-3.3-src.tar.gz From 977e66e371f249875a99880eb77bc84ef6d933e5 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Mon, 5 Jan 2015 14:17:01 +0100 Subject: [PATCH 27/65] Update to 3.4 --- .gitignore | 1 + apache-commons-math.spec | 16 +++++++++++++--- sources | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 256582e..274ac31 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ commons-math-2.0-src.tar.gz /commons-math3-3.1.1-src.tar.gz /commons-math3-3.2-src.tar.gz /commons-math3-3.3-src.tar.gz +/commons-math3-3.4-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index d8cb707..603d6a5 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,7 +1,7 @@ %global short_name commons-math3 Name: apache-commons-math -Version: 3.3 +Version: 3.4 Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -12,6 +12,9 @@ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-% BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local +%if 0%{?fedora} >= 21 +BuildRequires: mvn(org.jacoco:jacoco-maven-plugin) >= 0.7.0 +%endif Requires: jpackage-utils BuildArch: noarch @@ -36,9 +39,13 @@ This package contains the API documentation for %{name}. %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} -# Disable Jacoco Maven plugin until a suitable version is available in Fedora -# (0.7.0) +# Disable Jacoco Maven plugin for Fedora releases having jacoco < 0.7.0 +%if 0%{?fedora} < 21 rm src/site/resources/profile.jacoco +%endif + +# Disable maven-jgit-buildnumber-plugin plugin (not available in Fedora) +%pom_remove_plugin ru.concerteza.buildnumber:maven-jgit-buildnumber-plugin %build @@ -58,6 +65,9 @@ rm src/site/resources/profile.jacoco %changelog +* Mon Jan 05 2015 Mohamed El Morabity - 3.4-1 +- Update to 3.4 + * Fri Jun 13 2014 Mohamed El Morabity - 3.3-1 - Update to 3.3 - Drop apache-commons-math-3.2-RHBZ1084441.patch (fixed in 3.3) diff --git a/sources b/sources index 79288f3..1393006 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b8156da5ce35c4c963aecfdad919950a commons-math3-3.3-src.tar.gz +5d8d61a4531f9c5f78f44349e5abe935 commons-math3-3.4-src.tar.gz From 3756a9d33990df178a7ebb8d3f1a8540bc9cc97e Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Tue, 13 Jan 2015 11:18:15 +0100 Subject: [PATCH 28/65] Update to 3.4.1 --- .gitignore | 1 + apache-commons-math.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 274ac31..b7c21d0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ commons-math-2.0-src.tar.gz /commons-math3-3.2-src.tar.gz /commons-math3-3.3-src.tar.gz /commons-math3-3.4-src.tar.gz +/commons-math3-3.4.1-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 603d6a5..f8a4521 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,7 +1,7 @@ %global short_name commons-math3 Name: apache-commons-math -Version: 3.4 +Version: 3.4.1 Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries @@ -12,6 +12,7 @@ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-% BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local + %if 0%{?fedora} >= 21 BuildRequires: mvn(org.jacoco:jacoco-maven-plugin) >= 0.7.0 %endif @@ -65,6 +66,9 @@ rm src/site/resources/profile.jacoco %changelog +* Tue Jan 13 2015 Mohamed El Morabity - 3.4.1-1 +- Update to 3.4.1 + * Mon Jan 05 2015 Mohamed El Morabity - 3.4-1 - Update to 3.4 diff --git a/sources b/sources index 1393006..f8bf0f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5d8d61a4531f9c5f78f44349e5abe935 commons-math3-3.4-src.tar.gz +01daa3eedd61cfe3315fb0417fc8ac2e commons-math3-3.4.1-src.tar.gz From c621a8df8b5657e9ff6b68c6886617adc38bfbc1 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 00:04:14 +0000 Subject: [PATCH 29/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index f8a4521..7e01523 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -66,6 +66,9 @@ rm src/site/resources/profile.jacoco %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 3.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Tue Jan 13 2015 Mohamed El Morabity - 3.4.1-1 - Update to 3.4.1 From a02561554ad6ba817f558a4e52f1e9dfc6b3eefa Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 16:18:30 +0000 Subject: [PATCH 30/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 7e01523..6e2f5e4 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -66,6 +66,9 @@ rm src/site/resources/profile.jacoco %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 3.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Jun 17 2015 Fedora Release Engineering - 3.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 01684f22584b621f13b6b0dc6805239e97f1a678 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Fri, 16 Dec 2016 03:42:02 +0100 Subject: [PATCH 31/65] Fix RHBZ #1402145 --- apache-commons-math-3.4.1-RHBZ1402145.patch | 43 +++++++++++++++++++++ apache-commons-math.spec | 19 ++++----- sources | 2 +- 3 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 apache-commons-math-3.4.1-RHBZ1402145.patch diff --git a/apache-commons-math-3.4.1-RHBZ1402145.patch b/apache-commons-math-3.4.1-RHBZ1402145.patch new file mode 100644 index 0000000..656d37e --- /dev/null +++ b/apache-commons-math-3.4.1-RHBZ1402145.patch @@ -0,0 +1,43 @@ +X-Git-Url: https://git1-us-west.apache.org/repos/asf?p=commons-math.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fapache%2Fcommons%2Fmath3%2Fml%2Fneuralnet%2Fsofm%2FKohonenUpdateActionTest.java;h=b209d56b8651eb6e7bbfca10ad9bdb1802fb24f3;hp=334a5a8ebbbd011aa7d10bebbc5478df5f82becc;hb=a9006aa;hpb=838788fd6302d6cc91e1743144e0f14b71e4812e + +diff --git a/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java b/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java +index 334a5a8..b209d56 100644 +--- a/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java ++++ b/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java +@@ -17,18 +17,19 @@ + + package org.apache.commons.math3.ml.neuralnet.sofm; + +-import org.apache.commons.math3.ml.neuralnet.Neuron; +-import org.apache.commons.math3.ml.neuralnet.Network; +-import org.apache.commons.math3.ml.neuralnet.MapUtils; +-import org.apache.commons.math3.ml.neuralnet.UpdateAction; +-import org.apache.commons.math3.ml.neuralnet.OffsetFeatureInitializer; +-import org.apache.commons.math3.ml.neuralnet.FeatureInitializer; +-import org.apache.commons.math3.ml.neuralnet.FeatureInitializerFactory; + import org.apache.commons.math3.ml.distance.DistanceMeasure; + import org.apache.commons.math3.ml.distance.EuclideanDistance; ++import org.apache.commons.math3.ml.neuralnet.FeatureInitializer; ++import org.apache.commons.math3.ml.neuralnet.FeatureInitializerFactory; ++import org.apache.commons.math3.ml.neuralnet.MapUtils; ++import org.apache.commons.math3.ml.neuralnet.Network; ++import org.apache.commons.math3.ml.neuralnet.Neuron; ++import org.apache.commons.math3.ml.neuralnet.OffsetFeatureInitializer; ++import org.apache.commons.math3.ml.neuralnet.UpdateAction; + import org.apache.commons.math3.ml.neuralnet.oned.NeuronString; +-import org.junit.Test; ++import org.apache.commons.math3.util.Precision; + import org.junit.Assert; ++import org.junit.Test; + + /** + * Tests for {@link KohonenUpdateAction} class. +@@ -82,7 +83,7 @@ public class KohonenUpdateActionTest { + + Assert.assertEquals(bestBefore, bestAfter); + // Distance is now zero. +- Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), 0d); ++ Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), Precision.EPSILON); + + for (int i = 0; i < netSize; i++) { + // All distances have decreased. diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 6e2f5e4..4bbc170 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,20 +2,22 @@ Name: apache-commons-math Version: 3.4.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz +# Fix random build self-test failures reported on RHBZ #1402145 (see +# https://git1-us-west.apache.org/repos/asf?p=commons-math.git;a=commit;h=a9006aa) +Patch1: %{name}-3.4.1-RHBZ1402145.patch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven-local -%if 0%{?fedora} >= 21 +BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.jacoco:jacoco-maven-plugin) >= 0.7.0 -%endif Requires: jpackage-utils BuildArch: noarch @@ -34,17 +36,12 @@ This package contains the API documentation for %{name}. %prep -%setup -q -n %{short_name}-%{version}-src +%autosetup -n %{short_name}-%{version}-src -p1 # Compatibility links %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} -# Disable Jacoco Maven plugin for Fedora releases having jacoco < 0.7.0 -%if 0%{?fedora} < 21 -rm src/site/resources/profile.jacoco -%endif - # Disable maven-jgit-buildnumber-plugin plugin (not available in Fedora) %pom_remove_plugin ru.concerteza.buildnumber:maven-jgit-buildnumber-plugin @@ -66,6 +63,10 @@ rm src/site/resources/profile.jacoco %changelog +* Fri Dec 16 2016 Mohamed El Morabity - 3.4.1-4 +- Fix RHBZ #1402145 +- Spec cleanup + * Wed Feb 03 2016 Fedora Release Engineering - 3.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index f8bf0f7..162ede0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -01daa3eedd61cfe3315fb0417fc8ac2e commons-math3-3.4.1-src.tar.gz +SHA512 (commons-math3-3.4.1-src.tar.gz) = 21c926870ebc40e9594750545299005c53782efac4e411db773253db95cf3e6fbf770da1e52db2b88676310d1ecffc9b5fd28c03b2acbfe126f87b4f67718866 From 24a5db3dfff174bafe34b5184342a7902852f000 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Wed, 1 Feb 2017 13:57:10 +0100 Subject: [PATCH 32/65] Remove BR on jacoco --- apache-commons-math.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 4bbc170..abc7ce4 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -17,7 +17,6 @@ BuildRequires: jpackage-utils BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-parent:pom:) -BuildRequires: mvn(org.jacoco:jacoco-maven-plugin) >= 0.7.0 Requires: jpackage-utils BuildArch: noarch @@ -63,6 +62,9 @@ This package contains the API documentation for %{name}. %changelog +* Wed Feb 01 2017 Michael Simacek - 3.4.1-5 +- Remove BR on jacoco + * Fri Dec 16 2016 Mohamed El Morabity - 3.4.1-4 - Fix RHBZ #1402145 - Spec cleanup From 7d6df7337ad8990fbd5e8cc8ad3eda9b1959414a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 10 Feb 2017 06:05:10 +0000 Subject: [PATCH 33/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index abc7ce4..00f9147 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -62,6 +62,9 @@ This package contains the API documentation for %{name}. %changelog +* Fri Feb 10 2017 Fedora Release Engineering - 3.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Feb 01 2017 Michael Simacek - 3.4.1-5 - Remove BR on jacoco From d92b1985ba4892a263ba2196b02aac3b5ed3b782 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 03:00:42 +0000 Subject: [PATCH 34/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 00f9147..557a2f7 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -62,6 +62,9 @@ This package contains the API documentation for %{name}. %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 3.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Fri Feb 10 2017 Fedora Release Engineering - 3.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 34c2c9b56bfa89bf9947607a16c5999c367eb9e2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 02:30:12 +0000 Subject: [PATCH 35/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 557a2f7..3c1a1dc 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -62,6 +62,9 @@ This package contains the API documentation for %{name}. %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 3.4.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 3.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 9912286fb3ebdb78c3a0acb3932410b53d0e39bb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 12 Jul 2018 20:20:28 +0000 Subject: [PATCH 36/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 3c1a1dc..cff7cbe 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Java library of lightweight mathematics and statistics components Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD @@ -62,6 +62,9 @@ This package contains the API documentation for %{name}. %changelog +* Thu Jul 12 2018 Fedora Release Engineering - 3.4.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 3.4.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 209c258c4b03df213ba2dbee49d8f87e3fcc9388 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:38 +0100 Subject: [PATCH 37/65] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- apache-commons-math.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index cff7cbe..51b1a4a 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -4,7 +4,6 @@ Name: apache-commons-math Version: 3.4.1 Release: 9%{?dist} Summary: Java library of lightweight mathematics and statistics components -Group: Development/Libraries License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz @@ -28,7 +27,6 @@ Java programming language or Commons Lang. %package javadoc Summary: Javadoc for %{name} -Group: Documentation %description javadoc This package contains the API documentation for %{name}. From aae1d149672a46db91f42d329c82fbc2c2bc69f2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 13:29:44 +0000 Subject: [PATCH 38/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 51b1a4a..ba61dd1 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -60,6 +60,9 @@ This package contains the API documentation for %{name}. %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 3.4.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Thu Jul 12 2018 Fedora Release Engineering - 3.4.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 846b826ff9e6c920a10f38585b7f3baf5ad595f6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 18:06:52 +0000 Subject: [PATCH 39/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index ba61dd1..b3cf2a3 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.4.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -60,6 +60,9 @@ This package contains the API documentation for %{name}. %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 3.4.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 3.4.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 22debace8c32015bd4a753de241db151ab17614a Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Fri, 9 Aug 2019 19:00:00 +0200 Subject: [PATCH 40/65] Update to 3.6.1 --- .gitignore | 1 + apache-commons-math.spec | 23 ++++++++++------------- sources | 2 +- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index b7c21d0..d4f0a29 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ commons-math-2.0-src.tar.gz /commons-math3-3.3-src.tar.gz /commons-math3-3.4-src.tar.gz /commons-math3-3.4.1-src.tar.gz +/commons-math3-3.6.1-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec index b3cf2a3..2f3d131 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -1,20 +1,15 @@ %global short_name commons-math3 Name: apache-commons-math -Version: 3.4.1 -Release: 11%{?dist} +Version: 3.6.1 +Release: 1%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz -# Fix random build self-test failures reported on RHBZ #1402145 (see -# https://git1-us-west.apache.org/repos/asf?p=commons-math.git;a=commit;h=a9006aa) -Patch1: %{name}-3.4.1-RHBZ1402145.patch -BuildRequires: java-devel >= 1:1.6.0 -BuildRequires: jpackage-utils +BuildRequires: java-devel BuildRequires: maven-local - BuildRequires: mvn(org.apache.commons:commons-parent:pom:) Requires: jpackage-utils BuildArch: noarch @@ -39,9 +34,6 @@ This package contains the API documentation for %{name}. %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} -# Disable maven-jgit-buildnumber-plugin plugin (not available in Fedora) -%pom_remove_plugin ru.concerteza.buildnumber:maven-jgit-buildnumber-plugin - %build %mvn_build @@ -52,14 +44,19 @@ This package contains the API documentation for %{name}. %files -f .mfiles -%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt +%doc NOTICE.txt RELEASE-NOTES.txt +%license LICENSE.txt %files javadoc -f .mfiles-javadoc -%doc LICENSE.txt NOTICE.txt +%doc NOTICE.txt +%license LICENSE.txt %changelog +* Fri Aug 09 2019 Mohamed El Morabity - 3.6.1-1 +- Update to 3.6.1 + * Wed Jul 24 2019 Fedora Release Engineering - 3.4.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 162ede0..50c46f7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (commons-math3-3.4.1-src.tar.gz) = 21c926870ebc40e9594750545299005c53782efac4e411db773253db95cf3e6fbf770da1e52db2b88676310d1ecffc9b5fd28c03b2acbfe126f87b4f67718866 +SHA512 (commons-math3-3.6.1-src.tar.gz) = cd3d4736257999bb1affd0a3d9e86be983c24651e074c9819d85770a37cf1bd3f9a809e426a41036ba3fc10e992f7d164685b964b9cda05b6c9b7a70f62d237b From 77e0006d91a4696bf8179b42a4210685232e5fc1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 11:46:21 +0000 Subject: [PATCH 41/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 2f3d131..4f49788 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -54,6 +54,9 @@ This package contains the API documentation for %{name}. %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 3.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Fri Aug 09 2019 Mohamed El Morabity - 3.6.1-1 - Update to 3.6.1 From 3812b0882c66d4f80fe707e56e4283177d1f14ae Mon Sep 17 00:00:00 2001 From: Jiri Date: Fri, 10 Jul 2020 15:43:58 +0200 Subject: [PATCH 42/65] Rebuilt for JDK-11 --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 4f49788..8d78b89 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -54,6 +54,9 @@ This package contains the API documentation for %{name}. %changelog +* Fri Jul 10 2020 Jiri Vanek - 3.6.1-3 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + * Tue Jan 28 2020 Fedora Release Engineering - 3.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 8676fa4d6d1e96d585ce66a809c0df2b5b8d0383 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Thu, 16 Jul 2020 16:26:52 +0100 Subject: [PATCH 43/65] Allow building on JDK 11 --- apache-commons-math.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 8d78b89..dff5418 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,16 +2,14 @@ Name: apache-commons-math Version: 3.6.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz -BuildRequires: java-devel BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-parent:pom:) -Requires: jpackage-utils BuildArch: noarch %description @@ -30,13 +28,16 @@ This package contains the API documentation for %{name}. %prep %autosetup -n %{short_name}-%{version}-src -p1 +# Skip test that fails on Java 11 +sed -i -e '/checkMissingFastMathClasses/i@Ignore' \ +src/test/java/org/apache/commons/math3/util/FastMathTest.java + # Compatibility links %mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}" %mvn_file :%{short_name} %{short_name} %{name} - %build -%mvn_build +%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install @@ -54,6 +55,9 @@ This package contains the API documentation for %{name}. %changelog +* Thu Jul 16 2020 Mat Booth - 3.6.1-4 +- Allow building on JDK 11 + * Fri Jul 10 2020 Jiri Vanek - 3.6.1-3 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 From 6d18bfafae33dd79399f0310821993a4a8649823 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 12:11:36 +0000 Subject: [PATCH 44/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index dff5418..a707a58 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -55,6 +55,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 3.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Thu Jul 16 2020 Mat Booth - 3.6.1-4 - Allow building on JDK 11 From 5756d187638a3498fdff7c81cf44bc65ae6044aa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 00:15:13 +0000 Subject: [PATCH 45/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index a707a58..47e5822 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -55,6 +55,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 3.6.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 3.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 91fd7239952216b84d0fc1e9a41986a032097b81 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 12:47:33 +0000 Subject: [PATCH 46/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering From b60604cd66daf213685d021a7759f14aa4cba375 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 17:43:33 +0000 Subject: [PATCH 47/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 47e5822..79eb673 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -55,6 +55,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 3.6.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 3.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 1f09d893b748b5518599ae77668a23937d6f5dbf Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Tue, 27 Jul 2021 18:11:55 +0200 Subject: [PATCH 48/65] Add explicit BuildRequires on JUnit to fix build on F35 --- apache-commons-math.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 79eb673..17b6c84 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,13 +2,14 @@ Name: apache-commons-math Version: 3.6.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz BuildRequires: maven-local +BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildArch: noarch @@ -55,6 +56,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Tue Jul 27 2021 Mohamed El Morabity - 3.6.1-8 +- Add explicit BuildRequires on JUnit + * Wed Jul 21 2021 Fedora Release Engineering - 3.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 4738193cdd2c86db570d458efe3e00458d1d48fa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jan 2022 21:25:34 +0000 Subject: [PATCH 49/65] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 17b6c84..c005b57 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -56,6 +56,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jan 19 2022 Fedora Release Engineering - 3.6.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Tue Jul 27 2021 Mohamed El Morabity - 3.6.1-8 - Add explicit BuildRequires on JUnit From fc607f8fe33a41cfe1a164798121b667bb4c104d Mon Sep 17 00:00:00 2001 From: Jiri Date: Sat, 5 Feb 2022 19:28:55 +0100 Subject: [PATCH 50/65] Rebuilt for java-17-openjdk as system jdk https://fedoraproject.org/wiki/Changes/Java17 --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index c005b57..b90fa12 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -56,6 +56,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Sat Feb 05 2022 Jiri Vanek - 3.6.1-10 +- Rebuilt for java-17-openjdk as system jdk + * Wed Jan 19 2022 Fedora Release Engineering - 3.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From f64a56be38a0a25271f0ec4bdb9de8d98c5095a8 Mon Sep 17 00:00:00 2001 From: Jiri Date: Fri, 8 Jul 2022 14:30:35 +0200 Subject: [PATCH 51/65] Rebuilt for Drop i686 JDKs https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs --- apache-commons-math.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index b90fa12..1123ffa 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -12,6 +12,7 @@ BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildArch: noarch +ExclusiveArch: %{java_arches} noarch %description Commons Math is a library of lightweight, self-contained mathematics and @@ -56,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Fri Jul 08 2022 Jiri Vanek - 3.6.1-11 +- Rebuilt for Drop i686 JDKs + * Sat Feb 05 2022 Jiri Vanek - 3.6.1-10 - Rebuilt for java-17-openjdk as system jdk From ff11c4eaede9ce3095bcdc31ac8d31c9d3eca6a3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 21:00:27 +0000 Subject: [PATCH 52/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 1123ffa..f0540d7 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 3.6.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Fri Jul 08 2022 Jiri Vanek - 3.6.1-11 - Rebuilt for Drop i686 JDKs From 4c39a726207e9bf49cc970e544c96d93aa112ebc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 18 Jan 2023 21:55:04 +0000 Subject: [PATCH 53/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index f0540d7..b02f806 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jan 18 2023 Fedora Release Engineering - 3.6.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Jul 20 2022 Fedora Release Engineering - 3.6.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 126c60edbf36b1dffae4ad936913bfe391562801 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 13:29:44 +0000 Subject: [PATCH 54/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index b02f806..7f10d0d 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 3.6.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jan 18 2023 Fedora Release Engineering - 3.6.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 591e3d124a872916275c0336cc55bc7fd281506b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 13:15:08 +0000 Subject: [PATCH 55/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 7f10d0d..c532f93 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 3.6.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 3.6.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 33996b0768c57c121d5fdef01c955feab9b4421d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 23:14:33 +0000 Subject: [PATCH 56/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index c532f93..66bf650 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 3.6.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 3.6.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 6030852d626064a9318dd767fd5f8bf78a647f13 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 31 Jan 2024 19:05:14 +0100 Subject: [PATCH 57/65] Port to apache-commons-parent 65 --- apache-commons-math.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 66bf650..ee6cefb 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -39,7 +39,7 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %mvn_file :%{short_name} %{short_name} %{name} %build -%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 +%mvn_build -- -Dcommons.packageId=math %install @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jan 31 2024 Mikolaj Izdebski - 3.6.1-17 +- Port to apache-commons-parent 65 + * Mon Jan 22 2024 Fedora Release Engineering - 3.6.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 0ea45e5f528a0c1ffa05d9791e1059815499ac7e Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 31 Jan 2024 19:20:35 +0100 Subject: [PATCH 58/65] Fix commons.packageId --- apache-commons-math.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index ee6cefb..c66e771 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -39,7 +39,7 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %mvn_file :%{short_name} %{short_name} %{name} %build -%mvn_build -- -Dcommons.packageId=math +%mvn_build -- -Dcommons.packageId=math3 %install From ebf2e2a2a08150242e4480c31943345e34c81edd Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 27 Feb 2024 14:46:26 +0100 Subject: [PATCH 59/65] Rebuilt for java-21-openjdk as system jdk https://fedoraproject.org/wiki/Changes/Java21 --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index c66e771..c1251ca 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Tue Feb 27 2024 Jiri Vanek - 3.6.1-18 +- Rebuilt for java-21-openjdk as system jdk + * Wed Jan 31 2024 Mikolaj Izdebski - 3.6.1-17 - Port to apache-commons-parent 65 From 7478b86589feba73acb0d2093fb3d03b036d7cb9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 17:12:00 +0000 Subject: [PATCH 60/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index c1251ca..877a83b 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Java library of lightweight mathematics and statistics components License: ASL 1.1 and ASL 2.0 and BSD URL: http://commons.apache.org/math/ @@ -57,6 +57,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 3.6.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Tue Feb 27 2024 Jiri Vanek - 3.6.1-18 - Rebuilt for java-21-openjdk as system jdk From 58bdbc90505a40ab7af777875cec93a78e47cbef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 28 Aug 2024 07:54:20 +0200 Subject: [PATCH 61/65] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- apache-commons-math.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 877a83b..eea6b40 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,9 +2,10 @@ Name: apache-commons-math Version: 3.6.1 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Java library of lightweight mathematics and statistics components -License: ASL 1.1 and ASL 2.0 and BSD +# Automatically converted from old format: ASL 1.1 and ASL 2.0 and BSD - review is highly recommended. +License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz @@ -57,6 +58,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Aug 28 2024 Miroslav Suchý - 3.6.1-20 +- convert license to SPDX + * Wed Jul 17 2024 Fedora Release Engineering - 3.6.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 9e9eddf098bcf548a7bc486eb4ef8e1dbf658b8d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 11:16:51 +0000 Subject: [PATCH 62/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index eea6b40..0b5a585 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Java library of lightweight mathematics and statistics components # Automatically converted from old format: ASL 1.1 and ASL 2.0 and BSD - review is highly recommended. License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD @@ -58,6 +58,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 3.6.1-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Aug 28 2024 Miroslav Suchý - 3.6.1-20 - convert license to SPDX From 2895781d6e9c987645a9c7e556e9f2b3868fb4a6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 17:06:16 +0000 Subject: [PATCH 63/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 0b5a585..5fde3b3 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Java library of lightweight mathematics and statistics components # Automatically converted from old format: ASL 1.1 and ASL 2.0 and BSD - review is highly recommended. License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD @@ -58,6 +58,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 3.6.1-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 3.6.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 1dfd56be37db9026f8a0d3068c773ddb1dca96ff Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 29 Jul 2025 19:07:09 +0200 Subject: [PATCH 64/65] Rebuilt for java-25-openjdk as preffered jdk https://fedoraproject.org/wiki/Changes/Java25AndNoMoreSystemJdk Note, that since f43, you should be always explicit on what jdk to use. This commit should do exactly that. --- apache-commons-math.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index 5fde3b3..ee9a696 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,14 +2,14 @@ Name: apache-commons-math Version: 3.6.1 -Release: 22%{?dist} +Release: 23%{?dist} Summary: Java library of lightweight mathematics and statistics components # Automatically converted from old format: ASL 1.1 and ASL 2.0 and BSD - review is highly recommended. License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD URL: http://commons.apache.org/math/ Source0: http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz -BuildRequires: maven-local +BuildRequires: maven-local-openjdk25 BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildArch: noarch @@ -58,6 +58,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Tue Jul 29 2025 jiri vanek - 3.6.1-23 +- Rebuilt for java-25-openjdk as preffered jdk + * Wed Jul 23 2025 Fedora Release Engineering - 3.6.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 04bfc69ad33ec05b222069e7b2a2b8b1679d291b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 03:47:30 +0000 Subject: [PATCH 65/65] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- apache-commons-math.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apache-commons-math.spec b/apache-commons-math.spec index ee9a696..bcc8b29 100644 --- a/apache-commons-math.spec +++ b/apache-commons-math.spec @@ -2,7 +2,7 @@ Name: apache-commons-math Version: 3.6.1 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Java library of lightweight mathematics and statistics components # Automatically converted from old format: ASL 1.1 and ASL 2.0 and BSD - review is highly recommended. License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD @@ -58,6 +58,9 @@ src/test/java/org/apache/commons/math3/util/FastMathTest.java %changelog +* Fri Jan 16 2026 Fedora Release Engineering - 3.6.1-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Tue Jul 29 2025 jiri vanek - 3.6.1-23 - Rebuilt for java-25-openjdk as preffered jdk