# # spec file for package java-comment-preprocessor # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: java-comment-preprocessor Version: 6.1.4 Release: 0 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 Patch0: java-comment-preprocessor-logger.patch 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.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.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 %description It is the most powerful multi-pass preprocessor for Java but also it can be used everywhere for text processing if the destination technology supports Java like comment definitions. %package javadoc Summary: API docs for %{name} %description javadoc This package contains the API Documentation for %{name}. %prep %setup -q %patch -P 0 -p1 # remove unpackaged and dangerous deps %pom_remove_plugin :animal-sniffer-maven-plugin %pom_remove_plugin :maven-shade-plugin %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-surefire-plugin %pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']/pom:configuration" " jcp" # remove any binary libs find -name "*.jar" -or -name "*.class" | xargs rm -f %build %{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 %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license texts/LICENSE-2.0.txt %doc texts/readme.txt %files javadoc -f .mfiles-javadoc %license texts/LICENSE-2.0.txt %changelog