Name: crc32ex Version: 0.1.2 Release: 1%{?dist} Summary: Java CRC32 Implementations License: ASL 2.0 URL: https://github.com/tjake/crc32ex Source0: https://github.com/tjake/crc32ex/archive/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description This library gives you a factory that, depending on your JVM version, will provide different implementations on CRC32. In JDK8 it uses the new intrinsic CRC32 native call. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} #%% pom_remove_plugin :maven-surefire-plugin %pom_xpath_remove -r "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:executable" %pom_xpath_remove -r "pom:plugin[pom:artifactId = 'maven-surefire-plugin']/pom:configuration/pom:jvm" %mvn_file : %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Wed Jul 22 2015 gil cattaneo 0.1.2-1 - initial rpm