rpms/eclipse/devel eclipse.spec,1.613,1.614

Andrew Overholt overholt at fedoraproject.org
Tue Dec 16 17:17:49 UTC 2008


Author: overholt

Update of /cvs/pkgs/rpms/eclipse/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1421/devel

Modified Files:
	eclipse.spec 
Log Message:
- Add GCJ AOT bits for ecj (rh#473674).


Index: eclipse.spec
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse/devel/eclipse.spec,v
retrieving revision 1.613
retrieving revision 1.614
diff -u -r1.613 -r1.614
--- eclipse.spec	15 Dec 2008 20:14:10 -0000	1.613
+++ eclipse.spec	16 Dec 2008 17:17:18 -0000	1.614
@@ -183,6 +183,10 @@
 BuildRequires:  java-devel >= 1.6.0
 BuildRequires:  java-javadoc
 BuildRequires:  libXt-devel
+# For ecj's AOT bits
+BuildRequires:  gcc-java
+BuildRequires:  java-1.5.0-gcj-javadoc
+BuildRequires:  java-gcj-compat-devel
 
 BuildRequires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf ant-commons-net
 BuildRequires: ant-javamail ant-jdepend ant-junit ant-nodeps ant-swing ant-trax ant-jsch
@@ -211,6 +215,10 @@
 Obsoletes:      ecj < %{version}-%{release}
 Provides:       ecj = %{version}-%{release}
 Requires:       java >= 1.6.0
+# For AOT bits
+Requires:       libgcj >= 4.0.2
+Requires(post):     java-gcj-compat >= 1.0.64
+Requires(postun):   java-gcj-compat >= 1.0.64
 
 %description    ecj
 Eclipse compiler for Java.
@@ -1272,9 +1280,23 @@
 
 popd
 
+unset RPM_PACKAGE_NAME
+aot-compile -c "$RPM_OPT_FLAGS" $RPM_BUILD_ROOT%{_libdir}/%{name}/dropins/jdt/plugins \
+  $RPM_BUILD_ROOT%{_libdir}/gcj/eclipse-ecj
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post ecj
+if [ -x %{_bindir}/rebuild-gcj-db ]; then
+  %{_bindir}/rebuild-gcj-db
+fi
+
+%postun ecj
+if [ -x %{_bindir}/rebuild-gcj-db ]; then
+  %{_bindir}/rebuild-gcj-db
+fi
+
 %post platform
 touch --no-create %{_datadir}/icons/hicolor
 if [ -x /usr/bin/gtk-update-icon-cache ]; then
@@ -1298,6 +1320,7 @@
 %{_javadir}/jdtcore*.jar
 %{_javadir}/ecj*.jar
 %{_bindir}/ecj
+%{_libdir}/gcj/eclipse-ecj
 
 %if %{initialize}
 %files swt -f %{name}-swt.install
@@ -1545,6 +1568,7 @@
 * Mon Dec 15 2008 Andrew Overholt <overholt at redhat.com> 1:3.4.1-12
 - Update pdebuild and package-build patch to include -z option.
 - Make ecj default to 1.5 (rh#354721).
+- Add GCJ AOT bits for ecj (rh#473674).
 
 * Fri Dec 5 2008 Andrew Overholt <overholt at redhat.com> 1:3.4.1-10
 - Remove MaxPermSize from sysproperty lists in library.xml as it was causing the




More information about the fedora-extras-commits mailing list