%global commit abf82149104ff3c70142ff1062e406cbd490da45 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: minimal-json Version: 0.9.1 Release: 1%{?dist} Summary: A Minimal JSON Parser and Writer License: EPL URL: https://github.com/ralfstx/%{name} Source0: https://github.com/ralfstx/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(org.mockito:mockito-core) %description A fast and minimal JSON parser and writer for Java. %package javadoc Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -qn %{name}-%{commit} %pom_disable_module com.eclipsesource.json.performancetest %build %mvn_build -s -- -f com.eclipsesource.json %install %mvn_install %files -f .mfiles-minimal-json %doc epl-v10.html README.md %files javadoc -f .mfiles-javadoc %doc epl-v10.html %changelog * Sun Oct 26 2014 Gerard Ryan - 0.9.1-1 - Initial package.