Create also the jandex index jar files
This commit is contained in:
parent
55f003d2ce
commit
572bc81e23
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: resteasy
|
Name: resteasy
|
||||||
Version: 2.3.2
|
Version: 2.3.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Framework for RESTful Web services and Java applications
|
Summary: Framework for RESTful Web services and Java applications
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0 and CDDL
|
License: ASL 2.0 and CDDL
|
||||||
@ -51,6 +51,7 @@ BuildRequires: jackson
|
|||||||
BuildRequires: jakarta-commons-httpclient
|
BuildRequires: jakarta-commons-httpclient
|
||||||
BuildRequires: javamail
|
BuildRequires: javamail
|
||||||
BuildRequires: javassist
|
BuildRequires: javassist
|
||||||
|
BuildRequires: jandex >= 1.0.3-4
|
||||||
# BuildRequires: jboss-ejb3-ext-api
|
# BuildRequires: jboss-ejb3-ext-api
|
||||||
# BuildRequires: jbosscache-core
|
# BuildRequires: jbosscache-core
|
||||||
# BuildRequires: jboss-web
|
# BuildRequires: jboss-web
|
||||||
@ -192,12 +193,20 @@ install -d -m 755 %{buildroot}%{_mavendepmapfragdir}
|
|||||||
# Install jars, poms and dependencies maps:
|
# Install jars, poms and dependencies maps:
|
||||||
while read module_path artifact_id additional_aid_gid
|
while read module_path artifact_id additional_aid_gid
|
||||||
do
|
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
|
pom_file=${module_path}/pom.xml
|
||||||
install -pm 644 ${pom_file} %{buildroot}%{_mavenpomdir}/JPP.%{name}-${artifact_id}.pom
|
install -pm 644 ${pom_file} %{buildroot}%{_mavenpomdir}/JPP.%{name}-${artifact_id}.pom
|
||||||
if [ -f ${jar_file} ]
|
if [ -f ${jar_file} ]
|
||||||
then
|
then
|
||||||
install -pm 644 ${jar_file} %{buildroot}%{_javadir}/%{name}/${artifact_id}.jar
|
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}" ]
|
if [ -z "${additional_aid_gid}" ]
|
||||||
then
|
then
|
||||||
%add_maven_depmap JPP.%{name}-${artifact_id}.pom %{name}/${artifact_id}.jar
|
%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
|
%doc License.html
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.3.2-6
|
||||||
- Added resteasy-multipart-provider module
|
- Added resteasy-multipart-provider module
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user