%global namedreltag -RC1 %global namedversion %{version}%{?namedreltag} Name: xml-matchers Version: 1.0 Release: 0.1.RC1%{?dist} Summary: A collection of Hamcrest matchers for XML License: ASL 2.0 URL: https://code.google.com/p/xml-matchers/ # svn export http://xml-matchers.googlecode.com/svn/tags/xml-matchers-1.0-RC1 # tar cJf xml-matchers-1.0-RC1.tar.xz xml-matchers-1.0-RC1 Source0: %{name}-%{namedversion}.tar.xz BuildRequires: mvn(junit:junit) # use Saxon-HE 9.4 BuildRequires: mvn(net.sf.saxon:saxon) BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.hamcrest:hamcrest-generator) BuildRequires: mvn(org.hamcrest:hamcrest-library) %if %{fedora} >= 21 BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) %else BuildRequires: mvn(org.sonatype.oss:oss-parent) %endif BuildRequires: mvn(xmlunit:xmlunit) BuildRequires: maven-local BuildArch: noarch %description A collection of Hamcrest matchers for XML documents. The matchers include XPath 1.0 and 2.0, schema validation using XML Schema or RelaxNG(experimental), and XML document equivalence. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{namedversion} # Fix deps aId # see https://bugzilla.redhat.com/show_bug.cgi?id=1076620 sed -i "s|Saxon-HE|saxon|" pom.xml sed -i "s|junit-dep|junit|" pom.xml %mvn_file :%{name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc license.txt notice.txt %files javadoc -f .mfiles-javadoc %doc license.txt notice.txt %changelog * Sun Jan 25 2015 gil cattaneo 1.0-0.1.RC1 - initial rpm