From e81828422aa88c9ec5e3bde3a4a2c0dce1aee13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20=E3=83=86=E3=82=A3=E3=83=93=E3=83=84?= Date: Tue, 12 Jan 2010 06:30:55 +0000 Subject: [PATCH 1/3] Initialize branch F-11 for apache-commons-math --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..25c7708 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-11 From 2d327c3284ed3e5a5b3b31a52126633233ac5afa Mon Sep 17 00:00:00 2001 From: melmorabity Date: Tue, 12 Jan 2010 10:57:23 +0000 Subject: [PATCH 2/3] First import --- .cvsignore | 1 + apache-commons-math.spec | 117 +++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 120 insertions(+) create mode 100644 apache-commons-math.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..aafde05 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +commons-math-2.0-src.tar.gz diff --git a/apache-commons-math.spec b/apache-commons-math.spec new file mode 100644 index 0000000..48f6814 --- /dev/null +++ b/apache-commons-math.spec @@ -0,0 +1,117 @@ +%global base_name math +%global short_name commons-%{base_name} + +Name: apache-commons-math +Version: 2.0 +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/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +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 +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 +BuildArch: noarch + +%description +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: Javadocs for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + + +%prep +%setup -q -n %{short_name}-%{version}-src + + +%build +export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository +mkdir -p $MAVEN_REPO_LOCAL +mvn-jpp \ + -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ + install javadoc:javadoc + + +%install +rm -rf $RPM_BUILD_ROOT + +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 + +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{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} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%update_maven_depmap + + +%postun +%update_maven_depmap + + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt +%{_datadir}/maven2/poms +%{_javadir}/*.jar +%{_mavendepmapfragdir} + + +%files javadoc +%defattr(-,root,root,-) +%{_javadocdir}/%{name} + + +%changelog +* Fri Jan 8 2010 ELMORABITY Mohamed 2.0-4 +- Update description +- Add ASL 1.1 and BSD to License tag + +* Thu Jan 7 2010 ELMORABITY Mohamed 2.0-3 +- Change RPM name from "jakarta-commons-math" to "apache-commons-math" + +* Sun Jan 3 2010 ELMORABITY Mohamed 2.0-2 +- Update Summary tag + +* Mon Dec 28 2009 ELMORABITY Mohamed 2.0-1 +- Initial RPM release diff --git a/import.log b/import.log new file mode 100644 index 0000000..8ad9da5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +apache-commons-math-2_0-4_fc12:F-11:apache-commons-math-2.0-4.fc12.src.rpm:1263293708 diff --git a/sources b/sources index e69de29..d967afc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0572a2e542c0e138328466ff2c8dafce commons-math-2.0-src.tar.gz From 8b10a1d855551e33b7766a593b83e447ae203032 Mon Sep 17 00:00:00 2001 From: melmorabity Date: Tue, 12 Jan 2010 12:51:26 +0000 Subject: [PATCH 3/3] Remove F11 branch, apache-commons-math cannot be built on F11 because of missing BR (maven-plugin-bundle) --- .cvsignore | 1 - Makefile | 21 ------- apache-commons-math.spec | 117 --------------------------------------- branch | 1 - import.log | 1 - sources | 1 - 6 files changed, 142 deletions(-) delete mode 100644 .cvsignore delete mode 100644 Makefile delete mode 100644 apache-commons-math.spec delete mode 100644 branch delete mode 100644 import.log delete mode 100644 sources diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index aafde05..0000000 --- a/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -commons-math-2.0-src.tar.gz 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/apache-commons-math.spec b/apache-commons-math.spec deleted file mode 100644 index 48f6814..0000000 --- a/apache-commons-math.spec +++ /dev/null @@ -1,117 +0,0 @@ -%global base_name math -%global short_name commons-%{base_name} - -Name: apache-commons-math -Version: 2.0 -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/%{base_name}/source/%{short_name}-%{version}-src.tar.gz -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 -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 -BuildArch: noarch - -%description -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: Javadocs for %{name} -Group: Documentation -Requires: %{name} = %{version}-%{release} -Requires: jpackage-utils - -%description javadoc -This package contains the API documentation for %{name}. - - -%prep -%setup -q -n %{short_name}-%{version}-src - - -%build -export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository -mkdir -p $MAVEN_REPO_LOCAL -mvn-jpp \ - -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ - install javadoc:javadoc - - -%install -rm -rf $RPM_BUILD_ROOT - -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 - -mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} -cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{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} - - -%clean -rm -rf $RPM_BUILD_ROOT - - -%post -%update_maven_depmap - - -%postun -%update_maven_depmap - - -%files -%defattr(-,root,root,-) -%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt -%{_datadir}/maven2/poms -%{_javadir}/*.jar -%{_mavendepmapfragdir} - - -%files javadoc -%defattr(-,root,root,-) -%{_javadocdir}/%{name} - - -%changelog -* Fri Jan 8 2010 ELMORABITY Mohamed 2.0-4 -- Update description -- Add ASL 1.1 and BSD to License tag - -* Thu Jan 7 2010 ELMORABITY Mohamed 2.0-3 -- Change RPM name from "jakarta-commons-math" to "apache-commons-math" - -* Sun Jan 3 2010 ELMORABITY Mohamed 2.0-2 -- Update Summary tag - -* Mon Dec 28 2009 ELMORABITY Mohamed 2.0-1 -- Initial RPM release diff --git a/branch b/branch deleted file mode 100644 index 25c7708..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-11 diff --git a/import.log b/import.log deleted file mode 100644 index 8ad9da5..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -apache-commons-math-2_0-4_fc12:F-11:apache-commons-math-2.0-4.fc12.src.rpm:1263293708 diff --git a/sources b/sources deleted file mode 100644 index d967afc..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -0572a2e542c0e138328466ff2c8dafce commons-math-2.0-src.tar.gz