From 965b3136ca48cb21455cb1e1c598cd3416927e551a14a54bf3cab816c29cf9c5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 30 Oct 2017 15:16:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-atk-wrapper?expand=0&rev=20 --- java-atk-wrapper.changes | 6 ++---- java-atk-wrapper.spec | 8 ++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/java-atk-wrapper.changes b/java-atk-wrapper.changes index 750664f..2782f1b 100644 --- a/java-atk-wrapper.changes +++ b/java-atk-wrapper.changes @@ -4,10 +4,8 @@ Thu Oct 26 20:31:48 UTC 2017 - fstrba@suse.com - Added patch: * jaw-java9.patch + Let the java-atk-wrapper implement the - javax.accessibility.AccessibilityProvider - + Require jdk9 for build, since this class was introduced in - jdk9 -- Build with jdk9 or higher + javax.accessibility.AccessibilityProvider if building with + jdk9 ------------------------------------------------------------------- Thu Oct 26 20:21:22 UTC 2017 - fstrba@suse.com diff --git a/java-atk-wrapper.spec b/java-atk-wrapper.spec index 3930b26..f5140a1 100644 --- a/java-atk-wrapper.spec +++ b/java-atk-wrapper.spec @@ -35,6 +35,7 @@ Patch2: jaw-quotes.patch Patch3: jaw-java9.patch BuildRequires: autoconf BuildRequires: automake +BuildRequires: java-devel >= 1-7 BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xprop @@ -51,11 +52,6 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gthread-2.0) Requires: java >= 1.7 Requires: xprop -%if 0%{?suse_version} >= 1330 -BuildRequires: java-devel >= 9 -%else -BuildRequires: java-devel >= 1-7 -%endif %description Java ATK Wrapper is a implementation of ATK by using JNI technic. It @@ -72,7 +68,7 @@ change of underlying communication mechanism. %patch0 -p1 %patch1 -p1 %patch2 -p1 -%if 0%{?suse_version} >= 1330 +%if %{?pkg_vcmp:%{pkg_vcmp} java-devel >= 9}%{!?pkg_vcmp:0} %patch3 -p1 %endif cp %{SOURCE1} .