%bcond_with bootstrap Name: apache-commons-beanutils Version: 1.9.4 Release: %autorelease Summary: Java utility methods for accessing and modifying the properties of arbitrary JavaBeans License: Apache-2.0 URL: http://commons.apache.org/beanutils BuildArch: noarch ExclusiveArch: %{java_arches} noarch Source0: http://archive.apache.org/dist/commons/beanutils/source/commons-beanutils-%{version}-src.tar.gz %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) %endif %description The scope of this package is to create a package of Java utility methods for accessing and modifying the properties of arbitrary JavaBeans. No dependencies outside of the JDK are required, so the use of this package is very lightweight. %package javadoc Summary: Javadoc for %{name} %description javadoc %{summary}. %prep %autosetup -p1 -n commons-beanutils-%{version}-src sed -i 's/\r//' *.txt %pom_remove_plugin :maven-assembly-plugin %mvn_alias :{*} :@1-core :@1-bean-collections %mvn_alias :{*} org.apache.commons:@1 org.apache.commons:@1-core org.apache.commons:@1-bean-collections %mvn_file : %{name} %{name}-core %{name}-bean-collections %mvn_file : commons-beanutils commons-beanutils-core commons-beanutils-bean-collections %build # Some tests fail in Koji %mvn_build -f -- -Dcommons.packageId=beanutils %install %mvn_install %files -f .mfiles %doc RELEASE-NOTES.txt %license LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog %autochangelog