From 572bc81e231c0124d29261c373b72d4b3eea6d97 Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: May 11 2012 12:59:00 +0000 Subject: Create also the jandex index jar files --- diff --git a/resteasy.spec b/resteasy.spec index e6165a7..2cc4820 100644 --- a/resteasy.spec +++ b/resteasy.spec @@ -3,7 +3,7 @@ Name: resteasy Version: 2.3.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Framework for RESTful Web services and Java applications Group: Development/Libraries License: ASL 2.0 and CDDL @@ -51,6 +51,7 @@ BuildRequires: jackson BuildRequires: jakarta-commons-httpclient BuildRequires: javamail BuildRequires: javassist +BuildRequires: jandex >= 1.0.3-4 # BuildRequires: jboss-ejb3-ext-api # BuildRequires: jbosscache-core # BuildRequires: jboss-web @@ -192,12 +193,20 @@ install -d -m 755 %{buildroot}%{_mavendepmapfragdir} # Install jars, poms and dependencies maps: while read module_path artifact_id additional_aid_gid do - jar_file=${module_path}/target/${artifact_id}-%{namedversion}.jar + base_name=${module_path}/target/${artifact_id}-%{namedversion} + jar_file=${base_name}.jar + jandex_file=${base_name}-jandex.jar pom_file=${module_path}/pom.xml install -pm 644 ${pom_file} %{buildroot}%{_mavenpomdir}/JPP.%{name}-${artifact_id}.pom if [ -f ${jar_file} ] then install -pm 644 ${jar_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}.jar + + # Create also the Jandex index files + # Required by JBoss AS7 + java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${jar_file} + install -pm 644 ${jandex_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}-jandex.jar + if [ -z "${additional_aid_gid}" ] then %add_maven_depmap JPP.%{name}-${artifact_id}.pom %{name}/${artifact_id}.jar @@ -257,6 +266,9 @@ cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %doc License.html %changelog +* Tue Apr 24 2012 Marek Goldmann 2.3.2-7 +- Create also the jandex index jar files + * Tue Apr 24 2012 Marek Goldmann 2.3.2-6 - Added resteasy-multipart-provider module