2022-03-22 12:21:02 +00:00
committed by Git OBS Bridge
parent 336de7f2b1
commit 7133869e1b
2 changed files with 17 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package java-comment-preprocessor
#
# 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
@@ -23,17 +23,19 @@ Summary: The Most Powerful Multi-Pass Java Preprocessor
License: Apache-2.0
URL: https://github.com/raydac/java-comment-preprocessor
Source0: https://github.com/raydac/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local fdupes
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.shared:file-management)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildArch: noarch
@@ -61,7 +63,11 @@ This package contains the API Documentation for %{name}.
find -name "*.jar" -or -name "*.class" | xargs rm -f
%build
%{mvn_build} -f -- -P'!metacheck' -Dsource=8
%{mvn_build} -f -- -P'!metacheck' \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install
%mvn_install