[resteasy/f17] Create also the jandex index jar files
Marek Goldmann
goldmann at fedoraproject.org
Fri May 11 13:04:06 UTC 2012
commit 572bc81e231c0124d29261c373b72d4b3eea6d97
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date: Fri May 11 14:59:00 2012 +0200
Create also the jandex index jar files
resteasy.spec | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
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 <mgoldman at redhat.com> 2.3.2-7
+- Create also the jandex index jar files
+
* Tue Apr 24 2012 Marek Goldmann <mgoldman at redhat.com> 2.3.2-6
- Added resteasy-multipart-provider module
More information about the scm-commits
mailing list