Create also the jandex index jar files

This commit is contained in:
Marek Goldmann 2012-05-11 14:59:00 +02:00
parent 55f003d2ce
commit 572bc81e23

View File

@ -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@redhat.com> 2.3.2-7
- Create also the jandex index jar files
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-6
- Added resteasy-multipart-provider module