%bcond_with bootstrap Name: opentest4j Version: 1.3.0 Release: %autorelease Summary: Open Test Alliance for the JVM License: Apache-2.0 URL: https://github.com/ota4j-team/opentest4j BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local BuildRequires: mvn(junit:junit) %endif %description Open Test Alliance for the JVM is a minimal common foundation for testing libraries on the JVM. The primary goal of the project is to enable testing frameworks like JUnit, TestNG, Spock, etc. and third-party assertion libraries like Hamcrest, AssertJ, etc. to use a common set of exceptions that IDEs and build tools can support in a consistent manner across all testing scenarios -- for example, for consistent handling of failed assertions and failed assumptions as well as visualization of test execution in IDEs and reports. %package javadoc Summary: API documentation for %{name} %description javadoc API documentation for %{name}. %prep %autosetup -p1 -C find -name \*.jar -delete cp -p %{SOURCE100} pom.xml mv src/module/java/* src/main/java %pom_add_dep junit:junit::test %pom_xpath_inject pom:project " maven-jar-plugin opentest4j opentest4j.org %{version} opentest4j opentest4j.org %{version} 2 org.opentest4j %{version} org.opentest4j;version=\"%{version}\" org.apache.maven.plugins maven-compiler-plugin default-compile compile 8 **/module-info.java module-info compile 9 **/module-info.java default-testCompile testCompile 11 " # Fix unused reference to unused dependency # This is fixed upstream: https://github.com/ota4j-team/opentest4j/commit/70d3d54f2cd076a962e81d9510e6716f3cbf8060 sed -i -e '/org\.apache\.commons\.codec/d' src/test/java/org/opentest4j/AssertionFailedErrorTests.java %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog %autochangelog