1
0
Fridrich Strba 2022-03-21 14:35:10 +00:00 committed by Git OBS Bridge
parent 65c2faff9b
commit 6bd5728206
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 21 14:34:17 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with maven.compiler.release=8 on any JDK >= 9
-------------------------------------------------------------------
Thu Feb 27 08:46:00 UTC 2020 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package aho-corasick-double-array-trie
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ URL: https://github.com/hankcs/AhoCorasickDoubleArrayTrie
Source0: https://github.com/hankcs/AhoCorasickDoubleArrayTrie/archive/v%{version}.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildArch: noarch
@ -44,7 +45,11 @@ cp %{SOURCE1} .
%pom_remove_plugin :maven-source-plugin
%build
%{mvn_build} -f -- -Dsource=6
%{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install
%mvn_install