Build on ia64, ppc64, s390 and s390x

This commit is contained in:
gbenson 2005-07-18 13:24:10 +00:00
parent c901158359
commit 4c3bae98da

View File

@ -1,7 +1,7 @@
%define name xerces-j2 %define name xerces-j2
%define version 2.6.2 %define version 2.6.2
%define cvs_version 2_6_2 %define cvs_version 2_6_2
%define release 5jpp_1fc %define release 5jpp_2fc
%define section free %define section free
Name: %{name} Name: %{name}
@ -33,10 +33,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
# RHEL3 and FC2 # RHEL3 and FC2
Obsoletes: xerces-j <= 0:2.2 Obsoletes: xerces-j <= 0:2.2
# libgcj aot-compiled native libraries # libgcj aot-compiled native libraries
BuildRequires: gcc-java >= 4.0.0-0.43 BuildRequires: java-gcj-compat-devel >= 1.0.31
BuildRequires: java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh Requires(post): java-gcj-compat >= 1.0.31
Requires(post,postun): java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh Requires(postun): java-gcj-compat >= 1.0.31
ExclusiveArch: %{ix86} x86_64 ppc alpha
%description %description
Welcome to the future! Xerces2 is the next generation of high Welcome to the future! Xerces2 is the next generation of high
@ -134,16 +133,6 @@ ant \
-Djar.resolver=xml-commons-resolver.jar \ -Djar.resolver=xml-commons-resolver.jar \
clean jars javadocs clean jars javadocs
gcj-dbtool -n build/%{name}-%{version}.db 2048
aot-compile \
build/xercesImpl.jar \
build/lib%{name}-%{version}.jar.so \
"$RPM_OPT_FLAGS -fPIC"
gcj-dbtool -f \
build/%{name}-%{version}.db \
build/xercesImpl.jar \
%{_libdir}/lib%{name}-%{version}.jar.so
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -153,15 +142,6 @@ mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p build/xercesImpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar cp -p build/xercesImpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
# solibs
mkdir -p $RPM_BUILD_ROOT%{_libdir}
cp -p build/lib*.jar.so $RPM_BUILD_ROOT%{_libdir}
# gcjdb
gcjdbdir=`gcj-dbtool -p %{_libdir}`.d
mkdir -p $RPM_BUILD_ROOT$gcjdbdir
cp -p build/%{name}-%{version}.db $RPM_BUILD_ROOT$gcjdbdir
# javadoc # javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-impl-%{version} mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-impl-%{version}
cp -pr build/docs/javadocs/xerces2/* \ cp -pr build/docs/javadocs/xerces2/* \
@ -205,6 +185,8 @@ cp -pr data $RPM_BUILD_ROOT%{_datadir}/%{name}
ln -s %{_sysconfdir}/alternatives \ ln -s %{_sysconfdir}/alternatives \
$RPM_BUILD_ROOT%{_javadir}/jaxp_parser_impl.jar $RPM_BUILD_ROOT%{_javadir}/jaxp_parser_impl.jar
aot-compile-rpm
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -235,7 +217,7 @@ ln -s %{name}-xni-%{version} %{_javadocdir}/%{name}-xni
%post %post
update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
jaxp_parser_impl %{_javadir}/%{name}.jar 40 jaxp_parser_impl %{_javadir}/%{name}.jar 40
/usr/bin/rebuild-gcj-db %{_libdir} %{_bindir}/rebuild-gcj-db
%preun %preun
{ {
@ -244,15 +226,21 @@ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
} >/dev/null 2>&1 || : } >/dev/null 2>&1 || :
%postun %postun
/usr/bin/rebuild-gcj-db %{_libdir} %{_bindir}/rebuild-gcj-db
%post demo
%{_bindir}/rebuild-gcj-db
%postun demo
%{_bindir}/rebuild-gcj-db
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc LICENSE README ISSUES STATUS TODO %doc LICENSE README ISSUES STATUS TODO
%{_javadir}/%{name}*.jar %{_javadir}/%{name}*.jar
%ghost %{_javadir}/jaxp_parser_impl.jar %ghost %{_javadir}/jaxp_parser_impl.jar
%attr(0755,root,root) %{_libdir}/*.so %dir %{_libdir}/gcj/%{name}
%{_libdir}/*/*/*.db %attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%files javadoc-impl %files javadoc-impl
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
@ -282,6 +270,7 @@ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
%files demo %files demo
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_datadir}/%{name} %{_datadir}/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-samples.jar.*
%files scripts %files scripts
%defattr(0755,root,root,0755) %defattr(0755,root,root,0755)
@ -289,6 +278,10 @@ update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
%changelog %changelog
* Mon Jul 18 2005 Gary Benson <gbenson at redhat.com> 0:2.6.2-5jpp_2fc
- Build on ia64, ppc64, s390 and s390x.
- Switch to aot-compile-rpm (also BC-compiles samples).
* Wed Jun 15 2005 Gary Benson <gbenson at redhat.com> 0:2.6.2-5jpp_1fc * Wed Jun 15 2005 Gary Benson <gbenson at redhat.com> 0:2.6.2-5jpp_1fc
- Upgrade to 2.6.2-5jpp. - Upgrade to 2.6.2-5jpp.