Name: sisu-xmlrpc Version: 1.2.0 Release: 1%{?dist} Summary: A Java implementation of XML-RPC with Async Http Client support License: ASL 2.0 URL: https://github.com/sonatype/sisu-xmlrpc Source0: https://github.com/sonatype/sisu-xmlrpc/archive/%{name}-%{version}.tar.gz # sisu-xmlrpc package don't include the license file # reported @ https://github.com/sonatype/sisu-xmlrpc/issues/3 Source1: http://www.apache.org/licenses/LICENSE-2.0.txt # build fix for servlet 3.1.0 apis Patch0: sisu-xmlrpc-1.2.0-javax-methods.patch BuildRequires: maven-local BuildRequires: mvn(com.ning:async-http-client) >= 1.5.0 BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(junit:junit) %if 0 # BuildRequires: mvn(org.apache.ws.jaxme:jaxmeapi) BuildRequires: mvn(jaxme:jaxmeapi) %endif BuildRequires: mvn(org.apache.ws.commons.util:ws-commons-util) %if %{?fedora} > 20 BuildRequires: mvn(org.sonatype.forge:forge-parent:pom:) %else BuildRequires: mvn(org.sonatype.forge:forge-parent) %endif BuildArch: noarch %description Sisu XML-RPC is a Java implementation of XML-RPC, a popular protocol that uses XML over HTTP to implement remote procedure calls. Compared to SOAP, or JAX-RPC, it is stable, much simpler and easier to handle. Sisu XML-RPC provides HTTP transport pluggability via Async HTTP Client. %package client Summary: Sisu XML-RPC :: Client Library %description client Sisu XML-RPC :: Client Library. %package server Summary: Sisu XML-RPC :: Server Library %description server Sisu XML-RPC :: Server Library. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{name}-%{version} %patch0 -p1 cp -p %{SOURCE1} . sed -i 's/\r//' LICENSE-2.0.txt %pom_remove_dep jaxme:jaxmeapi %pom_remove_dep jaxme:jaxmeapi %{name}-common #%%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'jaxmeapi' ]/pom:groupId" org.apache.ws.jaxme %%{name}-common %mvn_package :%{name}-common %{name} %build # ignore test failure because server part needs network %mvn_build -s -- -Dmaven.test.failure.ignore=true %install %mvn_install %files -f .mfiles-%{name} %license LICENSE-2.0.txt %files client -f .mfiles-%{name}-client %license LICENSE-2.0.txt %files server -f .mfiles-%{name}-server %license LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %license LICENSE-2.0.txt %changelog * Wed Jun 12 2013 gil cattaneo 1.2.0-1 - initial rpm