%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: common Version: 1.0.5 Release: 1%{?dist} Summary: OCPsoft Common API and Utilities License: ASL 2.0 URL: https://github.com/ocpsoft/common/ Source0: https://github.com/ocpsoft/common/archive/%{namedversion}.tar.gz.1 BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildArch: noarch %description OCPsoft Common APIs and Utilities. %package parent Summary: OCPsoft Common - Parent POM %description parent Parent POM for Common API and Utilities. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n common-%{namedversion} # org.ocpsoft:ocpsoft-parent:pom:6 %pom_remove_parent %build %mvn_build -s %install %mvn_install %files -f .mfiles-%{name}-api %doc README %license LICENSE NOTICE %files parent -f .mfiles-%{name}-parent %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Tue Mar 29 2016 gil cattaneo 1.0.5-1 - initial rpm