From 3618a18e7b326e2c53bb4a34d8dd45f015bc1e820b120fbf68af91a901c52329 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 24 Oct 2018 08:31:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/javapackages-tools?expand=0&rev=50 --- suse-no-epoch.patch | 58 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/suse-no-epoch.patch b/suse-no-epoch.patch index 95585c4..0b08bd4 100644 --- a/suse-no-epoch.patch +++ b/suse-no-epoch.patch @@ -1,5 +1,5 @@ --- javapackages-5.3.0/depgenerators/maven.req 2018-08-06 17:09:06.000000000 +0200 -+++ javapackages-5.3.0/depgenerators/maven.req 2018-10-24 09:50:40.415911553 +0200 ++++ javapackages-5.3.0/depgenerators/maven.req 2018-10-24 10:29:11.404375107 +0200 @@ -295,9 +295,9 @@ def _get_java_requires(self, reqs): major, minor = max([self._parse_java_requires(x) for x in reqs]) @@ -12,3 +12,59 @@ def _parse_java_requires(self, req): match = re.match(r'^(\d+)(?:\.(\d+))?$', req) +--- javapackages-5.3.0/test/maven_req_test.py 2018-08-06 17:09:06.000000000 +0200 ++++ javapackages-5.3.0/test/maven_req_test.py 2018-10-24 10:28:59.408310751 +0200 +@@ -30,7 +30,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:1.6") ++ "java-headless >= 1.6") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java2/buildroot/usr/share/maven-metadata/require.xml"]) +@@ -38,7 +38,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:1.8") ++ "java-headless >= 1.8") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java3/buildroot/usr/share/maven-metadata/require.xml"]) +@@ -46,7 +46,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:1.8") ++ "java-headless >= 1.8") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java9/buildroot/usr/share/maven-metadata/require.xml"]) +@@ -54,7 +54,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:9") ++ "java-headless >= 9") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java10/buildroot/usr/share/maven-metadata/require.xml"]) +@@ -62,7 +62,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:10") ++ "java-headless >= 10") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java9and10/buildroot/usr/share/maven-metadata/require.xml"]) +@@ -70,7 +70,7 @@ + self.assertEqual(return_value, 0, stderr) + sout = [x for x in stdout.split('\n') if x] + want = ("javapackages-filesystem", "mvn(org.apache.maven:maven-project)", +- "java-headless >= 1:10") ++ "java-headless >= 10") + self.assertEqual(set(want), set(sout)) + + @mavenreq(["require-java-fail/buildroot/usr/share/maven-metadata/require.xml"])