From 49a3228f13f648abcbf7802bec7a0b18ac1290a3 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 18 Nov 2016 08:16:13 +0100 Subject: [PATCH] Update to latest upstream snapshot --- ...lugin-instead-of-groovy-maven-plugin.patch | 66 +++++++++++++++++++ maven.spec | 18 ++++- sources | 2 +- 3 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch diff --git a/0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch b/0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch new file mode 100644 index 0000000..53ddcfc --- /dev/null +++ b/0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch @@ -0,0 +1,66 @@ +From 1390c2b59fe82c4b0f76b18782e9ed28b82a71e8 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Fri, 18 Nov 2016 08:51:46 +0100 +Subject: [PATCH] Use exec-maven-plugin instead of groovy-maven-plugin + +--- + maven-slf4j-provider/pom.xml | 20 ++++++++++++-------- + .../src/main/script/patch-slf4j-simple.groovy | 2 +- + 2 files changed, 13 insertions(+), 9 deletions(-) + +diff --git a/maven-slf4j-provider/pom.xml b/maven-slf4j-provider/pom.xml +index ecb93e8..039b332 100644 +--- a/maven-slf4j-provider/pom.xml ++++ b/maven-slf4j-provider/pom.xml +@@ -95,22 +95,26 @@ under the License. + + + +- org.codehaus.gmaven +- groovy-maven-plugin +- 2.0 ++ org.codehaus.mojo ++ exec-maven-plugin ++ 1.5.0 + + + patch-slf4j-simple + process-sources + +- execute ++ exec + +- +- ${project.basedir}/src/main/script/patch-slf4j-simple.groovy +- + + ++ ++ groovy ++ ${project.basedir} ++ ++ src/main/script/patch-slf4j-simple.groovy ++ ++ + + + +- +\ No newline at end of file ++ +diff --git a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy +index bba8646..a6ad10b 100644 +--- a/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy ++++ b/maven-slf4j-provider/src/main/script/patch-slf4j-simple.groovy +@@ -18,7 +18,7 @@ + * under the License. + */ + +-dir = new File( basedir, 'target/generated-sources/slf4j-simple/org/slf4j/impl' ); ++dir = new File( '.', 'target/generated-sources/slf4j-simple/org/slf4j/impl' ); + + file = new File( dir, 'StaticLoggerBinder.java' ); + content = file.text; +-- +2.7.4 + diff --git a/maven.spec b/maven.spec index f167085..4c492c4 100644 --- a/maven.spec +++ b/maven.spec @@ -2,20 +2,21 @@ Name: maven Version: 3.4.0 -Release: 0.2.20160807git9f2452a%{?dist} +Release: 0.3.20160807git8ae1a3e%{?dist} Summary: Java project management and project comprehension tool License: ASL 2.0 URL: http://maven.apache.org/ BuildArch: noarch #Source0: http://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz -Source0: https://git-wip-us.apache.org/repos/asf?p=maven.git;a=snapshot;h=9f2452a;sf=tgz#/apache-%{name}-%{version}-SNAPSHOT-src.tar.gz +Source0: https://git-wip-us.apache.org/repos/asf?p=maven.git;a=snapshot;h=8ae1a3e;sf=tgz#/apache-%{name}-%{version}-SNAPSHOT-src.tar.gz Source1: maven-bash-completion Source2: mvn.1 Source200: %{name}-script Patch0: 0001-Force-SLF4J-SimpleLogger-re-initialization.patch Patch1: 0002-Adapt-mvn-script.patch +Patch2: 0001-Use-exec-maven-plugin-instead-of-groovy-maven-plugin.patch BuildRequires: maven-local @@ -79,6 +80,11 @@ BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin) BuildRequires: gossip BuildRequires: jansi BuildRequires: maven-shared-utils +BuildRequires: groovy +BuildRequires: maven-plugin-exec +BuildRequires: maven-plugin-build-helper +BuildRequires: maven-dependency-plugin +BuildRequires: slf4j-sources Requires: %{name}-lib = %{version}-%{release} @@ -144,6 +150,7 @@ Summary: Core part of Maven # If XMvn is part of the same RPM transaction then it should be # installed first to avoid triggering rhbz#1014355. OrderWithRequires: xmvn-minimal +Provides: bundled(slf4j) %description lib Core part of Apache Maven that can be used as a library. @@ -156,9 +163,10 @@ Summary: API documentation for %{name} %prep #setup -q -n apache-%{name}-%{version}%{?ver_add} -%setup -q -n %{name}-9f2452a +%setup -q -n %{name}-8ae1a3e %patch0 -p1 %patch1 -p1 +%patch2 -p1 # not really used during build, but a precaution rm -f maven-ant-tasks-*.jar @@ -287,6 +295,10 @@ ln -sf $(build-classpath plexus/classworlds) \ %changelog +* Fri Nov 18 2016 Mikolaj Izdebski - 3.4.0-0.3.20160807git8ae1a3e +- Update to latest upstream snapshot +- Source-bundle slf4j-simple + * Mon Aug 15 2016 Michael Simacek - 3.4.0-0.2.20160807git9f2452a - Use patched upstream launcher instead of custom script diff --git a/sources b/sources index 8bc6a50..fab4631 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4d36c6d6232a9ca1c6362112fc3c0e1c apache-maven-3.4.0-SNAPSHOT-src.tar.gz +201c86b1f6f54f1193494404765b1abe apache-maven-3.4.0-SNAPSHOT-src.tar.gz