%global commit 0a3b42373f38883cc1f68388eba33967baac8980 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: jabrt Version: 1.0 Release: 1.git%{shortcommit}%{?dist} Summary: ABRT Java bindings License: GPLv2+ URL: https://github.com/mozeq/%{name} Source0: http://jmoskovc.fedorapeople.org/jabrt-1.0-git%{shortcommit}.tar.gz Source1: http://www.gnu.org/licenses/gpl-2.0.txt BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(com.github.jnr:jnr-unixsocket) BuildRequires: mvn(junit:junit) %description ABRT Java bindings providing a convenient way to report problems %package javadoc Summary: API documentation for %{name} %description javadoc This package contains %{summary}. %prep %setup -q -n %{name}-%{version}-%{commit} cp %{SOURCE1} LICENSE %build %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE %files javadoc -f .mfiles-javadoc %doc LICENSE %changelog * Fri Sep 6 2013 Jiri Moskovcak 1.0-1.git0a3b423 - initial packaging