From 017d50ba56000970a8a8b46b8dfbea047739487ce68993e39189fb4414bd0fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 10 Oct 2015 20:21:07 +0000 Subject: [PATCH] Accepting request 337795 from home:posophe:speech Dependecy of one of my projects I'll submit to Factory OBS-URL: https://build.opensuse.org/request/show/337795 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-math?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + apache-commons-math.changes | 5 ++ apache-commons-math.spec | 94 ++++++++++++++++++++++++++++++++++++ commons-math3-3.5-src.tar.gz | 3 ++ 5 files changed, 126 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 apache-commons-math.changes create mode 100644 apache-commons-math.spec create mode 100644 commons-math3-3.5-src.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apache-commons-math.changes b/apache-commons-math.changes new file mode 100644 index 0000000..532a38d --- /dev/null +++ b/apache-commons-math.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Oct 9 08:53:22 UTC 2015 - p.drouand@gmail.com + +- Initial release (version 3.5) + diff --git a/apache-commons-math.spec b/apache-commons-math.spec new file mode 100644 index 0000000..15728ae --- /dev/null +++ b/apache-commons-math.spec @@ -0,0 +1,94 @@ +# +# spec file for package apache-commons-math +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%global base_name math +%global short_name commons-%{base_name} + +Name: apache-commons-math +Version: 3.5 +Release: 0 +Summary: The Apache Commons Mathematics Library +License: Apache-2.0 +Group: Development/Libraries/Java +Url: http://commons.apache.org/%{base_name}/ +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: javapackages-tools +BuildRequires: junit +Requires: java >= 1.6.0 +Requires: javapackages-tools +Requires(post): javapackages-tools +Requires(postun): javapackages-tools +Provides: java(commons-math3:commons-math3) = %{version} + +%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: Javadoc for %{name} +Group: Development/Libraries/Java +Requires: javapackages-tools + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{short_name}3-%{version}-src + +%build +export CLASSPATH=$(build-classpath ant-junit junit) +ant -Dant.build.javac.source=1.5 \ + -Dant.build.javac.target=1.5 \ + -Dmaven.mode.offline=true jar javadoc \ + -Dmaven.test.skip=true \ + -lib /usr/share/java -Dbuild.sysclasspath=first + +%install +# jars +install -Dpm 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) + +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom +%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version} +cp -pr target/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ +ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} + +%files +%defattr(-,root,root) +%doc LICENSE.txt license-header.txt NOTICE.txt RELEASE-NOTES.txt +%{_javadir}/* +%{_mavenpomdir}/* +%{_datadir}/maven-metadata/%{name}.xml + +%files javadoc +%defattr(-,root,root) +%doc LICENSE.txt +%{_javadocdir}/* + +%changelog diff --git a/commons-math3-3.5-src.tar.gz b/commons-math3-3.5-src.tar.gz new file mode 100644 index 0000000..b5138ca --- /dev/null +++ b/commons-math3-3.5-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4548aaf0839f3aaabd3ade405904609e0dcebd6ecdba2ccbd1e6ce5ad904702 +size 3438444