Name: jsemver Version: 0.9.0 Release: %autorelease Summary: A Java implementation of the Semantic Versioning Specification License: MIT URL: https://github.com/zafarkhaja/jsemver Source0: https://github.com/zafarkhaja/jsemver/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: maven-local BuildRequires: maven-compiler-plugin >= 3.2 BuildRequires: junit >= 4.12 %description JSemVer (formerly Java SemVer) is a Java implementation of version 2.0.0 of the Semantic Versioning Specification %package javadoc Summary: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name} %prep %setup -q sed -i 's|1.6|1.7|g' pom.xml find -name \*.jar -delete find -name \*.class -delete # remove unnecessary dependency on parent POM %pom_remove_parent %build %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %dir %{_mavenpomdir}/%{name} %doc CHANGELOG.md %doc README.md %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog %autochangelog