Name: javawriter Version: 2.5.1 Release: 1%{?dist} Summary: A Java API for generating .java source files License: ASL 2.0 URL: https://github.com/square/javapoet Source0: https://github.com/square/javapoet/archive/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) %if 0 # Test deps BuildRequires: mvn(junit:junit) # Unavailable test deps BuildRequires: mvn(org.easytesting:fest-assert-core:2.0M8) %endif BuildArch: noarch %description A utility class which aids in generating Java source files. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n javapoet-%{name}-%{version} %pom_xpath_remove "pom:dependency[pom:scope = 'test']" %pom_remove_plugin :maven-checkstyle-plugin %mvn_file : %{name} %build # Unavailable test deps: org.easytesting:fest-assert-core:2.0M8 %mvn_build -f %install %mvn_install %files -f .mfiles %doc CHANGELOG.md CONTRIBUTING.md README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Tue Mar 31 2015 gil cattaneo 2.5.1-1 - initial rpm