%global oname java-semver Name: jsemver Version: 0.9.0 Release: 1%{?dist} Summary: Java implementation of the SemVer Specification License: MIT URL: https://github.com/zafarkhaja/jsemver Source0: https://github.com/zafarkhaja/jsemver/archive/%{version}.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description Java SemVer is versioned according to the SemVer Specification. NOTE: The current release of the Java SemVer library has a major version of zero which according to the SemVer p.4 means that the library is under initial development and its public API should not be considered stable. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n jsemver-%{version} # cleanup find -name "*.class" -print -delete find -name "*.jar" -print -delete %mvn_file :%{oname} %{name} %{oname} %build %mvn_build %install %mvn_install %files -f .mfiles %doc CHANGELOG.md README.md %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Fri Nov 13 2015 gil cattaneo 0.9.0-1 - initial rpm