1
0
forked from pool/signpost-core
Fridrich Strba 2022-03-23 19:05:39 +00:00 committed by Git OBS Bridge
parent 278bb1e232
commit 12b46c834a
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 23 19:05:18 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with java source and target levels 8
-------------------------------------------------------------------
Thu Nov 21 18:30:42 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package signpost-core
#
# Copyright (c) 2019 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
@ -26,6 +26,7 @@ URL: https://github.com/mttkay/signpost
Source0: https://github.com/mttkay/signpost/archive/%{githash}/signpost-%{githash}.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
@ -79,10 +80,11 @@ sed -i 's/\r//' LICENSE
%{mvn_file} :signpost-commonshttp4 signpost-commonshttp4
%build
%{mvn_build} -s -f \
%{mvn_build} -s -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install
%mvn_install