diff --git a/josm-0-add_classpath.patch b/josm-0-add_classpath.patch index 7d05cf3..20d830e 100644 --- a/josm-0-add_classpath.patch +++ b/josm-0-add_classpath.patch @@ -1,54 +1,52 @@ --- build.xml.patch1 2017-01-02 20:31:13.289502203 +0100 +++ build.xml 2017-01-02 20:46:47.217403900 +0100 @@ -37,6 +37,11 @@ - - + + -+ -+ -+ -+ -+ ++ ++ ++ ++ ++ @@ -221,7 +226,7 @@ Build-Date: ${build.tstamp} - + -- + destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false"> @@ -264,7 +269,7 @@ Build-Date: ${build.tstamp} - - + + - + excludes="com/**,javax/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/gui/jmapviewer/JMapViewerTree.java,org/openstreetmap/gui/jmapviewer/checkBoxTree/**,org/openstreetmap/josm/**,org/tukaani/**,gnu/**" + destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> @@ -287,7 +292,7 @@ Build-Date: ${build.tstamp} - - + + -- + excludes="com/**,javax/**,gnu/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/**,org/tukaani/**" + destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> -@@ -325,7 +330,8 @@ Build-Date: ${build.tstamp} +@@ -325,6 +330,7 @@ Build-Date: ${build.tstamp} diff --git a/josm-0-remove_errorprone.patch b/josm-0-remove_errorprone.patch index 56ac237..4b2ea12 100644 --- a/josm-0-remove_errorprone.patch +++ b/josm-0-remove_errorprone.patch @@ -1,51 +1,15 @@ ---- build.xml.patch3 2017-01-03 20:00:48.927351550 +0100 -+++ build.xml 2017-01-03 20:03:03.267943837 +0100 -@@ -25,8 +25,6 @@ - - - -- -- - -@@ -270,12 +268,9 @@ Build-Date: ${build.tstamp} - - - -- -- -- -- - - - -@@ -289,16 +284,12 @@ Build-Date: ${build.tstamp} - - - -- - - - -- -- -- -- - - - -@@ -312,7 +303,6 @@ Build-Date: ${build.tstamp} - - - -- - - - +diff -up josm-0/build.xml.error_prone josm-0/build.xml +--- josm-0/build.xml.error_prone 2018-03-26 09:16:19.814914570 +0200 ++++ josm-0/build.xml 2018-03-26 09:18:07.680603915 +0200 +@@ -51,10 +51,7 @@ + + + +- +- +- +- ++ + + + diff --git a/josm.spec b/josm.spec index 2667175..767f1dc 100644 --- a/josm.spec +++ b/josm.spec @@ -17,12 +17,13 @@ URL: https://josm.openstreetmap.de/ Source0: %{name}-%{version}.%{svn_revision}svn.tar.gz Source2: %{name}-generate-tarball.sh -#patch to remove metadata-extractor and signpost-core of final jar +# patch to remove metadata-extractor and signpost-core of final jar Patch1: %{name}-%{version}-add_classpath.patch #remove call to "svn info" and fix in build.xml revision and commit date Patch2: %{name}-%{version}-remove_svn_call.patch +# remove static analysis compiler error prone: Patch3: %{name}-%{version}-remove_errorprone.patch @@ -89,7 +90,7 @@ This package contains the API documentation for %{name}. %setup -q %patch1 -p0 %patch2 -p1 -%patch3 -p0 +%patch3 -p1 -b .error_prone find . -name '*.jar' -exec rm -f '{}' \; find . -name '*.class' -exec rm -f '{}' \;