Disable bnd-maven-plugin in RHEL
This commit is contained in:
parent
882e32b20f
commit
f6d9dbe9c2
@ -1,5 +1,11 @@
|
||||
%bcond_with bootstrap
|
||||
|
||||
%if !0%{?rhel} && %{without bootstrap}
|
||||
%bcond_without bnd_maven_plugin
|
||||
%else
|
||||
%bcond_with bnd_maven_plugin
|
||||
%endif
|
||||
|
||||
Name: javaparser
|
||||
Version: 3.25.6
|
||||
Release: 2%{?dist}
|
||||
@ -12,13 +18,15 @@ Source0: https://github.com/javaparser/javaparser/archive/%{name}-parent-%
|
||||
BuildRequires: javapackages-bootstrap
|
||||
%else
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
|
||||
BuildRequires: mvn(net.java.dev.javacc:javacc)
|
||||
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(javax.annotation:javax.annotation-api)
|
||||
BuildRequires: mvn(junit:junit)
|
||||
%endif
|
||||
%if %{with bnd_maven_plugin}
|
||||
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
|
||||
%endif
|
||||
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
@ -45,6 +53,12 @@ sed -i 's/\r//' readme.md
|
||||
%pom_remove_plugin :maven-source-plugin
|
||||
%pom_remove_plugin :coveralls-maven-plugin
|
||||
|
||||
%if %{without bnd_maven_plugin}
|
||||
%pom_remove_plugin :bnd-maven-plugin javaparser-core
|
||||
mkdir -p javaparser-core/target/classes/META-INF/
|
||||
touch javaparser-core/target/classes/META-INF/MANIFEST.MF
|
||||
%endif
|
||||
|
||||
# Compatibility alias
|
||||
%mvn_alias :javaparser-core com.google.code.javaparser:javaparser
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user