%global namedreltag .20120309gita3c227 %global namedversion %{version}%{?namedreltag} Name: jboss-jaxrpc-1.1-api Version: 1.0.1 Release: 0.1%{namedreltag}%{dist} Summary: Java API for XML-Based RPC (JAX-RPC) 1.1 Group: Development/Libraries License: CDDL or GPLv2 with exceptions Url: http://www.jboss.org # git clone git://github.com/jboss/jboss-jaxrpc-api_spec.git jboss-jaxrpc-1.1-api # cd jboss-jaxrpc-1.1-api/ && git archive --format=tar --prefix=jboss-jaxrpc-1.1-api/ a3c2279bc2cd24127870dbadd6b4ba5ae3655396 | xz > jboss-jaxrpc-1.1-api-1.0.1.20120309gita3c227.tar.xz Source0: %{name}-%{namedversion}.tar.xz BuildRequires: jboss-servlet-3.0-api BuildRequires: java-devel BuildRequires: jboss-specs-parent BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin Requires: jboss-servlet-3.0-api Requires: jpackage-utils Requires: java BuildArch: noarch %description The JAX-RPC 1.1 API classes. %package javadoc Summary: Javadocs for %{name} Group: Development/Libraries Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n jboss-jaxrpc-1.1-api %build mvn-rpmbuild install javadoc:aggregate %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} # JAR install -pm 644 target/jboss-jaxrpc-api_1.1_spec-%{version}-SNAPSHOT.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # POM install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom # DEPMAP %add_maven_depmap JPP-%{name}.pom %{name}.jar # APIDOCS cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %doc README LICENSE %files javadoc %{_javadocdir}/%{name} %doc LICENSE %changelog * Fri Mar 09 2012 Marek Goldmann 1.0.1-0.1.20120309gita3c227 - Packaging after license cleanup upstrea * Mon Oct 24 2011 Marek Goldmann 1.0.1-2 - Fixed apidocs issue * Thu Aug 11 2011 Marek Goldmann 1.0.1-1 - Initial packaging