SPECS: eclipse-ecj.spec - more

arekm arekm at pld-linux.org
Sun Jun 17 01:32:16 CEST 2007


Author: arekm                        Date: Sat Jun 16 23:32:16 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more

---- Files affected:
SPECS:
   eclipse-ecj.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/eclipse-ecj.spec
diff -u SPECS/eclipse-ecj.spec:1.1 SPECS/eclipse-ecj.spec:1.2
--- SPECS/eclipse-ecj.spec:1.1	Sun Jun 17 01:20:00 2007
+++ SPECS/eclipse-ecj.spec	Sun Jun 17 01:32:11 2007
@@ -32,30 +32,36 @@
 %patch0 -p1
 
 %build
-unset CLASSPATH || :
 export JAVA_HOME=%{java_home}
 
 ant -f compilejdtcorewithjavac.xml
+
+CLASSPATH=${PWD}/ecj.jar; export CLASSPATH
+
 ant -lib ecj.jar -f compilejdtcore.xml compile
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_libdir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
+
+cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/ecj
+#!/bin/sh
+. %{_javadir}-utils/java-functions
+set_javacmd
+
+CLASSPATH=%{_javadir}/ecj.jar${CLASSPATH:+:}$CLASSPATH \
+java org.eclipse.jdt.internal.compiler.batch.Main "$@"
+EOF
+
+install ecj.jar $RPM_BUILD_ROOT%{_javadir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/eclipse
-%attr(755,root,root) %{_libdir}/%{name}/eclipse
-%attr(755,root,root) %{_libdir}/%{name}/lib*.so
-%{_desktopdir}/eclipse.desktop
-%{_pixmapsdir}/eclipse-icon.xpm
-%dir %{_libdir}/%{name}
-%{_libdir}/%{name}/.eclipseproduct
-%{_libdir}/%{name}/configuration
-%{_libdir}/%{name}/eclipse.ini
+%attr(755,root,root) %{_bindir}/ecj
+%{_javadir}/*.jar
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2007/06/16 23:32:11  arekm
+- more
+
 Revision 1.1  2007/06/16 23:20:00  arekm
 NFY
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/eclipse-ecj.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list