Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package apache-commons-math for
openSUSE:Factory checked in at 2021-02-15 23:16:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apache-commons-math (Old)
and /work/SRC/openSUSE:Factory/.apache-commons-math.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "apache-commons-math"
Mon Feb 15 23:16:18 2021 rev:7 rq:871418 version:3.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/apache-commons-math/apache-commons-math.changes
2019-11-18 20:12:09.897537731 +0100
+++
/work/SRC/openSUSE:Factory/.apache-commons-math.new.28504/apache-commons-math.changes
2021-02-15 23:18:30.815594151 +0100
@@ -1,0 +2,6 @@
+Thu Feb 11 14:40:29 UTC 2021 - Matthias Mail??nder <[email protected]>
+
+- use maven local
+- drop commons-math3-3.6.1-notests.patch
+
+-------------------------------------------------------------------
Old:
----
commons-math3-3.6.1-notests.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ apache-commons-math.spec ++++++
--- /var/tmp/diff_new_pack.KP252Z/_old 2021-02-15 23:18:31.399595022 +0100
+++ /var/tmp/diff_new_pack.KP252Z/_new 2021-02-15 23:18:31.403595029 +0100
@@ -1,7 +1,7 @@
#
# spec file for package apache-commons-math
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,10 @@
Summary: The Apache Commons Mathematics Library
License: Apache-2.0
URL: http://commons.apache.org/%{base_name}/
-Source0:
http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz
-Patch0: commons-math3-3.6.1-notests.patch
-BuildRequires: ant
-BuildRequires: ant-junit
+Source:
http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}3-%{version}-src.tar.gz
BuildRequires: java-devel >= 1.8
-BuildRequires: javapackages-local
+BuildRequires: maven-local
+BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildArch: noarch
%description
@@ -44,40 +42,22 @@
This package contains the API documentation for %{name}.
%prep
-%setup -q -n %{short_name}3-%{version}-src
-%patch0 -p1
+%autosetup -n %{short_name}3-%{version}-src
-%pom_remove_parent .
+%pom_remove_plugin :maven-antrun-plugin
+%pom_remove_plugin :build-helper-maven-plugin
%build
-export CLASSPATH=$(build-classpath ant-junit junit)
-ant -Dant.build.javac.source=8 -Dcompile.source=8 \
- -Dant.build.javac.target=8 -Dcompile.target=8 \
- -Dmaven.mode.offline=true -Dmaven.test.skip=true \
- -lib %{_datadir}/java -Dbuild.sysclasspath=first \
- jar javadoc
+%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
-# jars
-install -Dpm 644 target/%{short_name}*.jar
%{buildroot}%{_javadir}/%{short_name}.jar
-ln -sf %{_javadir}/%{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
-
-# pom
-install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
-%add_maven_depmap %{short_name}.pom %{short_name}.jar -a
%{short_name}:%{short_name}
-
-# javadoc
-install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
-cp -pr target/apidocs/ %{buildroot}%{_javadocdir}/%{name}
+%mvn_install
%files -f .mfiles
%license LICENSE.txt license-header.txt NOTICE.txt
%doc RELEASE-NOTES.txt
-%{_javadir}/%{name}.jar
-%files javadoc
+%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
-%{_javadocdir}/%{name}
%changelog