%global githash e4d67e5344738cb22e7c749fae34e3bdec4a3ab1
%global shorthash %(c=%{githash}; echo ${c:0:7})
Name: rome-utils
Version: 1.6.0
Release: 0.1.git%{shorthash}%{?dist}
Summary: Utility classes for ROME projects
License: ASL 2.0
URL: https://github.com/rometools/rome-utils
Source0: https://github.com/rometools/rome-utils/archive/%{githash}/%{githash}.tar.gz
BuildRequires: maven-local
# https://bugzilla.redhat.com/show_bug.cgi?id=1305237
# BuildRequires: mvn(com.rometools:rome-parent)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildArch: noarch
%description
Utility classes for ROME projects.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{githash}
%pom_remove_parent
%pom_xpath_inject "pom:project" "com.rometools"
%mvn_file com.rometools:%{name} %{name}
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc README.md
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Thu Feb 11 2016 gil cattaneo 1.6.0-0.1.gite4d67e5
- update to 1.6.0-SNAPSHOT
* Thu Nov 19 2015 gil cattaneo 1.5.1-1
- update to 1.5.1
* Fri Jan 23 2015 gil cattaneo 1.5.0-1
- initial rpm