[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/ant/devel ant.spec,1.26,1.27



Update of /cvs/dist/rpms/ant/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19512

Modified Files:
	ant.spec 
Log Message:
BC-compile the two core jars


Index: ant.spec
===================================================================
RCS file: /cvs/dist/rpms/ant/devel/ant.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ant.spec	8 Apr 2005 19:59:36 -0000	1.26
+++ ant.spec	12 Apr 2005 13:58:27 -0000	1.27
@@ -28,7 +28,6 @@
 BuildRequires:  jaxp_parser_impl
 BuildRequires:  jpackage-utils >= 0:1.5
 BuildRequires:  java-devel
-BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 Obsoletes:	ant-optional ant-optional-full
 # RHUG
@@ -349,6 +348,11 @@
 export JAVA_HOME
 sh build.sh --noconfig jars javadocs
 
+# BC-compile the two core jars
+for jar in %{name} %{name}-launcher; do
+    nativify build/lib/$jar.jar build/lib/lib$jar.jar.so
+done
+
 # -----------------------------------------------------------------------------
 
 %install
@@ -388,6 +392,25 @@
 (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}/%{name} && 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/lib%{name}.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}-%{version}.jar.so
+cp -p build/lib/lib%{name}-launcher.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}-launcher-%{version}.jar.so
+
+# solib aliases
+(cd $RPM_BUILD_ROOT%{_libdir} && for so in lib*-%{version}.jar.so; do ln -sf ${so} `echo $so| sed "s|-%{version}||g"`; done)
+
+# gcjdb
+gcjdbdir=`gcj-dbtool -p %{_libdir}`.d
+mkdir -p $RPM_BUILD_ROOT$gcjdbdir
+gcj-dbtool -n $RPM_BUILD_ROOT$gcjdbdir/%{name}-%{version}.db 80000
+gcj-dbtool -f $RPM_BUILD_ROOT$gcjdbdir/%{name}-%{version}.db \
+  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar \
+  %{_libdir}/lib%{name}-%{version}.jar.so
+gcj-dbtool -f $RPM_BUILD_ROOT$gcjdbdir/%{name}-%{version}.db \
+  $RPM_BUILD_ROOT%{_javadir}/%{name}-launcher-%{version}.jar \
+  %{_libdir}/lib%{name}-launcher-%{version}.jar.so
+
 # scripts: remove dos and os/2 scripts
 rm -f src/script/*.bat
 rm -f src/script/*.cmd
@@ -441,6 +464,12 @@
 
 # -----------------------------------------------------------------------------
 
+%post
+rebuild-gcj-db %{_libdir}
+
+%postun
+rebuild-gcj-db %{_libdir}
+
 %post javadoc
 rm -f %{_javadocdir}/%{name}
 ln -s %{name}-%{version} %{_javadocdir}/%{name}
@@ -471,6 +500,11 @@
 %{ant_home}/etc/junit-frames-xalan1.xsl
 %dir %{ant_home}/lib
 %dir %{_sysconfdir}/%{name}.d
+%{_libdir}/lib%{name}.jar.so
+%{_libdir}/lib%{name}-launcher.jar.so
+%{_libdir}/lib%{name}-%{version}.jar.so
+%{_libdir}/lib%{name}-launcher-%{version}.jar.so
+%{_libdir}/*/*/%{name}-%{version}.db
 
 %files antlr
 %defattr(0644,root,root,0755)
@@ -589,6 +623,9 @@
 # -----------------------------------------------------------------------------
 
 %changelog
+* Tue Apr 12 2005 Gary Benson <gbenson at redhat.com>
+- BC-compile the two core jars.
+
 * Fri Apr 08 2005 Andrew Overholt <overholt redhat com> 1.6.2-3jpp_4fc
 - Back out ant-apache-javac-ecj.patch and ant.orig changes as they stop eclipse
   from building.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]