Name: joor Version: 0.9.5 Release: 1%{?dist} Summary: Java Fluent Reflection # All files are under dual license License: ASL 2.0 and BSD URL: https://github.com/jOOQ/jOOR/ Source0: https://github.com/jOOQ/jOOR/archive/version-%{version}/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description jOOR stands for Java Object Oriented Reflection. It is a simple wrapper for the java.lang.reflect package. Fluent Reflection in Java jOOR is a very simple fluent API that gives access to your Java Class structures in a more intuitive way. The JDK's reflection APIs are hard and verbose to use. Other languages have much simpler constructs to access type meta information at run-time. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n jOOR-version-%{version} # Convert from dos to unix line ending for file in README.md jOOR/template/RELEASENOTES.txt; do sed -i.orig 's|\r||g' $file touch -r $file.orig $file rm $file.orig done %pom_remove_plugin :maven-eclipse-plugin jOOR %mvn_file org.jooq:%{name} %{name} %build %mvn_build -- -f jOOR/pom.xml %install %mvn_install %files -f .mfiles %doc README.md jOOR/template/RELEASENOTES.txt jOOR/template/README.txt %license jOOR/LICENSE.txt %files javadoc -f .mfiles-javadoc %license jOOR/LICENSE.txt %changelog * Thu May 05 2016 gil cattaneo 0.9.5-1 - initial rpm