%global xmvn_bootstrap 1 # # spec file for package jandex # # 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/ # %global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jandex Version: 2.4.2 Release: 9.40 Summary: Java Annotation Indexer License: Apache-2.0 URL: https://github.com/wildfly/jandex Source0: %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: maven-source-plugin %if 0%{?rhel} >= 9 BuildRequires: xmvn-tools BuildRequires: xmvn-minimal %endif BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.jboss:jboss-parent:pom:) BuildArch: noarch %description This package contains Java Annotation Indexer %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{namedversion} %pom_remove_dep :typeannotation-test rm src/test/java/org/jboss/jandex/test/TypeAnnotationTestCase.java # Unavailable doclet %pom_remove_plugin :maven-javadoc-plugin %pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8" %pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8" %build %{mvn_build} -f -- -Dsource=8 %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %doc README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Fri Sep 23 2022 Stefan Bluhm - Adapted to build on Enterprise Linux 9. * Sat Aug 20 2022 Michael Calmer - Initial packaging of the new jandex 2.4.2 (jsc#SLE-23217)