Name: primitive Version: 1.2.2 Release: 2%{?dist} Summary: Utility methods for Java's primitive types License: GPLv2 with exceptions URL: https://github.com/mintern-java/primitive/ Source0: https://github.com/mintern-java/primitive/archive/%{version}.tar.gz # https://bugzilla.redhat.com/show_bug.cgi?id=1212672 Source1: fmpp.sh # https://github.com/mintern-java/primitive/issues/5 Patch0: https://github.com/mintern-java/primitive/commit/cbe3d5d5a1792d0e325e948f7a765cae7ff8e2e7.patch BuildRequires: maven-local # BuildRequires: mvn(com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin) BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.sourceforge.fmpp:fmpp) BuildArch: noarch %description Primitive provides utility methods for functionality related to primitive types. Currently, the only functionality is the ability to sort primitive arrays using custom comparators. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -qn %{name}-%{version} %patch0 -p1 %pom_remove_plugin com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin %mvn_file :%{name} %{name} %build # Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=13658423 mkdir src/main/java sh %{SOURCE1} -C src/main/fmpp/Primitive.fmpp -S src/main/fmpp/templates -O src/main/java %mvn_build %install %mvn_install %files -f .mfiles %doc CHANGELOG.md README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Thu Apr 21 2016 Tomas Repik - 1.2.2-2 - new patch for license headers * Thu Apr 14 2016 gil cattaneo 1.2.2-1 - initial rpm