From 2ae73fed9590fc231e0cd2dff20679b124d384d9 Mon Sep 17 00:00:00 2001 From: Mohamed El Morabity Date: Thu, 22 Mar 2012 19:22:35 +0100 Subject: [PATCH] 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