Name: fishbowl Version: 1.4.1 Release: 2%{?dist} Summary: A collection of helper methods for dealing with exceptions in Java 8 License: MIT URL: https://stefanbirkner.github.io/fishbowl BuildArch: noarch Source0: https://github.com/stefanbirkner/%{name}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.assertj:assertj-core) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.hamcrest:hamcrest-library) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.testng:testng) %description Fishbowl provides helper methods for dealing with exceptions. %{?javadoc_package} %prep %autosetup -n %{name}-%{name}-%{version} find -type f '(' -iname '*.jar' -o -iname '*.class' ')' -print -delete %pom_remove_parent # add groupId as consequences of removing parent # see: http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#the-solution %pom_xpath_inject pom:project 'com.github.stefanbirkner' # remove test deps not available in repo %pom_remove_dep com.google.truth:truth %pom_remove_dep de.bechte.junit:junit-hierarchicalcontextrunner %pom_remove_dep org.easytesting:fest-assert # remove junit-hierarchicalcontextrunner annotations as consequences of removing deps find -name '*.java' | xargs sed -ri 's/^import .*\.HierarchicalContextRunner;//;s/@.*\(HierarchicalContextRunner.*\)//g' # remove tests since truth and fest-assert is unavailable rm ./src/test/java8/com/github/stefanbirkner/fishbowl/FishbowlJUnitReadmeTest.java rm ./src/test/java8/com/github/stefanbirkner/fishbowl/FishbowlTestNgReadmeTest.java %build %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install %files -f .mfiles %license LICENSE %doc README.md %changelog * Fri Oct 22 2021 Didik Supriadi - 1.4.1-2 - Add BRs: mockito, testng, assertj - Fix TestSuite * Fri Sep 17 2021 Didik Supriadi - 1.4.1-1 - Initial package