%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jboss-jaxrs-1.1-api Version: 1.0.1 Release: 2%{?dist} Summary: Java API for RESTful Web Services (JAX-RS) 1.1 Group: Development/Libraries License: CDDL URL: http://www.jboss.org # git clone git://github.com/jboss/jboss-jaxrs-api_spec.git # cd jboss-jaxrs-api_spec/ && git archive --format=tar --prefix=jboss-jaxrs-1.1-api/ jboss-jaxrs-api_1.1_spec-1.0.1.Final | xz > jboss-jaxrs-1.1-api-1.0.1.Final.tar.xz Source0: jboss-jaxrs-1.1-api-%{namedversion}.tar.xz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-enforcer-plugin Requires: java Requires: jpackage-utils BuildArch: noarch %description JSR 311: The Javai API for RESTful Web Services (JAX-RS) 1.1 %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n jboss-jaxrs-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-jaxrs-api_1.1_spec-%{namedversion}.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 LICENSE %files javadoc %{_javadocdir}/%{name} %doc LICENSE %changelog * Wed May 23 2012 Marek Goldmann 1.0.1-2 - Fixed summary and description * Wed Apr 04 2012 Marek Goldmann 1.0.1-1 - Upstream release 1.0.1.Final - Fixed R and BR * Fri Mar 09 2012 Marek Goldmann 1.0.1-0.1.20120309git3c3e7a - Packaging after license cleanup upstream * Fri Sep 23 2011 Marek Goldmann 1.0.0-1 - Initial packaging